Ejemplo n.º 1
0
        public async Task Process(IncomingStepContext context, Func <Task> next)
        {
            _logger.LogDebug("Resolving TenantContext using {loggerType}.");
            var message = context.Load <Message>();

            var tenantContext = await _tenantResolver.ResolveAsync(context);

            if (tenantContext != null)
            {
                Console.WriteLine("TenantContext Resolved. Adding to IncomingStepContext.");
                context.SetTenantContext(tenantContext);
            }
            else
            {
                Console.WriteLine("TenantContext Not Resolved.");
            }
            await next();
        }