コード例 #1
0
        public static void StaticWrite(DateTime instant, int duration, string name, string method, int espaceId, int tenantId,
                                       string client_ip, string executedBy, string errorId)
        {
            WebServiceLogDefinition log = new WebServiceLogDefinition();

            log.Write(instant, duration, name, method, espaceId, tenantId, client_ip, executedBy, errorId);
        }
コード例 #2
0
 public WebServiceLogDefinition(WebServiceLogDefinition obj)
 {
     Instant    = obj.Instant;
     Duration   = obj.Duration;
     Name       = obj.Name;
     Method     = obj.Method;
     EspaceId   = obj.EspaceId;
     TenantId   = obj.TenantId;
     Client_IP  = obj.Client_IP;
     ExecutedBy = obj.ExecutedBy;
     ErrorId    = obj.ErrorId;
 }
コード例 #3
0
 public IntegrationLogDefinition(WebServiceLogDefinition obj)
 {
     Id         = GenerateLogId();
     Instant    = obj.Instant;
     Duration   = obj.Duration;
     Source     = obj.Client_IP;
     Endpoint   = String.Empty;
     Action     = obj.Method;
     Type       = String.Empty;
     EspaceId   = obj.EspaceId;
     TenantId   = obj.TenantId;
     ErrorId    = obj.ErrorId;
     ExecutedBy = obj.ExecutedBy;
     IsExpose   = true;
 }