Exemple #1
0
        public static void ReturnServerMessageReceivedEventArgs(ServerMessageReceivedEventArgs writer)
        {
            if (!initialized)
            {
                ThreadInitialize();
            }

#if DEBUG
            ServerObjectCacheTestHelper.ServerMessageReceivedEventArgsWasReturned();
#endif
            serverMessageReceivedEventArgsPool.ReturnInstance(writer);
        }
Exemple #2
0
        public static MessageReceivedEventArgs GetMessageReceivedEventArgs()
        {
            if (!initialized)
            {
                ThreadInitialize();
            }

#if DEBUG
            ServerObjectCacheTestHelper.MessageReceivedEventArgsWasRetrieved();
#endif

            return(messageReceivedEventArgsPool.GetInstance());
        }