예제 #1
0
        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");
            }
        }
예제 #2
0
 public Depend2(SimpleLongPollingLinq <string> items)
 {
     items.Push("Depend2 added");
 }
예제 #3
0
 public Depend3(Depend2 depend2, SimpleLongPollingLinq <string> items)
 {
     items.Push("Depend3 added... depend2:" + depend2.GetHashCode());
 }