public CreateCoordinationContextResponse EndSendCreateCoordinationContext(IAsyncResult ar) { CreateCoordinationContextResponse response; try { Message message = base.EndSendRequest(ar, base.coordinationStrings.CreateCoordinationContextResponseAction); using (message) { if (DebugTrace.Verbose) { DebugTrace.Trace(TraceLevel.Verbose, "Dispatching CreateCoordinationContextResponse reply"); if (DebugTrace.Pii) { DebugTrace.TracePii(TraceLevel.Verbose, "Sender is {0}", CoordinationServiceSecurity.GetSenderName(message)); } } response = new CreateCoordinationContextResponse(message, base.protocolVersion); } } catch (CommunicationException exception) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WsatReceiveFailureException(exception)); } return response; }
public CreateCoordinationContextResponse EndSendCreateCoordinationContext(IAsyncResult ar) { CreateCoordinationContextResponse response; try { Message message = base.EndSendRequest(ar, base.coordinationStrings.CreateCoordinationContextResponseAction); using (message) { if (DebugTrace.Verbose) { DebugTrace.Trace(TraceLevel.Verbose, "Dispatching CreateCoordinationContextResponse reply"); if (DebugTrace.Pii) { DebugTrace.TracePii(TraceLevel.Verbose, "Sender is {0}", CoordinationServiceSecurity.GetSenderName(message)); } } response = new CreateCoordinationContextResponse(message, base.protocolVersion); } } catch (CommunicationException exception) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WsatReceiveFailureException(exception)); } return(response); }
public static void SendCreateCoordinationContextResponse(Microsoft.Transactions.Wsat.Messaging.RequestAsyncResult result, ref CreateCoordinationContextResponse response) { Message message = new CreateCoordinationContextResponseMessage(result.MessageVersion, ref response); if (response.IssuedToken != null) { CoordinationServiceSecurity.AddIssuedToken(message, response.IssuedToken); } result.Finished(message); }
public void SendCreateCoordinationContextResponse(TransactionContext txContext, Microsoft.Transactions.Wsat.Messaging.RequestAsyncResult result) { CreateCoordinationContextResponse response = new CreateCoordinationContextResponse(this.state.ProtocolVersion) { CoordinationContext = txContext.CoordinationContext, IssuedToken = txContext.IssuedToken }; if (DebugTrace.Info) { DebugTrace.Trace(TraceLevel.Info, "Sending CreateCoordinationContextResponse"); } ActivationProxy.SendCreateCoordinationContextResponse(result, ref response); }
public CreateCoordinationContextResponseMessage(MessageVersion version, ref CreateCoordinationContextResponse response) : base(CoordinationStrings.Version(response.ProtocolVersion).CreateCoordinationContextResponseAction, version) { this.response = response; }