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);
        }
        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;
        }