Exemplo n.º 1
0
        public SequentialHostedServiceBuilder HostSequential(string name, Action <SequentialHostedServiceBuilder> configure)
        {
            var builder = new SequentialHostedServiceBuilder(_services, name);

            configure(builder);
            _activators.Add(sp => builder.Build(sp));
            return(this);
        }
Exemplo n.º 2
0
        public ParallelHostedServiceBuilder HostSequential(string name, Action <SequentialHostedServiceBuilder> sequential)
        {
            var builder = new SequentialHostedServiceBuilder(_services, name);

            sequential(builder);
            _activators.Add(sp => builder.Build(sp));
            return(this);
        }