예제 #1
0
        public async Task InvokeAsync(HttpContext context, IScopedService scopedService)
        {
            var singleton = _singletonSvc.GetData();
            var scoped    = scopedService.GetData();

            await context.Response.WriteAsync($"Singleton Data is { singleton }; Scoped Data is { scoped }");
        }