Exemplo n.º 1
0
 public SecurityDescriptorTargetsViewModelFactory(IDialogCoordinator dialogCoordinator, ISecurityDescriptorTargetViewModelFactory factory, Func <INotifyModelChangedEventPublisher> eventPublisher, ILogger <SecurityDescriptorTargetsViewModel> logger, IDirectory directory, IComputerTargetProvider computerTargetProvider, IEffectiveAccessViewModelFactory effectiveAccessFactory, IShellExecuteProvider shellExecuteProvider)
 {
     this.dialogCoordinator      = dialogCoordinator;
     this.factory                = factory;
     this.eventPublisher         = eventPublisher;
     this.logger                 = logger;
     this.directory              = directory;
     this.computerTargetProvider = computerTargetProvider;
     this.effectiveAccessFactory = effectiveAccessFactory;
     this.shellExecuteProvider   = shellExecuteProvider;
 }
        public SecurityDescriptorTargetsViewModel(IList <SecurityDescriptorTarget> model, ISecurityDescriptorTargetViewModelFactory factory, IDialogCoordinator dialogCoordinator, INotifyModelChangedEventPublisher eventPublisher, ILogger <SecurityDescriptorTargetsViewModel> logger, IDirectory directory, IComputerTargetProvider computerTargetProvider, IEffectiveAccessViewModelFactory effectiveAccessFactory, IShellExecuteProvider shellExecuteProvider)
        {
            this.factory                = factory;
            this.Model                  = model;
            this.dialogCoordinator      = dialogCoordinator;
            this.logger                 = logger;
            this.directory              = directory;
            this.computerTargetProvider = computerTargetProvider;
            this.effectiveAccessFactory = effectiveAccessFactory;
            this.shellExecuteProvider   = shellExecuteProvider;
            this.customComparer         = new SecurityDescriptorTargetViewModelComparer();
            this.ChildDisplaySettings   = new SecurityDescriptorTargetViewModelDisplaySettings();
            this.eventPublisher         = eventPublisher;

            this.Initialization = this.Initialize();
        }