Example #1
0
 public TrialsService(IOperationsManager operationsManager, ISomeRequiredService someRequiredService, ISomeRequiredService requiredService)
     : base(operationsManager)
 {
     _operationsManager   = operationsManager;
     _someRequiredService = someRequiredService;
     _requiredService     = requiredService;
 }
        public OperationsManagerViewModel(
            BusyIndicatorViewModel busyIndicator,
            IOperationsManager operationsManager,
            IImportManager importManager)
        {
            _busyIndicator     = busyIndicator;
            _operationsManager = operationsManager;
            _importManager     = importManager;
            BeginExportCommand = new RelayCommand(BeginExport);
            BeginDataQualityAnalysisCommand = new AsyncCommand(BeginDataQualityAnalysis);
            CommitExportCommand             = new AsyncCommand(CommitExport);
            CommitPendingChangesCommand     = new AsyncCommand(SaveChanges);
            _sfd = new SaveFileDialog
            {
                OverwritePrompt = true,
                Filter          = "csv files (*.csv)|*.csv|All Files (*.*)|*.*"
            };

            SelectTargetFileToExportCommand = new RelayCommand(SelectTargetFileToExport);
            MessengerInstance.Register <AccountViewModel>(this, OnAccountViewModelReceived);

            _asyncMessageReceiver = new AsyncMessageReceiver(MessengerInstance);
            _asyncMessageReceiver.RegisterAsync <AccountImportDataChanged>(this, data => ReplayImports(data.AccountId));

            DateFilter = new DateRangeFilter();
            NoteFilter = new TextFilter();
            _anyFilter = new CompositeFilter(DateFilter, NoteFilter);
            _anyFilter.FilterInvalidated += OnAnyFilterInvalidated;

            ResetFilterCommad = new RelayCommand(() => _anyFilter.Reset(), () => IsFiltering);
        }
Example #3
0
 public TrialsService(IOperationsManager operationsManager, ISomeRequiredService someRequiredService, ISomeRequiredService requiredService)
     : base(operationsManager)
 {
     _operationsManager = operationsManager;
     _someRequiredService = someRequiredService;
     _requiredService = requiredService;
 }
Example #4
0
 public DoSomethingLoggedInRequiredOperation(
     SomeParameters parameters,
     IOperationsManager operationsManager,
     ISomeRequiredService requiredService)
     : base(parameters, operationsManager, requiredService)
 {
 }
 public DoSomethingLoggedInRequiredOperation(
     SomeParameters parameters, 
     IOperationsManager operationsManager, 
     ISomeRequiredService requiredService)
     : base(parameters, operationsManager, requiredService)
 {
 }
Example #6
0
 public GameViewPresenter(IMainView mainView, IOperationsManager operationsManager)
 {
     this.mainView               = mainView;
     this.operationsManager      = operationsManager;
     this.mainView.CellAttacked += HandleCellAttack;
     this.mainView.GameReset    += InitializeGameBoards;
 }
Example #7
0
 public UpdateContactDetailsViewModel(BusinessService businessService, IOperationsManager operationsService, IToastService toastService, IPubSubService pubSubService, IModalService modalService)
 {
     _businessService   = businessService;
     _operationsService = operationsService;
     _toastService      = toastService;
     _pubSubService     = pubSubService;
     _modalService      = modalService;
 }
Example #8
0
 public CreateBusinessViewModel(ILogger <CreateBusinessViewModel> logger, BusinessService businessService, IToastService toastService, IOperationsManager operationManager, NavigationManager navigationManager)
 {
     _logger            = logger;
     _businessService   = businessService;
     _toastService      = toastService;
     _operationManager  = operationManager;
     _navigationManager = navigationManager;
 }
 public DoSomethingOperation(
     SomeParameters parameters,
     IOperationsManager operationsManager,
     ISomeRequiredService someRequiredService)
     : base(operationsManager, "Do Something")
 {
     _parameters          = parameters;
     _someRequiredService = someRequiredService;
 }
Example #10
0
 public HttpExecutor(ILogger <HttpExecutor> logger, IToastService toastService, IOperationsManager operationsManager, IOperationsService operationsService, IHttpClientFactory httpFactory, IUserContext context)
 {
     _logger            = logger;
     _toastService      = toastService;
     _operationsManager = operationsManager;
     _operationsService = operationsService;
     _client            = httpFactory.CreateClient();
     _client.DefaultRequestHeaders.Add("Authorization", $"Bearer {context.Token}");
 }
Example #11
0
 public ServiceBase(IOperationsManager operationsManager,
     bool isReportingProgress = false,
     bool isSupportingCancel = false,
     int expectedCompletionTimeMilliseconds = 0,
     int suggestedPollingIntervalMilliseconds = 0
     )
 {
     _baseOperationsManager = operationsManager;
     _isReportingProgress = isReportingProgress;
     _isSupportingCancel = isSupportingCancel;
     _expectedCompletionTimeMilliseconds = expectedCompletionTimeMilliseconds;
     _suggestedPollingIntervalMilliseconds = suggestedPollingIntervalMilliseconds;
 }
Example #12
0
        public GmcManager(BusyIndicatorViewModel busyIndicator, ICacheProvider cacheProvider, IOperationsManager operationsManager)
        {
            _busyIndicator            = busyIndicator;
            _cacheProvider            = cacheProvider;
            _operationsManager        = operationsManager;
            Filter                    = new GmcManagerFilterViewModel();
            Filter.FilterInvalidated += OnFilterInvalidated;
            LocalTransactions         = new SmartCollection <BasicTransactionModel>();
            RemoteTransactions        = new SmartCollection <BasicTransactionModel>();

            RefreshRemoteKnowledgeCommand           = new AsyncCommand(ComputeDeltaWithRemote);
            PushChangesToGmcCommand                 = new AsyncCommand(PushChangesToGmc);
            PullCategoriesFromGmcCommand            = new AsyncCommand(PullCategoriesFromGmc);
            ClearCurrentAccountCacheAndResetCommand = new AsyncCommand(ClearCurrentAccountCacheAndReset);

            MessengerInstance.Register <AccountViewModel>(this, OnAccountViewModelReceived);
        }
