internal static Message End(IAsyncResult result, out SecurityProtocolCorrelationState newCorrelationState)
            {
                SecureOutgoingMessageAsyncResult self = AsyncResult.End <SecureOutgoingMessageAsyncResult>(result);

                newCorrelationState = self.newCorrelationState;
                return(self.message);
            }
 protected override Message EndSecureOutgoingMessageAtInitiatorCore(IAsyncResult result)
 {
     if (result is CompletedAsyncResult <Message> )
     {
         return(CompletedAsyncResult <Message> .End(result));
     }
     return(SecureOutgoingMessageAsyncResult.End(result));
 }
 protected virtual Message EndSecureOutgoingMessageAtInitiatorCore(IAsyncResult result)
 {
     if (result is CompletedAsyncResult <Message> )
     {
         return(CompletedAsyncResult <Message> .End(result));
     }
     else
     {
         return(SecureOutgoingMessageAsyncResult.End(result));
     }
 }
Пример #4
0
 protected override void EndSecureOutgoingMessageCore(IAsyncResult result, out Message message, out SecurityProtocolCorrelationState newCorrelationState)
 {
     if (result is CompletedAsyncResult <Message, SecurityProtocolCorrelationState> )
     {
         message = CompletedAsyncResult <Message, SecurityProtocolCorrelationState> .End(result, out newCorrelationState);
     }
     else
     {
         message = SecureOutgoingMessageAsyncResult.End(result, out newCorrelationState);
     }
 }
            internal static Message End(IAsyncResult result)
            {
                SecureOutgoingMessageAsyncResult self = AsyncResult.End <SecureOutgoingMessageAsyncResult>(result);

                return(self.message);
            }