Class MountedConfiguration
Provides implementations of IMountedConfiguration.
Inheritance
Implements
Namespace: MESL.SqlRace.Domain.MountedSessions
Assembly: MESL.SqlRace.Domain.dll
Syntax
public abstract class MountedConfiguration : Object, IMountedConfiguration
Constructors
MountedConfiguration(String, Nullable<UInt32>)
Initializes a new instance of MountedConfiguration.
Declaration
protected MountedConfiguration(string identifier, Nullable<uint> ownerId)
Parameters
Type | Name | Description |
---|---|---|
System.String | identifier | Globally-unique identifier. |
System.Nullable<System.UInt32> | ownerId | RDA team id. |
Properties
Identifier
Globally-unique identifier for the configuration for reference when binding configuration.
Declaration
public string Identifier { get; }
Property Value
Type | Description |
---|---|
System.String |
OwnerId
Owner id, if applicable.
Declaration
public Nullable<uint> OwnerId { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt32> |
Methods
AsFastConfiguration(out String, out Byte[])
Copies to a buffer as an FFC resource. This is a specific binary representation of configuration conform to the MAT.OCS.Configuration.Configuration API. Support for this representation is required for use with MountedSession.
Declaration
public abstract void AsFastConfiguration(out string hash, out byte[] fastConfigBuffer)
Parameters
Type | Name | Description |
---|---|---|
System.String | hash | Configuration hash (lower-case hex). |
System.Byte[] | fastConfigBuffer | Buffer containing the serialized configuration. |
FromConfiguration(String, String, Nullable<UInt32>, Configuration)
Returns a MountedConfiguration from a pre-resolved MAT.OCS.Configuration.Configuration. This is useful when transcoding from another serialization.
Declaration
public static MountedConfiguration FromConfiguration(string identifier, string type, Nullable<uint> ownerId, Configuration configuration)
Parameters
Type | Name | Description |
---|---|---|
System.String | identifier | Globally-unique identifier. |
System.String | type | Type token (e.g. "PGV" or "CFG"). |
System.Nullable<System.UInt32> | ownerId | Owner id. |
MAT.OCS.Configuration.Configuration | configuration | Resolved configuration. |
Returns
Type | Description |
---|---|
MountedConfiguration | Mounted configuration. |
FromFastConfiguration(String, Nullable<UInt32>, Byte[], IFastConfigCache)
Returns a MountedConfiguration from an FFC resource.
Declaration
public static MountedConfiguration FromFastConfiguration(string identifier, Nullable<uint> ownerId, byte[] buffer, IFastConfigCache cache)
Parameters
Type | Name | Description |
---|---|---|
System.String | identifier | Globally-unique identifier. |
System.Nullable<System.UInt32> | ownerId | Owner id. |
System.Byte[] | buffer | Buffer containing the FFC serialization. |
MAT.OCS.FFC.Cache.IFastConfigCache | cache | FFC cache. |
Returns
Type | Description |
---|---|
MountedConfiguration | Mounted configuration. |
Resolve()
Resolves the MAT.OCS.Configuration.Configuration, which may involve I/O and deserialization.
Declaration
public abstract Configuration Resolve()
Returns
Type | Description |
---|---|
MAT.OCS.Configuration.Configuration | Mounted MAT.OCS.Configuration.Configuration. |