Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve serialization issue #4788

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,50 +1,39 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information
namespace DotNetNuke.Services.Authentication
{
using System;
using System.ComponentModel;
namespace DotNetNuke.Services.Authentication
{
using System;
using System.ComponentModel;

using DotNetNuke.Common;
using DotNetNuke.Common;

/// -----------------------------------------------------------------------------
/// <summary>
/// The AuthenticationConfigBase class provides base configuration class for the
/// Authentication providers.
/// </summary>
/// -----------------------------------------------------------------------------
[Serializable]
public abstract class AuthenticationConfigBase
/// -----------------------------------------------------------------------------
/// <summary>
/// The AuthenticationConfigBase class provides base configuration class for the
/// Authentication providers.
/// </summary>
/// -----------------------------------------------------------------------------
[Serializable]
public abstract class AuthenticationConfigBase
{
/// <summary>
/// Initializes a new instance of the <see cref="AuthenticationConfigBase"/> class.
/// </summary>
public AuthenticationConfigBase()
{
this.DependencyProvider = Globals.DependencyProvider;
/// <summary>Initializes a new instance of the <see cref="AuthenticationConfigBase"/> class.</summary>
public AuthenticationConfigBase()
{
}

/// <summary>
/// Initializes a new instance of the <see cref="AuthenticationConfigBase"/> class.
/// </summary>
/// <param name="portalID"></param>
protected AuthenticationConfigBase(int portalID)
: this()
{
this.PortalID = portalID;
}

[Browsable(false)]
public int PortalID { get; set; }

/// <summary>
/// Gets the Dependency Provider to resolve registered
/// services with the container.
/// </summary>
/// <value>
/// The Dependency Service.
/// </value>
protected IServiceProvider DependencyProvider { get; }
}
}
/// <summary>Initializes a new instance of the <see cref="AuthenticationConfigBase"/> class.</summary>
/// <param name="portalID">The portal ID.</param>
protected AuthenticationConfigBase(int portalID)
: this()
{
this.PortalID = portalID;
}

[Browsable(false)]
public int PortalID { get; set; }

/// <summary>Gets the Dependency Provider to resolve registered services with the container.</summary>
protected IServiceProvider DependencyProvider => Globals.DependencyProvider;
}
}