C# Class DarkRift.Server.ServerObjectCacheHelper

Helper class for the server's object cache.
Mostrar archivo Open project: DarkRiftNetworking/DarkRift

Public Methods

Method Description
InitializeObjectCache ( DarkRift.Server.ServerObjectCacheSettings settings ) : void

Initializes the object cache.

Normally, initializing the object cache is handled for you when you create a server or client however there are times when it is necessary to initialize it without creating a server or client such as during testing. This method can be used to initialize the cache in those circumstances. If the cache is already initialized this method will do nothing. This method will also initialize the ObjectCache.

ResetCounters ( ) : void

Resets all counters to 0.

Private Methods

Method Description
MessageReceivedEventArgsWasFinalized ( ) : void

Indcates an MessageReceivedEventArgs did not get recycled properly.

ServerMessageReceivedEventArgsWasFinalized ( ) : void

Indcates an ServerMessageReceivedEventArgs did not get recycled properly.

Method Details

InitializeObjectCache() public method

Initializes the object cache.
Normally, initializing the object cache is handled for you when you create a server or client however there are times when it is necessary to initialize it without creating a server or client such as during testing. This method can be used to initialize the cache in those circumstances. If the cache is already initialized this method will do nothing. This method will also initialize the ObjectCache.
public InitializeObjectCache ( DarkRift.Server.ServerObjectCacheSettings settings ) : void
settings DarkRift.Server.ServerObjectCacheSettings
return void

ResetCounters() public static method

Resets all counters to 0.
public static ResetCounters ( ) : void
return void