コード例 #1
0
        public static void ReturnMessageReceivedEventArgs(MessageReceivedEventArgs writer)
        {
            if (!initialized)
            {
                ThreadInitialize();
            }

#if DEBUG
            ClientObjectCacheTestHelper.MessageReceivedEventArgsWasReturned();
#endif
            messageReceivedEventArgsPool.ReturnInstance(writer);
        }
コード例 #2
0
        public static MessageReceivedEventArgs GetMessageReceivedEventArgs()
        {
            if (!initialized)
            {
                ThreadInitialize();
            }

#if DEBUG
            ClientObjectCacheTestHelper.MessageReceivedEventArgsWasRetrieved();
#endif

            return(messageReceivedEventArgsPool.GetInstance());
        }