Exemple #1
0
 public ThingBuilder(IGatewayRepository gatewayRepository, IThingRepository thingRepository,
                     IThingTemplateRepository thingTemplateRepository, IThingChannelBuilder thingChannelBuilder, IMessageHub messageHub)
 {
     _gatewayRepository       = gatewayRepository;
     _thingRepository         = thingRepository;
     _thingTemplateRepository = thingTemplateRepository;
     _thingChannelBuilder     = thingChannelBuilder;
     _messageHub = messageHub;
 }
Exemple #2
0
        public ThingSubSystem(IGatewayBuilder gatewayBuilder, IThingBuilder thingBuilder,
                              IThingTemplateRepository thingTemplateRepository, IKernelRequestDispatcher requestDispatcher,
                              IMessageHub messageHub)
        {
            _gatewayBuilder          = gatewayBuilder;
            _thingBuilder            = thingBuilder;
            _thingTemplateRepository = thingTemplateRepository;
            _requestDispatcher       = requestDispatcher;
            _messageHub = messageHub;

            _gatewayInitializedHandlers = new ConcurrentDictionary <GatewayConfigurationPackage, IDisposable>();
        }