Click or drag to resize

UserRoleCache Methods

The UserRoleCache type exposes the following members.

Methods
  Name Description
Public method Dispose Releases all the resources used by the InterprocessCache object.
(Inherited from InterprocessCache)
Protected method Dispose(Boolean) Releases the unmanaged resources used by the InterprocessCache object and optionally releases the managed resources.
(Inherited from InterprocessCache)
Public method Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Protected method Finalize Releases the unmanaged resources before the InterprocessCache object is reclaimed by GC.
(Inherited from InterprocessCache)
Public method Static member GetCurrentCache Loads the UserRoleCache for the current local user.
Public method GetHashCode Serves as the default hash function.
(Inherited from Object)
Public method GetType Gets the Type of the current instance.
(Inherited from Object)
Protected method HashLoginID Calculates the hash of the userName used as the key for the user roles dictionary.
Public method Load Initiates inter-process synchronized cache file load.
(Inherited from InterprocessCache)
Protected method LoadFileData Handles deserialization of file from disk; virtual method allows customization (e.g., pre-load decryption and/or data merge).
(Overrides InterprocessCacheLoadFileData(FileStream))
Protected method MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
Public method MergeLeft Merge user roles from another UserRoleCache, local cache taking precedence.
Public method MergeRight Merge user roles from another UserRoleCache, other cache taking precedence.
Public method Save Initiates inter-process synchronized save of user role cache.
(Overrides InterprocessCacheSave)
Protected method SaveFileData Handles serialization of file to disk; virtual method allows customization (e.g., pre-save encryption and/or data merge).
(Overrides InterprocessCacheSaveFileData(FileStream, Byte))
Public method SaveUserRole Serializes the roles for the given userName into the UserRoleCache.
Public method ToString Returns a string that represents the current object.
(Inherited from Object)
Public method TryGetUserRole Attempts to retrieve access role for given userName.
Public method WaitForLoad Blocks current thread and waits for any pending load to complete; wait time is RetryDelayInterval * MaximumRetryAttempts.
(Inherited from InterprocessCache)
Public method WaitForLoad(Int32) Blocks current thread and waits for specified millisecondsTimeout for any pending load to complete.
(Inherited from InterprocessCache)
Public method WaitForSave Blocks current thread and waits for any pending save to complete; wait time is RetryDelayInterval * MaximumRetryAttempts.
(Inherited from InterprocessCache)
Public method WaitForSave(Int32) Blocks current thread and waits for specified millisecondsTimeout for any pending save to complete.
(Inherited from InterprocessCache)
Top
Extension Methods
  Name Description
Public Extension Method GetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension Method GetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also