public void SendFault(EndpointAddress faultTo, UniqueId messageID, Microsoft.Transactions.Wsat.Messaging.Fault fault) { if (faultTo != null) { this.state.FaultSender.TrySendCompletionParticipantFault(faultTo, messageID, fault); } }
public void SendFault(EndpointAddress faultTo, UniqueId messageID, Microsoft.Transactions.Wsat.Messaging.Fault fault) { if (faultTo != null) { this.state.FaultSender.TrySendTwoPhaseCommitCoordinatorFault(faultTo, messageID, fault); } }
public void SendFault(Microsoft.Transactions.Wsat.Messaging.RequestAsyncResult result, Fault fault) { this.state.Perf.FaultsSentCountPerInterval.Increment(); if (DebugTrace.Warning) { DebugTrace.Trace(TraceLevel.Warning, "Sending {0} fault to activation participant", fault.Code.Name); } ActivationProxy.SendFaultResponse(result, fault); }
public static Message CreateFaultMessage(UniqueId messageID, MessageVersion messageVersion, Fault fault) { MessageFault fault2 = MessageFault.CreateFault(FaultCode.CreateSenderFaultCode(fault.Code), fault.Reason); Message message = Message.CreateMessage(messageVersion, fault2, messageVersion.Addressing.FaultAction); message.Headers.Action = fault.Action; if (messageID != null) { message.Headers.RelatesTo = messageID; } return message; }
private Faults11() : base(ProtocolVersion.Version11) { string reasonText = Microsoft.Transactions.SR.GetString("CannotCreateContextReason"); FaultCode code = new FaultCode(base.coordinationStrings.CannotCreateContext, base.coordinationStrings.Namespace); this.cannotCreateContext = new Fault(base.coordinationStrings.FaultAction, code, reasonText); string str2 = Microsoft.Transactions.SR.GetString("CannotRegisterParticipant"); FaultCode code2 = new FaultCode(base.coordinationStrings.CannotRegisterParticipant, base.coordinationStrings.Namespace); this.cannotRegisterParticipant = new Fault(base.coordinationStrings.FaultAction, code2, str2); string str3 = Microsoft.Transactions.SR.GetString("UnknownTransactionReason"); FaultCode code3 = new FaultCode(base.atomicTransactionStrings.UnknownTransaction, base.atomicTransactionStrings.Namespace); this.unknownTransaction = new Fault(base.atomicTransactionStrings.FaultAction, code3, str3); }
private Faults10() : base(ProtocolVersion.Version10) { string reasonText = Microsoft.Transactions.SR.GetString("ContextRefusedReason"); FaultCode code = new FaultCode(base.coordinationStrings.ContextRefused, base.coordinationStrings.Namespace); this.contextRefused = new Fault(base.coordinationStrings.FaultAction, code, reasonText); string str2 = Microsoft.Transactions.SR.GetString("AlreadyRegisteredReason"); FaultCode code2 = new FaultCode(base.coordinationStrings.AlreadyRegistered, base.coordinationStrings.Namespace); this.alreadyRegistered = new Fault(base.coordinationStrings.FaultAction, code2, str2); string str3 = Microsoft.Transactions.SR.GetString("TooManyEnlistmentsReason"); FaultCode code3 = new FaultCode("TooManyEnlistments", "http://schemas.microsoft.com/ws/2006/02/transactions"); this.tooManyEnlistments = new Fault(base.atomicTransactionStrings.FaultAction, code3, str3); string str4 = Microsoft.Transactions.SR.GetString("DisabledReason"); FaultCode code4 = new FaultCode("Disabled", "http://schemas.microsoft.com/ws/2006/02/transactions"); this.disabled = new Fault(base.atomicTransactionStrings.FaultAction, code4, str4); }
public void TrySendCompletionParticipantFault(EndpointAddress faultTo, UniqueId messageID, Fault fault) { DatagramProxy proxy = this.state.TryCreateCompletionParticipantProxy(faultTo); if (proxy == null) { if (DebugTrace.Warning) { DebugTrace.Trace(TraceLevel.Warning, "Could not create a proxy to send {0} fault", fault.Code.Name); } } else { try { this.TrySendFault(proxy, messageID, fault); } finally { proxy.Release(); } } }
private void TrySendFault(DatagramProxy proxy, UniqueId messageID, Fault fault) { if (proxy == null) { if (DebugTrace.Warning) { DebugTrace.Trace(TraceLevel.Warning, "Could not create a proxy to send {0} fault", fault.Code.Name); } } else { this.state.Perf.FaultsSentCountPerInterval.Increment(); if (DebugTrace.Info) { DebugTrace.Trace(TraceLevel.Info, "Sending {0} fault to {1}", fault.Code.Name, Ports.TryGetAddress(proxy)); } IAsyncResult ar = proxy.BeginSendFault(messageID, fault, this.sendFaultComplete, proxy); if (ar.CompletedSynchronously) { this.OnSendFaultComplete(ar, proxy); } } }
public static void SendFaultResponse(Microsoft.Transactions.Wsat.Messaging.RequestAsyncResult result, Fault fault) { Library.SendFaultResponse(result, fault); }
protected override void SendFaultReply(Microsoft.Transactions.Wsat.Messaging.RequestAsyncResult result, Fault fault) { RegistrationProxy.SendFaultResponse(result, fault); }
public static void SendFaultResponse(Microsoft.Transactions.Wsat.Messaging.RequestAsyncResult result, Fault fault) { Message reply = CreateFaultMessage(result.MessageId, result.MessageVersion, fault); result.Finished(reply); }
protected void TrySendFault(VolatileTwoPhaseCommitCoordinatorEvent e, Fault fault) { this.state.TwoPhaseCommitParticipant.SendFault(e.FaultTo, e.MessageId, fault); }
private void SendFault(Message message, Microsoft.Transactions.Wsat.Messaging.Fault fault) { this.SendFault(Library.GetFaultToHeader(message.Headers, this.state.ProtocolVersion), message.Headers.MessageId, fault); }
protected void OnMessageException(Microsoft.Transactions.Wsat.Messaging.RequestAsyncResult result, Message message, CommunicationException exception, Fault fault) { DebugTrace.Trace(TraceLevel.Warning, "{0} - {1} reading request with action {2}: {3}", base.GetType().Name, exception.GetType().Name, message.Headers.Action, exception.Message); this.SendFaultReply(result, fault); DebugTrace.Trace(TraceLevel.Warning, "Replied with {0} fault", fault.Code.Name); }
public static void SendFaultResponse(Microsoft.Transactions.Wsat.Messaging.RequestAsyncResult result, Fault fault) { Library.SendFaultResponse(result, fault); }
protected override void SendFaultReply(Microsoft.Transactions.Wsat.Messaging.RequestAsyncResult result, Fault fault) { ActivationProxy.SendFaultResponse(result, fault); }
protected abstract void SendFaultReply(Microsoft.Transactions.Wsat.Messaging.RequestAsyncResult result, Fault fault);