/// <summary>
        /// CTOR
        /// </summary>
        /// <param name="connectionManager"></param>
        public Enigma2WebInterfaceQueuingService(IUnityContainer unityContainer, IPvrManagementCommands pvrManagementCommands)
        {
            this.unityContainer = unityContainer;

            this.connectionManager = this.unityContainer.Resolve<IConnectionManager>(GlobalConstants.ConnectionManager);

            // Commands
            this.AddTimerCommand = new DelegateCommand<Timer>(AddTimerEntry, CanAddTimerEntry);
            pvrManagementCommands.AddTimerCommand.RegisterCommand(this.AddTimerCommand);
        }
Esempio n. 2
0
        /// <summary>
        /// CTOR
        /// </summary>
        /// <param name="connectionManager"></param>
        public Enigma2WebInterfaceQueuingService(IUnityContainer unityContainer, IPvrManagementCommands pvrManagementCommands)
        {
            this.unityContainer = unityContainer;

            this.connectionManager = this.unityContainer.Resolve <IConnectionManager>(GlobalConstants.ConnectionManager);

            // Commands
            this.AddTimerCommand = new DelegateCommand <Timer>(AddTimerEntry, CanAddTimerEntry);
            pvrManagementCommands.AddTimerCommand.RegisterCommand(this.AddTimerCommand);
        }