Пример #1
0
        public void Initialize()
        {
            RFIDService rfidService = new RFIDService(container);
            container.RegisterInstance<IRFIDService>(rfidService);

            SerialService serialService = new SerialService(container);
            container.RegisterInstance<ISerialService>(serialService);
        }
Пример #2
0
        public void Initialize()
        {
            RFIDService rfidService = new RFIDService(container);

            container.RegisterInstance <IRFIDService>(rfidService);

            SerialService serialService = new SerialService(container);

            container.RegisterInstance <ISerialService>(serialService);
        }