Exemplo n.º 1
0
        public void Start()
        {
            items.Push("Startup.Start");

            Console.WriteLine("Startup started");

            output.Write("Startup started injected: \n - " + string.Join("\n - ", items.TakeAll()));
        }
Exemplo n.º 2
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");
            }
        }
Exemplo n.º 3
0
 public Depend2(SimpleLongPollingLinq <string> items)
 {
     items.Push("Depend2 added");
 }
Exemplo n.º 4
0
 public Depend3(Depend2 depend2, SimpleLongPollingLinq <string> items)
 {
     items.Push("Depend3 added... depend2:" + depend2.GetHashCode());
 }