Click or drag to resize

AdoSecurityCache Class

Represents a secured inter-process cache for the security context needed by the AdoSecurityProvider.
Inheritance Hierarchy
SystemObject
  GSF.IOInterprocessCache
    GSF.SecurityAdoSecurityCache

Namespace: GSF.Security
Assembly: GSF.Security (in GSF.Security.dll) Version: 2.4.181-beta
Syntax
public class AdoSecurityCache : InterprocessCache
View Source

The AdoSecurityCache type exposes the following members.

Constructors
 NameDescription
Public methodAdoSecurityCache Creates a new instance of the AdoSecurityCache with the specified number of maximumConcurrentLocks.
Top
Properties
 NameDescription
Public propertyAutoSave Gets or sets flag that determines if InterprocessCache should automatically initiate a save when FileData has been updated.
(Inherited from InterprocessCache)
Public propertyDataSet Gets or sets the internal DataSet; returned value will be a copy of the internal.
Public propertyFileData Gets or sets file data for the cache to be saved or that has been loaded.
(Inherited from InterprocessCache)
Public propertyFileName Path and file name for the cache needing inter-process synchronization.
(Inherited from InterprocessCache)
Public propertyMaximumConcurrentLocks Gets the maximum concurrent reader locks allowed.
(Inherited from InterprocessCache)
Public propertyMaximumRetryAttempts Maximum retry attempts allowed for loading or saving cache file data.
(Inherited from InterprocessCache)
Public propertyReloadOnChange Gets or sets flag that enables system to monitor for changes in FileName and automatically reload FileData.
(Inherited from InterprocessCache)
Public propertyRetryDelayInterval Wait interval, in milliseconds, before retrying load or save of cache file data.
(Inherited from InterprocessCache)
Top
Methods
 NameDescription
Public methodDispose Releases all the resources used by the InterprocessCache object.
(Inherited from InterprocessCache)
Protected methodDispose(Boolean) Releases the unmanaged resources used by the InterprocessCache object and optionally releases the managed resources.
(Inherited from InterprocessCache)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize Releases the unmanaged resources before the InterprocessCache object is reclaimed by GC.
(Inherited from InterprocessCache)
Public methodStatic memberGetCurrentCache Loads the AdoSecurityCache for the current local user.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodLoad Initiates inter-process synchronized cache file load.
(Inherited from InterprocessCache)
Protected methodLoadFileData Handles deserialization of file from disk; virtual method allows customization (e.g., pre-load decryption and/or data merge).
(Overrides InterprocessCacheLoadFileData(FileStream))
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodSave Initiates inter-process synchronized save of DataSet.
(Overrides InterprocessCacheSave)
Protected methodSaveFileData Handles serialization of file to disk; virtual method allows customization (e.g., pre-save encryption and/or data merge).
(Overrides InterprocessCacheSaveFileData(FileStream, Byte))
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWaitForLoad Blocks current thread and waits for any pending load to complete; wait time is RetryDelayInterval * MaximumRetryAttempts.
(Inherited from InterprocessCache)
Public methodWaitForLoad(Int32) Blocks current thread and waits for specified millisecondsTimeout for any pending load to complete.
(Inherited from InterprocessCache)
Public methodWaitForSave Blocks current thread and waits for any pending save to complete; wait time is RetryDelayInterval * MaximumRetryAttempts.
(Inherited from InterprocessCache)
Public methodWaitForSave(Int32) Blocks current thread and waits for specified millisecondsTimeout for any pending save to complete.
(Inherited from InterprocessCache)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
Remarks
This is a system cache that contains the last known security information loaded from the database related to users, roles and groups. This cache allows the AdoSecurityProvider to start-up without database access using latest cached security context. Even though this cache contains role information for all users, it does not overlap information in the UserRoleCache since the user role cache contains role assignments for a user at last login and is used for auditing.
See Also