/// <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); }
/// <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); }