Exemple #1
0
 public Context()
 {
     SenderHolder   = new SenderHolder();
     NotifyService  = new NotifyRegistryImpl(this);
     NotifyEngine   = new NotifyEngine(this);
     DispatchEngine = new DispatchEngine(this);
 }
Exemple #2
0
        public Context(IServiceProvider serviceProvider)
        {
            var options = serviceProvider.GetService <IOptionsMonitor <ILog> >();

            Log            = options.CurrentValue;
            NotifyEngine   = new NotifyEngine(this, serviceProvider);
            DispatchEngine = new DispatchEngine(this, serviceProvider.GetService <IConfiguration>(), options);
        }
Exemple #3
0
        public DispatchSink(string senderName, DispatchEngine dispatcher)
        {
            if (dispatcher == null)
            {
                throw new ArgumentNullException("dispatcher");
            }

            this.dispatcher = dispatcher;
            this.senderName = senderName;
        }
Exemple #4
0
 public Context()
 {
     NotifyEngine   = new NotifyEngine(this);
     DispatchEngine = new DispatchEngine(this);
 }