Class StateManager
Inheritance
System.Object
StateManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: FChoice.Common.dll
Syntax
public sealed class StateManager
Fields
CONFIGURATION_SECTION_NAME
Declaration
public const string CONFIGURATION_SECTION_NAME = "stateManager"
Field Value
Type |
Description |
System.String |
|
DEFAULT_APPLICATION_NAME
Declaration
public const string DEFAULT_APPLICATION_NAME = "Untitled"
Field Value
Type |
Description |
System.String |
|
SyncRoot
Declaration
public static readonly object SyncRoot
Field Value
Type |
Description |
System.Object |
|
Properties
ApplicationName
Declaration
public static string ApplicationName { get; }
Property Value
Type |
Description |
System.String |
|
IsStateSerialized
Declaration
public static bool IsStateSerialized { get; }
Property Value
Type |
Description |
System.Boolean |
|
StateTimeout
Declaration
public static TimeSpan StateTimeout { get; set; }
Property Value
Type |
Description |
System.TimeSpan |
|
Methods
GetApplicationStates()
Declaration
public static object[] GetApplicationStates()
Returns
Type |
Description |
System.Object[] |
|
GetApplicationStates(Type)
Declaration
public static object[] GetApplicationStates(Type stateType)
Parameters
Type |
Name |
Description |
System.Type |
stateType |
|
Returns
Type |
Description |
System.Object[] |
|
Initialize()
Declaration
public static void Initialize()
InitializeState(Guid)
Declaration
public static void InitializeState(Guid id)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
IsStateExpired(Guid)
Declaration
public static bool IsStateExpired(Guid id)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
Returns
Type |
Description |
System.Boolean |
|
LoadState(Guid)
Declaration
public static byte[] LoadState(Guid id)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
Returns
Type |
Description |
System.Byte[] |
|
LoadState(Guid, Type)
Declaration
public static object LoadState(Guid id, Type stateType)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
System.Type |
stateType |
|
Returns
Type |
Description |
System.Object |
|
RemoveExpiredStates()
Declaration
public static Guid[] RemoveExpiredStates()
Returns
Type |
Description |
System.Guid[] |
|
RemoveState(Guid)
Declaration
public static void RemoveState(Guid id)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
ResetTimeout(Guid)
Declaration
public static void ResetTimeout(Guid id)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
SaveState(Guid, Byte[])
Declaration
public static void SaveState(Guid id, byte[] state)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
System.Byte[] |
state |
|
SaveState(Guid, Object)
Declaration
public static void SaveState(Guid id, object state)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
System.Object |
state |
|