예제 #1
0
        public static string StaticWrite(IAppInfo appInfo, DateTime instant, int duration, string source, string endpoint, string action, string type,
                                         string errorId, bool isExpose)
        {
            IntegrationLog log = new IntegrationLog();

            log.Write(appInfo, IntegrationLogDefinition.GenerateLogId(), instant, duration, source, endpoint, action, type, errorId, isExpose);
            return(log.Id);
        }
예제 #2
0
        public IntegrationLog(WebServiceLog obj)
        {
            log = new IntegrationLogDefinition();

            Id         = IntegrationLogDefinition.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;
        }
예제 #3
0
        public IntegrationLog(WebReferenceLog obj)
        {
            log = new IntegrationLogDefinition();

            Id         = IntegrationLogDefinition.GenerateLogId();
            Instant    = obj.Instant;
            Duration   = obj.Duration;
            Source     = String.Empty;
            Endpoint   = obj.URL;
            Action     = obj.Method;
            Type       = String.Empty;
            EspaceId   = obj.EspaceId;
            TenantId   = obj.TenantId;
            ErrorId    = obj.ErrorId;
            ExecutedBy = obj.Executed_By;
            IsExpose   = false;
        }
예제 #4
0
        public IntegrationLog(IntegrationLog obj)
        {
            log = new IntegrationLogDefinition();

            Id              = IntegrationLogDefinition.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;
            EspaceName      = obj.EspaceName;
            ApplicationName = obj.ApplicationName;
            ApplicationKey  = obj.ApplicationKey;
        }