Beispiel #1
0
        public static string StaticWrite(DateTime instant, int duration, string source, string endpoint, string action, string type,
                                         int espaceId, int tenantId, string errorId, string executedBy, bool isExpose, string requestKey,
                                         string eSpaceName, string applicationName, ObjectKey applicationKey)
        {
            IntegrationLogDefinition log = new IntegrationLogDefinition();

            log.Write(GenerateLogId(), instant, duration, source, endpoint, action, type, espaceId, tenantId, errorId, executedBy, isExpose, requestKey,
                      eSpaceName, applicationName, applicationKey);
            return(log.Id);
        }
Beispiel #2
0
 public IntegrationLogDefinition(IntegrationLogDefinition obj)
 {
     Id         = GenerateLogId();
     Instant    = obj.Instant;
     Duration   = obj.Duration;
     Source     = obj.Source;
     Endpoint   = obj.Endpoint;
     Action     = obj.Action;
     Type       = obj.Type;
     EspaceId   = obj.EspaceId;
     TenantId   = obj.TenantId;
     ErrorId    = obj.ErrorId;
     ExecutedBy = obj.ExecutedBy;
     IsExpose   = obj.IsExpose;
     RequestKey = obj.RequestKey;
 }