public static void ReturnMessageReceivedEventArgs(MessageReceivedEventArgs writer) { if (!initialized) { ThreadInitialize(); } #if DEBUG ClientObjectCacheTestHelper.MessageReceivedEventArgsWasReturned(); #endif messageReceivedEventArgsPool.ReturnInstance(writer); }
public static MessageReceivedEventArgs GetMessageReceivedEventArgs() { if (!initialized) { ThreadInitialize(); } #if DEBUG ClientObjectCacheTestHelper.MessageReceivedEventArgsWasRetrieved(); #endif return(messageReceivedEventArgsPool.GetInstance()); }