private void ProccessTransportError(int clientTransactionId, int serverTransactionId) { //if (Transaction.GetTransactionKind(clientTransactionId) == Transaction.Kind.InviteClient) if (Transaction.IsClientTransaction(clientTransactionId)) { ProccessError(serverTransactionId, clientTransactionId, StatusCodes.ServiceUnavailable); } }
private void DoWork <T>(T transaction, int action) where T : ITransaction { if ((action & Transaction.Action.InformTuAboutError) > 0) { if (Transaction.IsClientTransaction(transaction.Id)) { producedRequests[transaction.Router].TransportError(transaction.Id, transaction.UserData); } else { acceptedRequests[transaction.Router].TransportError(transaction.Id); } } DoWork(transaction.Id, action); }