예제 #1
0
 /// <summary>
 /// Initializes a new instance of the security provider.
 /// </summary>
 /// <param name="username">Name that uniquely identifies the user.</param>
 /// <param name="canRefreshData">true if the security provider can refresh <see cref="UserData"/> from the backend data store, otherwise false.</param>
 /// <param name="canResetPassword">true if the security provider can reset user password, otherwise false.</param>
 /// <param name="canChangePassword">true if the security provider can change user password, otherwise false.</param>
 protected SecurityProviderBase(string username, bool canRefreshData, bool canResetPassword, bool canChangePassword)
 {
     // Initialize member variables.
     m_userData          = new UserData(username);
     m_canRefreshData    = canRefreshData;
     m_canResetPassword  = canResetPassword;
     m_canChangePassword = canChangePassword;
     m_applicationName   = DefaultApplicationName;
     m_connectionString  = DefaultConnectionString;
     m_persistSettings   = DefaultPersistSettings;
     m_settingsCategory  = DefaultSettingsCategory;
     m_logEvent          = EventLog.WriteEntry;
 }
 /// <summary>
 /// Initializes a new instance of the security provider.
 /// </summary>
 /// <param name="username">Name that uniquely identifies the user.</param>
 /// <param name="canRefreshData">true if the security provider can refresh <see cref="UserData"/> from the backend data store, otherwise false.</param>
 /// <param name="canUpdateData">true if the security provider can update <see cref="UserData"/> in the backend data store, otherwise false.</param>
 /// <param name="canResetPassword">true if the security provider can reset user password, otherwise false.</param>
 /// <param name="canChangePassword">true if the security provider can change user password, otherwise false.</param>
 protected SecurityProviderBase(string username, bool canRefreshData, bool canUpdateData, bool canResetPassword, bool canChangePassword)
 {
     // Initialize member variables.
     m_userData = new UserData(username);
     m_canRefreshData = canRefreshData;
     m_canUpdateData = canUpdateData;
     m_canResetPassword = canResetPassword;
     m_canChangePassword = canChangePassword;
     m_applicationName = DefaultApplicationName;
     m_connectionString = DefaultConnectionString;
     m_persistSettings = DefaultPersistSettings;
     m_settingsCategory = DefaultSettingsCategory;
     m_logEvent = EventLog.WriteEntry;
 }