Skip to main content

Class CacheUtil

Namespace: Workspace.XBR.Xperiflow.Utilities.Cache

Assembly: Xperiflow.dll

Declaration
public static class CacheUtil

Methods

GetSessionStateValue(SessionInfo, string, string)

Retrieves the value of the specified state key from the current session state.

Declaration
public static string GetSessionStateValue(SessionInfo si, string stateKey, string defaultValue)
Returns

System.String

The value of the specified state key, or the default value if the key is not found.

Parameters
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session info object for the current session.
System.StringstateKeyThe key of the state value to retrieve.
System.StringdefaultValueThe default value to return if the state key is not found.

SetSessionStateValue(SessionInfo, string, string)

Sets the value of the specified state key in the current session state.

Declaration
public static void SetSessionStateValue(SessionInfo si, string stateKey, string stateValue)
Parameters
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session info object for the current session.
System.StringstateKeyThe key of the state value to set.
System.StringstateValueThe value to set for the specified state key.

GetSessionStateDataTable(SessionInfo, string)

Retrieves the serialized DataTable from the session state with the specified table name.

Declaration
public static DataTable GetSessionStateDataTable(SessionInfo si, string storageKey)
Returns

System.Data.DataTable

An object containing the serialized DataTable.

Parameters
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session info object for the current session.
System.StringstorageKeyThe lookup key used to retrieve the DataTable.

TryGetSessionStateDataTable(SessionInfo, string, out DataTable?)

Retrieves the serialized DataTable from the session state with the specified table name.

Declaration
public static bool TryGetSessionStateDataTable(SessionInfo si, string storageKey, out DataTable? datatable)
Returns

System.Boolean

An object containing the serialized DataTable.

Parameters
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session info object for the current session.
System.StringstorageKeyThe lookup key used to retrieve the DataTable.
System.Data.DataTabledatatable

SetSessionStateDataTable(SessionInfo, string, DataTable)

Saves the specified DataTable to the session state with the specified table name.

Declaration
public static void SetSessionStateDataTable(SessionInfo si, string storageKey, DataTable datatable)
Parameters
TypeNameDescription
OneStream.Shared.Common.SessionInfosiThe session info object for the current session.
System.StringstorageKeyThe name to give the serialized DataTable in the session state.
System.Data.DataTabledatatableThe DataTable to serialize and save to the session state.

SetSessionStateDataTable(SessionInfo, DataTable)

Declaration
public static void SetSessionStateDataTable(SessionInfo si, DataTable datatable)
Parameters
TypeName
OneStream.Shared.Common.SessionInfosi
System.Data.DataTabledatatable

DeleteSessionStateDataTable(SessionInfo, string)

Declaration
public static void DeleteSessionStateDataTable(SessionInfo si, string storageKey)
Parameters
TypeName
OneStream.Shared.Common.SessionInfosi
System.StringstorageKey

Inherited Members

  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.GetHashCode
  • System.Object.GetType
  • System.Object.MemberwiseClone
  • System.Object.ReferenceEquals(System.Object,System.Object)
  • System.Object.ToString

Was this page helpful?