public ProcessListViewModel(IRemoteProcessService processService, IBus bus)
            : base(bus)
        {
            this.processService = processService;
            Contract.Requires <ArgumentNullException>(processService != null);
            Contract.Requires <ArgumentNullException>(bus != null);

            this.processModulesCollection = new BindableCollection <IProcessModules>();
            this.processService.GetAll().Where(p => p.IsAttached).Apply(this.AddProcessModules);
            this.Title = "Processes";
            this.Bus.Subscribe(this);
        }
        public AttachToProcessViewModel(
            IRemoteProcessService remoteProcessService, IRemoteProcessCommandService remoteProcessCommandService)
        {
            Contract.Requires <ArgumentNullException>(remoteProcessService != null);
            Contract.Requires <ArgumentNullException>(remoteProcessCommandService != null);

            this.remoteProcessService        = remoteProcessService;
            this.remoteProcessCommandService = remoteProcessCommandService;
            this.remoteProcesses             = this.remoteProcessService.GetAll();
            this.selectedItems = new BindableCollection <IRemoteProcess>();
            this.selectedItems.CollectionChanged += (sender, args) => this.NotifyOfPropertyChange(() => this.CanAttach);
        }
        public AttachToProcessViewModel(
            IRemoteProcessService remoteProcessService, IRemoteProcessCommandService remoteProcessCommandService)
        {
            Contract.Requires<ArgumentNullException>(remoteProcessService != null);
            Contract.Requires<ArgumentNullException>(remoteProcessCommandService != null);

            this.remoteProcessService = remoteProcessService;
            this.remoteProcessCommandService = remoteProcessCommandService;
            this.remoteProcesses = this.remoteProcessService.GetAll();
            this.selectedItems = new BindableCollection<IRemoteProcess>();
            this.selectedItems.CollectionChanged += (sender, args) => this.NotifyOfPropertyChange(() => this.CanAttach);
        }
        public RemoteProcessCreatedEventHandler(
            IRemoteProcessService remoteProcessService,
            RemoteProcessFactory remoteProcessFactory,
            IRemoteProcessQueryService remoteProcessQueryService)
        {
            Contract.Requires <ArgumentNullException>(remoteProcessService != null);
            Contract.Requires <ArgumentNullException>(remoteProcessFactory != null);
            Contract.Requires <ArgumentNullException>(remoteProcessQueryService != null);

            this.remoteProcessService      = remoteProcessService;
            this.remoteProcessFactory      = remoteProcessFactory;
            this.remoteProcessQueryService = remoteProcessQueryService;
        }
        public ClientAttachedToProcessEventHandler(
            IRemoteProcessService remoteProcessService,
            ProcessModulesFactory processModulesFactory,
            IDataService dataService)
        {
            Contract.Requires <ArgumentNullException>(remoteProcessService != null);
            Contract.Requires <ArgumentNullException>(processModulesFactory != null);
            Contract.Requires <ArgumentNullException>(dataService != null);

            this.remoteProcessService  = remoteProcessService;
            this.processModulesFactory = processModulesFactory;
            this.dataService           = dataService;
        }
示例#6
0
        public ProcessPlayerChangedEvent(
            IRemoteProcessService remoteProcessService,
            PlayerFactory playerFactory,
            IPlayerQueryService playerQueryService)
        {
            Contract.Requires <ArgumentNullException>(remoteProcessService != null);
            Contract.Requires <ArgumentNullException>(playerFactory != null);
            Contract.Requires <ArgumentNullException>(playerQueryService != null);

            this.remoteProcessService = remoteProcessService;
            this.playerFactory        = playerFactory;
            this.playerQueryService   = playerQueryService;
        }
        public CommunicationFactory(
            IRemoteProcessService remoteProcessService,
            IAutoFactory <PacketListViewModel> packetListVMFactory,
            IAutoFactory <PacketDetailsViewModel> packetDetailsVMFactory,
            IBus bus)
        {
            Contract.Requires <ArgumentNullException>(remoteProcessService != null);
            Contract.Requires <ArgumentNullException>(packetListVMFactory != null);
            Contract.Requires <ArgumentNullException>(packetDetailsVMFactory != null);
            Contract.Requires <ArgumentNullException>(bus != null);

            this.remoteProcessService   = remoteProcessService;
            this.packetListVMFactory    = packetListVMFactory;
            this.packetDetailsVMFactory = packetDetailsVMFactory;
            this.bus = bus;
        }