Example #1
0
        public MainWindowsVm(IApplicationService applicationService, INotificationQueries notificationQueries)
        {
            _applicationService  = applicationService ?? throw new ArgumentNullException(nameof(applicationService));
            _notificationQueries = notificationQueries;

            OpenTrainingList           = new RelayCommandAsync(async() => await OpenDocument <TrainingListVm>());
            OpenScheduler              = new RelayCommandAsync(async() => await OpenDocument <SessionSchedulerVm>());
            OpenTrainerList            = new RelayCommandAsync(async() => await OpenDocument <TrainerListVm>());
            OpenLocationList           = new RelayCommandAsync(async() => await OpenDocument <LocationListVm>());
            OpenStudentList            = new RelayCommandAsync(async() => await OpenDocument <StudentListVm>());
            OpenCompanyList            = new RelayCommandAsync(async() => await OpenDocument <CompanyListVm>());
            OpenContactList            = new RelayCommandAsync(async() => await OpenDocument <ContactListVm>());
            OpenUserList               = new RelayCommandAsync(async() => await OpenDocument <UserListVm>());
            OpenEventReplayer          = new RelayCommandAsync(async() => await _applicationService.OpenPopup <EventReplayerWindowVm>());
            OpenLoginWindow            = new RelayCommandAsync(ExecuteOpenLoginAsync);
            RefreshNotifications       = new RelayCommandAsync(ExecuteRefreshNotificationsAsync);
            OpenNotificationCommand    = new RelayCommandAsync(ExecuteOpenNotificationAsync);
            OpenHistory                = new RelayCommandAsync(async() => await OpenDocument <HistoryWindowVm>());
            OpenSeatList               = new RelayCommandAsync(async() => await OpenDocument <SeatsListerVm>());
            OpenSessionList            = new RelayCommandAsync(async() => await OpenDocument <SessionListerVm>());
            DeleteSelectedNotification = new RelayCommandAsync(ExecuteDeleteSelectedNotificationAsync, () => SelectedNotification != null);

            Title    = "Gestion formation - non connecté";
            Security = new Security(applicationService);
        }
 public NotificationJobAppService(IGenericCommandRepository genericrepository, IIDMProxy iDMProxy, IMemoryCache cache, INotificationQueries iNotificationQuerie, IINotificationCommands notifayCommands, ILogger <NotificationAppService> logger,
                                  IMapper mapper, IOptionsSnapshot <RootConfigurations> optionsSnapShot)
 {
     _idmProxy                 = iDMProxy;
     _cache                    = cache;
     _iNotificationQuerie      = iNotificationQuerie;
     _notifayCommands          = notifayCommands;
     _logger                   = logger;
     _mapper                   = mapper;
     _configuration            = optionsSnapShot.Value;
     _genericCommandRepository = genericrepository;
 }
 public NotificationAppService(INotificationProxy notificationProxy, IIDMProxy iDMProxy, IMemoryCache cache, INotificationQueries iNotificationQuerie, IINotificationCommands notifayCommands, IGenericCommandRepository genericrepository, ILogger <NotificationAppService> logger,
                               IMapper mapper, IBranchServiceQueries BrancheQuery, ICommitteeQueries CommitteeQuery, IHttpContextAccessor httpContextAccessor, IOptionsSnapshot <RootConfigurations> optionsSnapShot)
 {
     _notificationProxy   = notificationProxy;
     _idmProxy            = iDMProxy;
     _cache               = cache;
     _genericrepository   = genericrepository;
     _iNotificationQuerie = iNotificationQuerie;
     _notifayCommands     = notifayCommands;
     _logger              = logger;
     _mapper              = mapper;
     _BranchQuery         = BrancheQuery;
     _CommitteeQuery      = CommitteeQuery;
     _configuration       = optionsSnapShot.Value;
     _httpContextAccessor = httpContextAccessor;
 }
Example #4
0
 public ReleaseSeat(EventBus eventBus, INotificationQueries notificationManagerQueries) : base(eventBus)
 {
     _notificationManagerQueries = notificationManagerQueries ?? throw new ArgumentNullException(nameof(notificationManagerQueries));
 }
Example #5
0
 public NotificationService(INotificationContext notificationContext, INotificationQueries notificationQueries)
 {
     _notificationContext = notificationContext;
     _notificationQueries = notificationQueries;
 }
Example #6
0
 public CreateAgreement(EventBus eventBus, IAgreementQueries agreementQueries, INotificationQueries notificationQueries) : base(eventBus)
 {
     _agreementQueries    = agreementQueries ?? throw new ArgumentNullException(nameof(agreementQueries));
     _notificationQueries = notificationQueries ?? throw new ArgumentNullException(nameof(notificationQueries));
 }
Example #7
0
 public BlockAppService(IAppDbContext context, INotificationAppService notificationAppService, IMapper mapper, IIDMAppService iDMAppService, IBlockQueries blockQueries, IBlockCommands blockCommands, IGenericCommandRepository genericrepository, IYasserProxy yesserProxy, ISupplierQueries supplierQueries, IIDMQueries iDMQueries, IVerificationService verification, INotificationQueries notificationQueries)
 {
     _notificationAppService = notificationAppService;
     _blockCommands          = blockCommands;
     _blockQueries           = blockQueries;
     _genericrepository      = genericrepository;
     _mapper          = mapper;
     _supplierQueries = supplierQueries;
     _iDMAppService   = iDMAppService;
     _verification    = verification;
     _iDMQueries      = iDMQueries;
 }
 public UpdateSeatStudent(EventBus eventBus, INotificationQueries notificationQueries) : base(eventBus)
 {
     _notificationQueries = notificationQueries ?? throw new ArgumentNullException(nameof(notificationQueries));
 }
 public RemoveNotification(EventBus eventBus, INotificationQueries managerQueries) : base(eventBus)
 {
     _managerQueries = managerQueries ?? throw new ArgumentNullException(nameof(managerQueries));
 }
 public NotificationTestContext(SqlTestApplicationService service, Session session, INotificationQueries queries)
 {
     _service = service ?? throw new ArgumentNullException(nameof(service));
     _session = session ?? throw new ArgumentNullException(nameof(session));
     _queries = queries;
 }
 public NotificationResendJobService(INotificationQueries iNotificationQuerie, IINotificationCommands notificationCommands, INotificationProxy notificationProxy)
 {
     _NotificationQuerie   = iNotificationQuerie;
     _NotificationCommands = notificationCommands;
     _NotificationProxy    = notificationProxy;
 }
 public SignAgreement(EventBus eventBus, INotificationQueries notificationQueries) : base(eventBus)
 {
     _notificationQueries = notificationQueries ?? throw new ArgumentNullException(nameof(notificationQueries));
 }