C# Class DarkRift.Server.ServerObjectCacheHelper

Helper class for the server's object cache.
Afficher le fichier Open project: DarkRiftNetworking/DarkRift

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat void

ResetCounters() public static méthode

Resets all counters to 0.
public static ResetCounters ( ) : void
Résultat void