C# Class TSystems.RELOAD.Usage.UsageManager

Exibir arquivo Open project: RELOAD-NET/RELOAD.NET Class Usage Examples

Public Properties

Property Type Description
localNode TSystems.RELOAD.Topology.Node
m_DispatcherQueue Microsoft.Ccr.Core.DispatcherQueue
m_ReloadConfig ReloadConfig

Public Methods

Method Description
CreateUsage ( Usage_Code_Point usageCode, int type ) : IUsage

This method creates Usages. Use this if your intending to Store or Delete Kinds in the Overlay. If type and arguments are null, it returns an empty usage obejct of the specified Usage

GetDataModelfromKindId ( UInt32 kindId ) : ReloadGlobals.DataModel

Returns the DataModel from a given KindId

GetUsageFromReader ( ReloadMessage rm, BinaryReader reader, long usage_length, UInt32 kindId ) : IUsage

Deserializes a Usage object from wire.

Init ( System.Machine machine ) : void

Inits the Usage Manager.

RegisterUsage ( IUsage usage ) : void

SupportedKinds ( ) : List
createSpecifier ( UInt32 kindId ) : StoredDataSpecifier

Creates a StoredDataSpecifier depending on the requested RELOAD Kind

Private Methods

Method Description
AppProcedure ( List responses ) : void

Method Details

CreateUsage() public method

This method creates Usages. Use this if your intending to Store or Delete Kinds in the Overlay. If type and arguments are null, it returns an empty usage obejct of the specified Usage
public CreateUsage ( Usage_Code_Point usageCode, int type ) : IUsage
usageCode Usage_Code_Point
type int
return IUsage

GetDataModelfromKindId() public method

Returns the DataModel from a given KindId
public GetDataModelfromKindId ( UInt32 kindId ) : ReloadGlobals.DataModel
kindId System.UInt32 The KindId of the Kind
return ReloadGlobals.DataModel

GetUsageFromReader() public method

Deserializes a Usage object from wire.
public GetUsageFromReader ( ReloadMessage rm, BinaryReader reader, long usage_length, UInt32 kindId ) : IUsage
rm TSystems.RELOAD.Transport.ReloadMessage
reader System.IO.BinaryReader The reader. It MUST be desesiralied until the DataValue struct including the Boolean exists value.
usage_length long
kindId System.UInt32
return IUsage

Init() public method

Inits the Usage Manager.
public Init ( System.Machine machine ) : void
machine System.Machine The state machine for RELOAD overlay.
return void

RegisterUsage() public method

public RegisterUsage ( IUsage usage ) : void
usage IUsage
return void

SupportedKinds() public method

public SupportedKinds ( ) : List
return List

createSpecifier() public method

Creates a StoredDataSpecifier depending on the requested RELOAD Kind
public createSpecifier ( UInt32 kindId ) : StoredDataSpecifier
kindId System.UInt32 The Kind-ID of the requested data
return TSystems.RELOAD.Storage.StoredDataSpecifier

Property Details

localNode public_oe property

public Node,TSystems.RELOAD.Topology localNode
return TSystems.RELOAD.Topology.Node

m_DispatcherQueue public_oe property

public DispatcherQueue,Microsoft.Ccr.Core m_DispatcherQueue
return Microsoft.Ccr.Core.DispatcherQueue

m_ReloadConfig public_oe property

public ReloadConfig m_ReloadConfig
return ReloadConfig