Beispiel #1
0
 public EventSender(IPlatformBus bus, StorageProvider storageProvider, EventNotifier eventNotifier)
 {
     this.bus             = bus;
     this.storageProvider = storageProvider;
     this.eventNotifier   = eventNotifier;
     this.serviceIdentity = ConfigurationManager.AppSettings["identity"];
 }
        public void StartManager()
        {
            var obsTypes = AppDomain.CurrentDomain.GetAssemblies().SelectMany(s => s.GetTypes()).Where(p => typeof(IEventObserver).IsAssignableFrom(p) && !p.IsInterface && !p.IsAbstract);
            IList <IEventObserver> observers = obsTypes.Select(obsType => (IEventObserver)this.Resolver.Resolve(obsType)).ToList();

            EventNotifier.Init(observers);

            //  AddEventQueue();
        }