Exemple #1
0
        private void RegisterInterfaces()
        {
            IUnityContainer unityContainer = IoCUtility.GetInstance();

            unityContainer.RegisterType(typeof(IProcessMsg), typeof(ProcessMsg));
            unityContainer.RegisterType(typeof(IManagerMsg), typeof(ManagerMsg));
        }
        public SensorController()
        {
            this._unityContainer = IoCUtility.GetInstance();

            this.ProcessMsg = _unityContainer.Resolve <IProcessMsg>();
            this.ManagerMsg = _unityContainer.Resolve <IManagerMsg>();
        }