Example #13
0
 public AccountsManagerViewModel(
     BusyIndicatorViewModel busyIndicatorViewModel,
     IAccountsManager manager,
     IOperationsManager operationsManager,
     IImportManager importsManager)
 {
     _busyIndicator     = busyIndicatorViewModel;
     _manager           = manager;
     _operationsManager = operationsManager;
     _importsManager    = importsManager;
     LoadCommand        = new AsyncCommand(LoadAsync, () => !IsEditing);
     BeginNewCommand    = new AsyncCommand(BeginNew, () => !IsEditing);
     BeginEditCommand   = new AsyncCommand(BeginEdit, () => !IsEditing && CurrentAccount != null);
     DeleteCommand      = new AsyncCommand(Delete, () => !IsEditing && CurrentAccount != null);
     CommitEditCommand  = new AsyncCommand(CommitEdit, () => IsEditing);
     _commands          = new[] { LoadCommand, BeginEditCommand, CommitEditCommand, BeginNewCommand, DeleteCommand };
 }
 public OperationsManagementService(IOperationsManager operationsManager)
 {
     _operationsManager = operationsManager;
 }
 public DoSomethingAuthenticatedService(IOperationsManager operationsManager)
 {
     _operationsManager = operationsManager;
 }
Example #16
0
 public TestOperation(IOperationsManager operationsManager, bool isFailure = false)
     : base(operationsManager, "Test operation")
 {
     _isFailure = isFailure;
 }
Example #17
0
 public TestWithMultipleParametersOperation(Parameters parameters, Parameters parameters2, IOperationsManager operationsManager)
     : base(operationsManager, "displayName")
 {
 }
Example #18
0
 public TestOperationWithFaultAttributeInherited(IOperationsManager operationsManager, string displayName)
     : base(operationsManager, displayName)
 {
 }
Example #19
0
 public TestOperationWithStringAndObjectParameters(Parameters parameters, string input, IOperationsManager operationsManager)
     : base(operationsManager, "displayName")
 {
 }
Example #20
0
 public TestWithNoAttributeOperation(IOperationsManager operationsManager, string displayName)
     : base(operationsManager, displayName)
 {
 }
Example #21
0
 public ServiceBase(IOperationsManager operationsManager)
 {
     _baseOperationsManager = operationsManager;
     Logger.LogEvent(string.Format("New instance of {0} has been constructed.", this.GetType().Name), this, ImportanceLevels.gUnimportant);
 }
 public OperationsManagementService(IOperationsManager operationsManager)
 {
     _operationsManager = operationsManager;
 }
Example #23
0
 public TestOperationWithBoolParameter(bool input, IOperationsManager operationsManager)
     : base(operationsManager, "displayName")
 {
 }
Example #24
0
 public TestOperationGenreateSync(IOperationsManager operationsManager, string displayName) : base(operationsManager, displayName)
 {
 }
Example #25
0
 public TestOperation(Parameters parameters, IOperationsManager operationsManager)
     : base(operationsManager, "displayName")
 {
 }
Example #26
0
 public TestBoolReturnValueOperation(IOperationsManager operationsManager, string displayName) : base(operationsManager, displayName)
 {
 }
 public TestService(IOperationsManager operationsManager)
     : base(operationsManager) 
 {
     _operationsManager = operationsManager;
 }
 public TestService(IOperationsManager operationsManager)
     : base(operationsManager)
 {
     _operationsManager = operationsManager;
 }
Example #29
0
 public AnotherTrialService(IOperationsManager operationsManager)
     : base(operationsManager)
 {
     _operationsManager = operationsManager;
 }
Example #30
0
 public TestWithNoParametersOperation(IOperationsManager operationsManager)
     : base(operationsManager, "displayName")
 {
 }
Example #31
0
 public ImportManager(ICacheProvider cacheProvider, IAccountCommandRepository accountCommandRepository, IOperationsManager operationsManager)
 {
     _cacheProvider = cacheProvider;
     _accountCommandRepository = accountCommandRepository;
     _operationsManager = operationsManager;
 }
Example #32
0
 public OperationBase(IOperationsManager operationsManager)
     : this(operationsManager, null)
 {
 }
 public DoSomethingService(IOperationsManager operationsManager)
 {
     _operationsManager = operationsManager;
 }
Example #34
0
 public DoOtherStuff(IOperationsManager operationsManager)
     : base(operationsManager, "Other stuff")
 {
 }
Example #35
0
 public AnotherTrialService(IOperationsManager operationsManager)
     : base(operationsManager)
 {
     _operationsManager = operationsManager;
 }
Example #36
0
 public TestOperationWithStringParameter(string input, IOperationsManager operationsManager)
     : base(operationsManager, "displayName")
 {
 }
Example #37
0
 public OperationBase(IOperationsManager operationsManager, string readableOperationId)
 {
     _operationsManager   = operationsManager;
     _readableOperationId = readableOperationId ?? this.GetType().Name;
     Logger.LogEvent(string.Format("Operation '{0}' instance constructed.", _readableOperationId), this, ImportanceLevels.gUnimportant);
 }
Example #38
0
 public ServiceBase(IOperationsManager operationsManager)
 {
     _baseOperationsManager = operationsManager;
     Logger.LogEvent(string.Format("New instance of {0} has been constructed.", this.GetType().Name), this, ImportanceLevels.gUnimportant);
 }