C# Класс DarkRift.Server.ServerObjectCacheHelper

Helper class for the server's object cache.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
MessageReceivedEventArgsWasFinalized ( ) : void

Indcates an MessageReceivedEventArgs did not get recycled properly.

ServerMessageReceivedEventArgsWasFinalized ( ) : void

Indcates an ServerMessageReceivedEventArgs did not get recycled properly.

Описание методов

InitializeObjectCache() публичный Метод

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
Результат void

ResetCounters() публичный статический Метод

Resets all counters to 0.
public static ResetCounters ( ) : void
Результат void