예제 #1
0
 public static void Close(AsyncEndpointExecutor executor)
 {
     Log.LogInformation((int)EventIds.Close, "[Close] Close began. EndpointId: {0}, EndpointName: {1}", executor.Endpoint.Id, executor.Endpoint.Name);
 }
예제 #2
0
 public static void CloseSuccess(AsyncEndpointExecutor executor)
 {
     Log.LogInformation((int)EventIds.CloseSuccess, "[CloseSuccess] Close succeeded. EndpointId: {0}, EndpointName: {1}", executor.Endpoint.Id, executor.Endpoint.Name);
 }
예제 #3
0
 public static void SetEndpointSuccess(AsyncEndpointExecutor executor)
 {
     Log.LogInformation((int)EventIds.SetEndpointSuccess, "[SetEndpointSuccess] Set endpoint succeeded. EndpointId: {0}, EndpointName: {1}", executor.Endpoint.Id, executor.Endpoint.Name);
 }
예제 #4
0
 public static void SetEndpointFailure(AsyncEndpointExecutor executor, Exception ex)
 {
     Log.LogError((int)EventIds.SetEndpointFailure, ex, "[SetEndpointFailure] Set endpoint failed. EndpointId: {0}, EndpointName: {1}", executor.Endpoint.Id, executor.Endpoint.Name);
 }
예제 #5
0
 public static void SetEndpoint(AsyncEndpointExecutor executor)
 {
     Log.LogInformation((int)EventIds.SetEndpoint, "[SetEndpoint] Set endpoint began. EndpointId: {0}, EndpointName: {1}", executor.Endpoint.Id, executor.Endpoint.Name);
 }
예제 #6
0
 public static void ProcessMessagesFailure(AsyncEndpointExecutor executor, IMessage[] messages, Exception ex)
 {
     Log.LogCritical((int)EventIds.ProcessMessagesFailure, ex, "[ProcessMessagesFailure] Process messages failed. EndpointId: {0}, EndpointName: {1}, BatchSize: {2}", executor.Endpoint.Id, executor.Endpoint.Name, messages.Length);
 }
예제 #7
0
 public static void ProcessMessagesSuccess(AsyncEndpointExecutor executor, ICollection <IMessage> messages)
 {
     Log.LogDebug((int)EventIds.ProcessMessagesSuccess, "[ProcessMessagesSuccess] Process messages succeeded. EndpointId: {0}, EndpointName: {1}, BatchSize: {2}", executor.Endpoint.Id, executor.Endpoint.Name, messages.Count);
 }
예제 #8
0
 public static void InvokeWarning(AsyncEndpointExecutor executor, Exception ex, IMessage message)
 {
     Log.LogWarning((int)EventIds.InvokeWarning, ex, "[InvokeWarning] Invoke failed. EndpointId: {0}, EndpointName: {1}, Offset: {2}",
                    executor.Endpoint.Id, executor.Endpoint.Name, message?.Offset);
 }
예제 #9
0
 public static void InvokeSuccess(AsyncEndpointExecutor executor, IMessage message)
 {
     Log.LogDebug((int)EventIds.InvokeSuccess, "[InvokeSuccess] Invoke succeeded. EndpointId: {0}, EndpointName: {1}, Offset:{2}", executor.Endpoint.Id, executor.Endpoint.Name, message?.Offset);
 }