-
Notifications
You must be signed in to change notification settings - Fork 746
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4788 from bdukes/authentication-config-serialization
Resolve serialization issue
- Loading branch information
Showing
1 changed file
with
31 additions
and
42 deletions.
There are no files selected for viewing
73 changes: 31 additions & 42 deletions
73
DNN Platform/Library/Services/Authentication/AuthenticationConfigBase.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |