C# 클래스 DarkRift.Server.ServerObjectCacheHelper

Helper class for the server's object cache.
파일 보기 프로젝트 열기: DarkRiftNetworking/DarkRift

공개 메소드들

메소드 설명
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