public static void Trace(Guid enlistmentId, CoordinationContext context)
        {
            CoordinationContextRecordSchema extendedData = new CoordinationContextRecordSchema(context);

            if (DiagnosticUtility.ShouldTraceInformation)
            {
                TxTraceUtility.Trace(TraceEventType.Information, 0xb000b, Microsoft.Transactions.SR.GetString("EnlistTransaction"), extendedData, null, enlistmentId, null);
            }
        }
Exemple #2
0
        public static void Trace(Guid enlistmentId, CoordinationContext context, ControlProtocol protocol, EndpointAddress coordinatorService, ProtocolVersion protocolVersion)
        {
            RegisterCoordinatorRecordSchema extendedData = RegisterCoordinatorRecordSchema.Instance(context, protocol, coordinatorService, protocolVersion);

            TxTraceUtility.Trace(TraceEventType.Information, GetCode(protocolVersion), Microsoft.Transactions.SR.GetString("RegisterCoordinator"), extendedData, null, enlistmentId, null);
        }
Exemple #3
0
        public static void Trace(Guid enlistmentId, string transactionId, ControlProtocol protocol, EndpointAddress participantService, ProtocolVersion protocolVersion)
        {
            RegisterParticipantRecordSchema extendedData = RegisterParticipantRecordSchema.Instance(transactionId, enlistmentId, protocol, participantService, protocolVersion);

            TxTraceUtility.Trace(TraceEventType.Information, GetCode(protocolVersion), Microsoft.Transactions.SR.GetString("RegisterParticipant"), extendedData, null, enlistmentId, null);
        }
        public static void Trace(Guid enlistmentId, string reason)
        {
            ReasonRecordSchema extendedData = new ReasonRecordSchema(reason);

            TxTraceUtility.Trace(TraceEventType.Warning, 0xb0001, Microsoft.Transactions.SR.GetString("CreateTransactionFailure"), extendedData, null, enlistmentId, null);
        }
        public static void Trace(Guid enlistmentId, string transactionId, TransactionOutcome outcome)
        {
            ParticipantOutcomeRecordSchema extendedData = new ParticipantOutcomeRecordSchema(transactionId, enlistmentId, outcome);

            TxTraceUtility.Trace(TraceEventType.Verbose, 0xb0027, Microsoft.Transactions.SR.GetString("ParticipantStateMachineFinished"), extendedData, null, enlistmentId, null);
        }
Exemple #6
0
        public static void Trace(Guid enlistmentId, EndpointAddress replyTo, ProtocolVersion protocolVersion)
        {
            VolatileEnlistmentInDoubtRecordSchema extendedData = VolatileEnlistmentInDoubtRecordSchema.Instance(enlistmentId, replyTo, protocolVersion);

            TxTraceUtility.Trace(TraceEventType.Warning, GetCode(protocolVersion), Microsoft.Transactions.SR.GetString("VolatileParticipantInDoubt"), extendedData, null, enlistmentId, null);
        }
        public static void Trace(Guid enlistmentId, string transactionId, EndpointAddress protocolService, ProtocolVersion protocolVersion)
        {
            RecoverCoordinatorRecordSchema extendedData = RecoverCoordinatorRecordSchema.Instance(transactionId, protocolService, protocolVersion);

            TxTraceUtility.Trace(TraceEventType.Information, GetCode(protocolVersion), Microsoft.Transactions.SR.GetString("CoordinatorRecovered"), extendedData, null, enlistmentId, null);
        }
Exemple #8
0
        public static void Trace(Guid enlistmentId, string transactionId, EndpointAddress participantService, ProtocolVersion protocolVersion)
        {
            RecoverParticipantRecordSchema extendedData = RecoverParticipantRecordSchema.Instance(transactionId, enlistmentId, participantService, protocolVersion);

            TxTraceUtility.Trace(TraceEventType.Warning, GetCode(protocolVersion), Microsoft.Transactions.SR.GetString("RecoveredParticipantInvalidMetadata"), extendedData, null, enlistmentId, null);
        }
        public static void Trace(Guid enlistmentId, CoordinationContext context, ControlProtocol protocol, EndpointAddress coordinatorService, Exception e, ProtocolVersion protocolVersion)
        {
            RegistrationCoordinatorResponseInvalidMetadataSchema extendedData = RegistrationCoordinatorResponseInvalidMetadataSchema.Instance(context, protocol, coordinatorService, protocolVersion);

            TxTraceUtility.Trace(TraceEventType.Warning, GetCode(protocolVersion), Microsoft.Transactions.SR.GetString("RegistrationCoordinatorResponseInvalidMetadata"), extendedData, e, enlistmentId, null);
        }
        public static void Trace(Guid enlistmentId, string transactionId)
        {
            EnlistmentRecordSchema extendedData = new EnlistmentRecordSchema(transactionId, enlistmentId);

            TxTraceUtility.Trace(TraceEventType.Warning, 0xb0005, Microsoft.Transactions.SR.GetString("DurableParticipantReplayWhilePreparing"), extendedData, null, enlistmentId, null);
        }
        public static void Trace(Guid enlistmentId, string transactionId, int count)
        {
            ParticipantRetryMessageRecordSchema extendedData = new ParticipantRetryMessageRecordSchema(transactionId, enlistmentId, count);

            TxTraceUtility.Trace(TraceEventType.Information, 0xb0021, Microsoft.Transactions.SR.GetString("CommitMessageRetry"), extendedData, null, enlistmentId, null);
        }
Exemple #12
0
 public static void Trace(Guid enlistmentId)
 {
     TxTraceUtility.Trace(TraceEventType.Information, 0xb0026, Microsoft.Transactions.SR.GetString("EnlistmentIdentityCheckFailed"), null, null, enlistmentId, null);
 }
Exemple #13
0
        public static void Trace(Guid enlistmentId, string transactionId, TransactionOutcome outcome, TimeSpan timeout)
        {
            EnlistmentTimeoutRecordSchema extendedData = new EnlistmentTimeoutRecordSchema(transactionId, enlistmentId, outcome, timeout);

            TxTraceUtility.Trace(TraceEventType.Warning, 0xb0004, Microsoft.Transactions.SR.GetString("VolatileOutcomeTimeout"), extendedData, null, enlistmentId, null);
        }
        public static void Trace(Guid protocolId, string protocolName)
        {
            ProtocolServiceRecordSchema extendedData = new ProtocolServiceRecordSchema(protocolName, protocolId);

            TxTraceUtility.Trace(TraceEventType.Information, 0xb000f, Microsoft.Transactions.SR.GetString("ProtocolStarted"), extendedData, null, protocolId, null);
        }
        public static void Trace(Guid enlistmentId, CoordinationContext context, ControlProtocol protocol, MessageFault fault)
        {
            RegistrationCoordinatorFaultedSchema extendedData = new RegistrationCoordinatorFaultedSchema(context, protocol, fault);

            TxTraceUtility.Trace(TraceEventType.Warning, 0xb0006, Microsoft.Transactions.SR.GetString("RegistrationCoordinatorFaulted"), extendedData, null, enlistmentId, null);
        }
Exemple #16
0
        public static void Trace(Guid enlistmentId, string transactionId, int count)
        {
            CoordinatorRetryMessageRecordSchema extendedData = new CoordinatorRetryMessageRecordSchema(transactionId, count);

            TxTraceUtility.Trace(TraceEventType.Information, 0xb0023, Microsoft.Transactions.SR.GetString("ReplayMessageRetry"), extendedData, null, enlistmentId, null);
        }