/// <summary> /// Gets trace definition like: Pending messages per channel ratio: {0}/{1} /// Event description ID=1436, Level=verbose, Channel=analytic /// </summary> /// <param name="cur">Parameter 0 for event: Pending messages per channel ratio: {0}/{1}</param> /// <param name="max">Parameter 1 for event: Pending messages per channel ratio: {0}/{1}</param> internal static void PendingMessagesPerChannelRatio(int cur, int max) { TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null); if (TD.IsEtwEventEnabled(18)) { TD.WriteEtwEvent(18, null, cur, max, payload.AppDomainFriendlyName); } }
/// <summary> /// Gets trace definition like: CreateWorkflowServiceHost Stop /// Event description ID=3556, Level=informational, Channel=debug /// </summary> internal static void CreateWorkflowServiceHostStop() { TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null); if (TD.IsEtwEventEnabled(11)) { TD.WriteEtwEvent(11, null, payload.AppDomainFriendlyName); } }
/// <summary> /// Gets trace definition like: SendMessageChannelCache miss /// Event description ID=2023, Level=Verbose, Channel=Debug /// </summary> internal static void SendMessageChannelCacheMiss() { TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null); if (TD.IsEtwEventEnabled(15)) { TD.WriteEtwEvent(15, null, payload.AppDomainFriendlyName); } }
/// <summary> /// Gets trace definition like: The system hit the limit set for throttle 'MaxConcurrentInstances'. Limit for this throttle was set to {0}. Throttle value can be changed by modifying attribute 'maxConcurrentInstances' in serviceThrottle element or by modifying 'MaxConcurrentInstances' property on behavior ServiceThrottlingBehavior. /// Event description ID=57398, Level=Warning, Channel=Analytic /// </summary> /// <param name="limit">Parameter 0 for event: The system hit the limit set for throttle 'MaxConcurrentInstances'. Limit for this throttle was set to {0}. Throttle value can be changed by modifying attribute 'maxConcurrentInstances' in serviceThrottle element or by modifying 'MaxConcurrentInstances' property on behavior ServiceThrottlingBehavior.</param> internal static void MaxInstancesExceeded(int limit) { TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null); if (TD.IsEtwEventEnabled(0)) { TD.WriteEtwEvent(0, null, limit, payload.AppDomainFriendlyName); } if (FxTrace.ShouldTraceWarningToTraceSource) { string description = string.Format(Culture, ResourceManager.GetString("MaxInstancesExceeded", Culture), limit); TD.WriteTraceSource(0, description, payload); } }
/// <summary> /// Gets trace definition like: Calculated correlation key '{0}' using values '{1}' in parent scope '{2}'. /// Event description ID=225, Level=informational, Channel=Analytic /// </summary> /// <param name="InstanceKey">Parameter 0 for event: Calculated correlation key '{0}' using values '{1}' in parent scope '{2}'.</param> /// <param name="Values">Parameter 1 for event: Calculated correlation key '{0}' using values '{1}' in parent scope '{2}'.</param> /// <param name="ParentScope">Parameter 2 for event: Calculated correlation key '{0}' using values '{1}' in parent scope '{2}'.</param> internal static void TraceCorrelationKeys(System.Guid InstanceKey, string Values, string ParentScope) { TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null, true); if (TD.IsEtwEventEnabled(14)) { TD.WriteEtwEvent(14, null, InstanceKey, Values, ParentScope, payload.HostReference, payload.AppDomainFriendlyName); } if (FxTrace.ShouldTraceInformationToTraceSource) { string description = string.Format(Culture, ResourceManager.GetString("TraceCorrelationKeys", Culture), InstanceKey, Values, ParentScope); TD.WriteTraceSource(14, description, payload); } }
/// <summary> /// Gets trace definition like: TrackingProfile '{0}' for the ActivityDefinitionId '{1}' not found. Either the TrackingProfile is not found in the config file or the ActivityDefinitionId does not match. /// Event description ID=3508, Level=verbose, Channel=Analytic /// </summary> /// <param name="TrackingProfile">Parameter 0 for event: TrackingProfile '{0}' for the ActivityDefinitionId '{1}' not found. Either the TrackingProfile is not found in the config file or the ActivityDefinitionId does not match.</param> /// <param name="ActivityDefinitionId">Parameter 1 for event: TrackingProfile '{0}' for the ActivityDefinitionId '{1}' not found. Either the TrackingProfile is not found in the config file or the ActivityDefinitionId does not match.</param> internal static void TrackingProfileNotFound(string TrackingProfile, string ActivityDefinitionId) { TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null); if (TD.IsEtwEventEnabled(13)) { TD.WriteEtwEvent(13, null, TrackingProfile, ActivityDefinitionId, payload.AppDomainFriendlyName); } if (FxTrace.ShouldTraceVerboseToTraceSource) { string description = string.Format(Culture, ResourceManager.GetString("TrackingProfileNotFound", Culture), TrackingProfile, ActivityDefinitionId); TD.WriteTraceSource(13, description, payload); } }
/// <summary> /// Gets trace definition like: The call to EndCommit on the CommittableTransaction with id = '{0}' threw a TransactionException with the following message: '{1}'. /// Event description ID=3557, Level=informational, Channel=Analytic /// </summary> /// <param name="param0">Parameter 0 for event: The call to EndCommit on the CommittableTransaction with id = '{0}' threw a TransactionException with the following message: '{1}'.</param> /// <param name="param1">Parameter 1 for event: The call to EndCommit on the CommittableTransaction with id = '{0}' threw a TransactionException with the following message: '{1}'.</param> internal static void TransactedReceiveScopeEndCommitFailed(string param0, string param1) { TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null); if (TD.IsEtwEventEnabled(12)) { TD.WriteEtwEvent(12, null, param0, param1, payload.AppDomainFriendlyName); } if (FxTrace.ShouldTraceInformationToTraceSource) { string description = string.Format(Culture, ResourceManager.GetString("TransactedReceiveScopeEndCommitFailed", Culture), param0, param1); TD.WriteTraceSource(12, description, payload); } }
/// <summary> /// Gets trace definition like: Operation '{1}' on service instance '{0}' cannot be performed at this time. Another attempt will be made when the service instance is ready to process this particular operation. /// Event description ID=3551, Level=Informational, Channel=Analytic /// </summary> /// <param name="eventTraceActivity">The event trace activity</param> /// <param name="param0">Parameter 0 for event: Operation '{1}' on service instance '{0}' cannot be performed at this time. Another attempt will be made when the service instance is ready to process this particular operation.</param> /// <param name="param1">Parameter 1 for event: Operation '{1}' on service instance '{0}' cannot be performed at this time. Another attempt will be made when the service instance is ready to process this particular operation.</param> internal static void BufferOutOfOrderMessageNoBookmark(System.Runtime.Diagnostics.EventTraceActivity eventTraceActivity, string param0, string param1) { TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null); if (TD.IsEtwEventEnabled(8)) { TD.WriteEtwEvent(8, eventTraceActivity, param0, param1, payload.AppDomainFriendlyName); } if (FxTrace.ShouldTraceInformationToTraceSource) { string description = string.Format(Culture, ResourceManager.GetString("BufferOutOfOrderMessageNoBookmark", Culture), param0, param1); TD.WriteTraceSource(8, description, payload); } }
/// <summary> /// Gets trace definition like: Operation '{0}' cannot be performed at this time. Another attempt will be made when the service instance is ready to process this particular operation. /// Event description ID=3550, Level=Informational, Channel=Analytic /// </summary> /// <param name="param0">Parameter 0 for event: Operation '{0}' cannot be performed at this time. Another attempt will be made when the service instance is ready to process this particular operation.</param> internal static void BufferOutOfOrderMessageNoInstance(string param0) { TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null); if (TD.IsEtwEventEnabled(7)) { TD.WriteEtwEvent(7, null, param0, payload.AppDomainFriendlyName); } if (FxTrace.ShouldTraceInformationToTraceSource) { string description = string.Format(Culture, ResourceManager.GetString("BufferOutOfOrderMessageNoInstance", Culture), param0); TD.WriteTraceSource(7, description, payload); } }
/// <summary> /// Gets trace definition like: Activity boundary. /// Event description ID=441, Level=informational, Channel=Analytic /// </summary> /// <param name="traceRecord">Extended data (TraceRecord) for the event</param> internal static void StopSignpostEvent(TraceRecord traceRecord) { TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, traceRecord, null); if (TD.IsEtwEventEnabled(6)) { TD.WriteEtwEvent(6, null, payload.ExtendedData, payload.AppDomainFriendlyName); } if (FxTrace.ShouldTraceInformationToTraceSource) { string description = string.Format(Culture, ResourceManager.GetString("StopSignpostEvent", Culture)); TD.WriteTraceSource(6, description, payload); } }
/// <summary> /// Gets trace definition like: A service endpoint has been added for address '{0}', binding '{1}', and contract '{2}'. /// Event description ID=3507, Level=Informational, Channel=Analytic /// </summary> /// <param name="param0">Parameter 0 for event: A service endpoint has been added for address '{0}', binding '{1}', and contract '{2}'.</param> /// <param name="param1">Parameter 1 for event: A service endpoint has been added for address '{0}', binding '{1}', and contract '{2}'.</param> /// <param name="param2">Parameter 2 for event: A service endpoint has been added for address '{0}', binding '{1}', and contract '{2}'.</param> internal static void ServiceEndpointAdded(string param0, string param1, string param2) { TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null); if (TD.IsEtwEventEnabled(4)) { TD.WriteEtwEvent(4, null, param0, param1, param2, payload.AppDomainFriendlyName); } if (FxTrace.ShouldTraceInformationToTraceSource) { string description = string.Format(Culture, ResourceManager.GetString("ServiceEndpointAdded", Culture), param0, param1, param2); TD.WriteTraceSource(4, description, payload); } }
/// <summary> /// Gets trace definition like: A duplicate CorrelationQuery was found with Where='{0}'. This duplicate query will not be used when calculating correlation. /// Event description ID=3503, Level=Warning, Channel=Analytic /// </summary> /// <param name="param0">Parameter 0 for event: A duplicate CorrelationQuery was found with Where='{0}'. This duplicate query will not be used when calculating correlation.</param> internal static void DuplicateCorrelationQuery(string param0) { TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null); if (TD.IsEtwEventEnabled(3)) { TD.WriteEtwEvent(3, null, param0, payload.AppDomainFriendlyName); } if (FxTrace.ShouldTraceWarningToTraceSource) { string description = string.Format(Culture, ResourceManager.GetString("DuplicateCorrelationQuery", Culture), param0); TD.WriteTraceSource(3, description, payload); } }
/// <summary> /// Gets trace definition like: ContractDescription with Name='{0}' and Namespace='{1}' has been inferred from WorkflowService. /// Event description ID=3501, Level=Informational, Channel=Analytic /// </summary> /// <param name="param0">Parameter 0 for event: ContractDescription with Name='{0}' and Namespace='{1}' has been inferred from WorkflowService.</param> /// <param name="param1">Parameter 1 for event: ContractDescription with Name='{0}' and Namespace='{1}' has been inferred from WorkflowService.</param> internal static void InferredContractDescription(string param0, string param1) { TracePayload payload = FxTrace.Trace.GetSerializedPayload(null, null, null); if (TD.IsEtwEventEnabled(1)) { TD.WriteEtwEvent(1, null, param0, param1, payload.AppDomainFriendlyName); } if (FxTrace.ShouldTraceInformationToTraceSource) { string description = string.Format(Culture, ResourceManager.GetString("InferredContractDescription", Culture), param0, param1); TD.WriteTraceSource(1, description, payload); } }