public Startup(IServiceProvider scope, Depend3 depend3, IOutput output, SimpleLongPollingLinq <string> items) { this.output = output ?? throw new ArgumentNullException(nameof(output)); this.items = items; Console.WriteLine("Startup activated"); items.Push("items.Push"); using (var s = scope.CreateScope()) { var items2 = s.ServiceProvider.GetService <SimpleLongPollingLinq <string> >(); items2.Push("items2.Push"); } }
public Depend2(SimpleLongPollingLinq <string> items) { items.Push("Depend2 added"); }
public Depend3(Depend2 depend2, SimpleLongPollingLinq <string> items) { items.Push("Depend3 added... depend2:" + depend2.GetHashCode()); }