Skip to content

Commit

Permalink
Merge pull request #4788 from bdukes/authentication-config-serialization
Browse files Browse the repository at this point in the history
Resolve serialization issue
  • Loading branch information
valadas committed Sep 9, 2021
2 parents ffbaa74 + 54a46e3 commit 396ab24
Showing 1 changed file with 31 additions and 42 deletions.
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;
}
}

0 comments on commit 396ab24

Please sign in to comment.