/// <inheritdoc/>
 public ExecutionContext CurrentFor(TenantId tenant, CorrelationId correlationId, string filePath, int lineNumber, string member)
 {
     return(CurrentFor(tenant, correlationId, Claims.Empty, filePath, lineNumber, member));
 }
 /// <inheritdoc/>
 public ExecutionContext System(CorrelationId correlationId, string filePath, int lineNumber, string member)
 {
     return(CurrentFor(TenantId.System, correlationId, filePath, lineNumber, member));
 }
示例#3
0
        /// <inheritdoc/>
        public ExecutionContext CurrentFor(Microservice microservice, TenantId tenant, CorrelationId correlationId, Claims claims, string filePath, int lineNumber, string member)
        {
            var executionContext = new ExecutionContext(
                microservice,
                tenant,
                _version,
                _environment,
                correlationId,
                claims,
                CultureInfo.CurrentCulture);

            return(CurrentFor(executionContext, filePath, lineNumber, member));
        }
示例#4
0
 /// <inheritdoc/>
 public ExecutionContext CurrentFor(TenantId tenant, CorrelationId correlationId, Claims claims, string filePath, int lineNumber, string member) =>
 CurrentFor(_microservice, tenant, correlationId, claims, filePath, lineNumber, member);
示例#5
0
 /// <inheritdoc/>
 public ExecutionContext CurrentFor(Microservice microservice, TenantId tenant, CorrelationId correlationId, string filePath, int lineNumber, string member) =>
 CurrentFor(microservice, tenant, correlationId, Claims.Empty, filePath, lineNumber, member);
示例#6
0
 /// <inheritdoc/>
 public ExecutionContext CurrentFor(TenantId tenant, string filePath, int lineNumber, string member) =>
 CurrentFor(_microservice, tenant, CorrelationId.New(), Claims.Empty, filePath, lineNumber, member);