Example #1
0
 public Game(IMeetingService meetingService, GameController controller, IUserProvider userProvider, IUserAuthorization userAuthorization)
 {
     _meetingService    = meetingService;
     _controller        = controller;
     _userProvider      = userProvider;
     _userAuthorization = userAuthorization;
 }
        public MeetingFacadeService(IMeetingService meetingService, IMeetingRepository meetingRepository, ISecurityService securityService)
        {
            this.meetingService = meetingService;
            this.meetingRepository = meetingRepository;
            this.securityService = securityService;

        }
 /// <summary>
 /// Initializes a new instance of the <see cref="TokenController"/> class.
 /// </summary>
 /// <param name="meetingService">User Role service.</param>
 /// <param name="meetingTokenRepository">Meeting Token repository.</param>
 public TokenController(
     IMeetingService meetingService,
     IMeetingTokenRepository meetingTokenRepository)
 {
     this.meetingService         = meetingService;
     this.meetingTokenRepository = meetingTokenRepository;
 }
Example #4
0
 public MeetingsViewModel()
 {
     Meetings        = new SuspendableObservableCollection <GroupedMeetingViewModel>();
     _meetingService = App.Instance.GetInstance <IMeetingService>();
     RefreshCommand  = new RelayCommand(ForceRefresh);
     UpdateLastUpdateText(_meetingService.GetLastUpdateTime());
 }
 public GroupManager(int meetingId, IMeetingService meetingService)
 {
     MeetingId       = meetingId;
     _meetingService = meetingService;
     Clients         = new List <Client>();
     _tasks          = new List <TaskInfo>();
 }
Example #6
0
 public MeetingsViewModel(IMeetingService meetingService)
 {
     Meetings        = new SuspendableObservableCollection <GroupedMeetingViewModel>();
     _meetingService = meetingService;
     RefreshCommand  = new MvxCommand(ForceRefresh);
     _lastUpdate     = _meetingService.GetLastUpdateTime();
 }
Example #7
0
 public RootDialog(IMeetingService meetingService, IRoomService roomService, IEmailService emailService, IHttpService httpService, ILoggingService loggingService)
 {
     _meetingService = meetingService;
     _roomService    = roomService;
     _emailService   = emailService;
     _httpService    = httpService;
     _loggingService = loggingService;
 }
        public MeetingsController(
            IMeetingService meetingService,

            IMapper mapper)
        {
            _meetingService = meetingService;
            _mapper         = mapper;
        }
Example #9
0
 public MessagesController(IMeetingService meetingService, IRoomService roomService, IEmailService emailService, IHttpService httpService, ILoggingService loggingService)
 {
     _meetingService = meetingService;
     _roomService    = roomService;
     _emailService   = emailService;
     _httpService    = httpService;
     _loggingService = loggingService;
 }
Example #10
0
 public MeetingsController(IMeetingQueries meetingQueries, IMeetingCommands meetingCommands, IMeetingService meetingService, IMapper mapper, IConfiguration configuration, IHttpContextAccessor httpContextAccessor)
 {
     this.MeetingQueries  = meetingQueries;
     this.mapper          = mapper;
     this.MeetingService  = meetingService;
     this.MeetingCommands = meetingCommands;
     this.configuration   = configuration;
     _httpContextAccessor = httpContextAccessor;
 }
Example #11
0
 public MinutesController(
     IMeetingService meetingService,
     IAuthenticationService authenticationService,
     IFileProvider fileProvider)
 {
     _meetingService        = meetingService;
     _authenticationService = authenticationService;
     _fileProvider          = fileProvider;
 }
 public MeetingAttendeeController(
     IMeetingService meetingService,
     IInstanceService invatationService,
     IAuthenticationService authenticationService)
 {
     _meetingService        = meetingService;
     _invationService       = invatationService;
     _authenticationService = authenticationService;
 }
Example #13
0
 public CallFunction(ITokenService tokenService, IUsersService usersService, ICallService callService, IMeetingService meetingService)
 {
     // Utilize dependency injection
     // https://docs.microsoft.com/en-us/azure/azure-functions/functions-dotnet-dependency-injection
     _tokenService   = tokenService;
     _usersService   = usersService;
     _callService    = callService;
     _meetingService = meetingService;
 }
Example #14
0
 public MeetingAgendaController(
     IMeetingService meetingService,
     ILoggerFactory logger,
     IAuthenticationService authenticationService)
 {
     _meetingService        = meetingService;
     _authenticationService = authenticationService;
     _logger = logger.CreateLogger("MeetingAgendaController");
 }
Example #15
0
        public void TestInitialize()
        {
            initializeMeetings();
            initializeMapper();
            Mock <IMeetingService> mockService = new Mock <IMeetingService>();

            setupMock(mockService);
            mockMeetingService = mockService.Object;
            meetingController  = new MeetingController(mockMeetingService);
        }
 public MeetingController(IMeetingService meetingService,
                          IUserInMeetingService userInMeetingService,
                          IUserService userService,
                          IPermissionService permissionService)
 {
     _meetingService       = meetingService;
     _userInMeetingService = userInMeetingService;
     _userService          = userService;
     _permissionService    = permissionService;
 }
 public DepartmentController(IDepartmentService departmentService,
                             IPermissionService permissionService,
                             IWorkContext workContext, IMeetingService meetingService,
                             IUserService userService)
 {
     _departmentService = departmentService;
     _permissionService = permissionService;
     _workContext       = workContext;
     _meetingService    = meetingService;
     _userService       = userService;
 }
Example #18
0
 public CalendarController(
     ICalendarService calendarService,
     IMeetingService meetingService,
     IOaSystemOperationService oaSystemOprationService,
     IEmployeeService employeeService
     )
 {
     _employeeService         = employeeService;
     _calendarService         = calendarService;
     _meetingService          = meetingService;
     _oaSystemOprationService = oaSystemOprationService;
 }
Example #19
0
 public MeetingNoteController(
     IMeetingService meetingService,
     ILogService logService,
     ILoggerFactory logger,
     IAuthenticationService authenticationService,
     IMeetingAttachmentService meetingAttachmentService)
 {
     _meetingService           = meetingService;
     _logService               = logService;
     _authenticationService    = authenticationService;
     _meetingAttachmentService = meetingAttachmentService;
     _logger = logger.CreateLogger("MeetingNoteController");
 }
Example #20
0
        public MeetingServiceRetryDecorator(IMeetingService meetingService)
        {
            var logger = LogManager.GetLogger(GetType());

            policy = Policy.Handle <Exception>().WaitAndRetryAsync(
                3,
                i => TimeSpan.FromSeconds(2),
                ((exception, span, retry, context) =>
            {
                logger.Warn($"Execution failed with exception {exception.Message}. Waiting {span} before next retry. Retry attempt {retry}");
            }));

            this.meetingService = meetingService;
        }
 public NotificationRoleController(
     INotificationRoleService notificationRoleService,
     IMeetingService meetingService,
     ILogService logService,
     ILoggerFactory logger,
     IAuthenticationService authenticationService,
     IMeetingAttachmentService meetingAttachmentService)
 {
     _notificationRoleService = notificationRoleService;
     _meetingService          = meetingService;
     _logService               = logService;
     _authenticationService    = authenticationService;
     _meetingAttachmentService = meetingAttachmentService;
     _logger = logger.CreateLogger("NotificationRoleController");
 }
Example #22
0
        public NavigationViewModel(
            IFriendService friendService,
            IEventAggregator eventAggregator,
            IMeetingService meetingService)
        {
            this._friendService   = friendService;
            this._eventAggregator = eventAggregator;
            this._meetingService  = meetingService;
            this.Friends          = new ObservableCollection <NavigationViewItemModel>();
            this.Meetings         = new ObservableCollection <NavigationViewItemModel>();

            this._eventAggregator.GetEvent <AfterSaveDetailsEvent>()
            .Subscribe(AfterDetailsSaveEventHandler);

            this._eventAggregator.GetEvent <AfterDeleteEvent>()
            .Subscribe(AfterDeleteHandler);
        }
Example #23
0
 public ReminderController(
     IReminderService reminderService,
     INotificationTypeService notificationTypeService,
     INotificationRoleService notificationRoleService,
     IMeetingService meetingService,
     ILogService logService,
     ILoggerFactory logger,
     IAuthenticationService authenticationService,
     IMeetingAttachmentService meetingAttachmentService)
 {
     _reminderService         = reminderService;
     _notificationTypeService = notificationTypeService;
     _meetingService          = meetingService;
     _logService               = logService;
     _authenticationService    = authenticationService;
     _meetingAttachmentService = meetingAttachmentService;
     _logger = logger.CreateLogger("ReminderController");
 }
Example #24
0
 public SubscriptionController(
     ISubscriptionService subscriptionService,
     INotificationTypeService notificationTypeService,
     INotificationRoleService notificationRoleService,
     IMeetingService meetingService,
     ILogService logService,
     ILoggerFactory logger,
     IAuthenticationService authenticationService,
     IMeetingAttachmentService meetingAttachmentService)
 {
     _subscriptionService     = subscriptionService;
     _notificationTypeService = notificationTypeService;
     _meetingService          = meetingService;
     _logService               = logService;
     _authenticationService    = authenticationService;
     _meetingAttachmentService = meetingAttachmentService;
     _logger = logger.CreateLogger("SubscriptionController");
 }
Example #25
0
        public MeetingsControllerHelper(ILogger logger, IMeetingService meetingService, IScoContentDtoMapper <TDto> mapper)
        {
            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }
            if (meetingService == null)
            {
                throw new ArgumentNullException(nameof(meetingService));
            }
            if (mapper == null)
            {
                throw new ArgumentNullException(nameof(mapper));
            }

            _logger         = logger;
            _meetingService = meetingService;
            _mapper         = mapper;
        }
 public MeetingCaptureController(
     IUserService userService,
     ICalendarService calendarService,
     IMeetingService meetingService,
     IMeetingDBService meetingDBService,
     IFileService fileService,
     IPlanTaskService planTaskService,
     INotesService notesService,
     IViewRenderService viewRenderService)
 {
     _userService       = userService;
     _calendarService   = calendarService;
     _meetingService    = meetingService;
     _meetingDBService  = meetingDBService;
     _fileService       = fileService;
     _planTaskService   = planTaskService;
     _notesService      = notesService;
     _viewRenderService = viewRenderService;
 }
Example #27
0
 public WiftService(
     ILogger logger,
     IConfigurationRoot configuration,
     IWiftWrapper wiftWrapper,
     IPoolService poolService,
     IDividendService dividendService,
     IRunnerService runnerService,
     IRaceService raceService,
     IMeetingService meetingService
     )
 {
     _logger          = logger;
     _config          = configuration;
     _wiftWrapper     = wiftWrapper;
     _poolService     = poolService;
     _dividendService = dividendService;
     _runnerService   = runnerService;
     _raceService     = raceService;
     _meetingService  = meetingService;
 }
        public MeetingDetailViewModel(
            IMeetingService meetingService,
            IFriendService friendService,
            IEventAggregator eventAggregator,
            IMessageDialogService messageDialogService) : base(eventAggregator, messageDialogService)
        {
            this._meetingService = meetingService;
            this._friendService  = friendService;

            this.AddedFriends     = new ObservableCollection <FriendModel>();
            this.AvailibleFriends = new ObservableCollection <FriendModel>();

            this.AddFriendCommand    = new DelegateCommand(OnAddFriendExecute, OnAddFriendCanExecute);
            this.RemoveFriendCommand = new DelegateCommand(OnRemoveFriendExecute, OnRemoveFriendCanExecute);

            this._eventAggregator.GetEvent <AfterSaveDetailsEvent>()
            .Subscribe(AfterDetailsSaveEventHandler);

            this._eventAggregator.GetEvent <AfterDeleteEvent>()
            .Subscribe(AfterDetailsDeleteEventHandler);
        }
Example #29
0
 public DdsMeetingTask(IDdsConfigService ddsConfigService,
                       ILineService lineService,
                       IMeasureService measureService,
                       IDepartmentService departmentService,
                       IDdsMeetingService ddsMeetingService,
                       IQualityAlertService qualityAlertService,
                       IMeetingService meetingService,
                       ISupplyChainFPQService supplyChainFPQ,
                       IWorkContext workContext,
                       IUserService userService
                       )
 {
     _ddsConfigService    = ddsConfigService;
     _lineService         = lineService;
     _measureService      = measureService;
     _departmentService   = departmentService;
     _ddsMeetingService   = ddsMeetingService;
     _qualityAlertService = qualityAlertService;
     _meetingService      = meetingService;
     _supplyChainFPQ      = supplyChainFPQ;
     _workContext         = workContext;
     _userService         = userService;
 }
Example #30
0
        public async Task InitializeAsync()
        {
            IsBusy = true;
            try
            {
                CurrentState = "Initialisation";
                await _databaseService.InitializeDbAsync();

                IMeetingService meetingService = Mvx.Resolve <IMeetingService>();
                await meetingService.GetMeetingsAsync();

                // l'application est initialisé on ouvre la page principale.
                ShowViewModel <MainScreenViewModel>();
            }
            catch (System.Exception ex)
            {
                ErrorMessage = "Erreur durant l'initialisation de l'application";
                // TODO : log something
            }
            finally
            {
                IsBusy = false;
            }
        }
Example #31
0
        public SettingsViewModel()
        {
            _meetingService        = App.Instance.GetInstance <IMeetingService>();
            _authenService         = App.Instance.GetInstance <IAuthentificationService>();
            _backgroundTaskService = App.Instance.BackgroundTaskService;

            //TODO : localisation
            SettingsList = new SuspendableObservableCollection <GroupedSettingsViewModel>();
            SettingsList.Add(new GroupedSettingsViewModel("ACRA", new List <SettingViewModel>
            {
                new ToggleSettingViewModel("Intégration dans le calendrier", new RelayCommand <bool>(ToggleIntegrationCalendar), ApplicationSettings.IsIntegrationToCalendarEnabled),
                new ToggleSettingViewModel("Intégration dans les rappels", new RelayCommand <bool>(ToggleIsIntegrationReminder), ApplicationSettings.IsIntegrationToReminderEnabled),
                new ToggleSettingViewModel("Mise à jour en arrière-plan", new RelayCommand <bool>(ToggleBackgroundUpdate), ApplicationSettings.IsBackgroundUpdateEnabled),
            }));
            //TODO : localisation
            SettingsList.Add(new GroupedSettingsViewModel(OnlineSettings.Identity, new List <SettingViewModel>
            {
                new ButtonSettingViewModel("Déconnexion", new RelayCommand(LogOutAction))
                {
                    ColorStyle          = ColorStyle.Danger,
                    HorizontalAlignment = SettingsHorizontalAlignment.Center
                }
            }));
        }
Example #32
0
 public MeetingVM(IRMSController rms,IMeetingService serv , IMeetingRepository repo)
 {
     init();
     this.controller = rms;
     this.service = serv;
     repository = repo;
 }
Example #33
0
        public MeetingModule(IMeetingService meetingService):base("/meetings")
        {
            Get["/{id}", true] = async (ctx, cancel) =>
                {
                    var request = this.Bind<GetMeetingByIdRequest>();

                    var meeting = await meetingService.GetMeetingById(new GetMeetingById()
                        {
                            Id = request.Id
                        });

                    var utcNow = DateTime.UtcNow;
                    var response = new
                        {
                            id = meeting.Id,
                            startUtc = meeting.StartUtc,
                            endUtc = meeting.EndUtc,
                            total = meeting.Total,
                            active = meeting.Active,
                            attendees = meeting.Attendees.Select(p => p.Id),
                            elapsedSeconds = GetElapsedSeconds(meeting.StartUtc,utcNow),
                            elapsedMinutes = GetElapsedMinutes(meeting.StartUtc,utcNow),
                            elapsedHours = GetElapsedHours(meeting.StartUtc,utcNow)
                        };

                    return Response.AsJson(response);
                };

            Post["/", true] = async (ctx, cancel) =>
                {
                    var meeting = await meetingService.CreateMeeting(new CreateMeeting()
                        {

                        });

                    return Response.AsJson(meeting);
                };

            Put["/_join", true] = async (ctx, cancel) =>
                {
                    var request = this.Bind<JoinMeetingRequest>();

                    var meeting = await meetingService.JoinMeeting(new JoinMeeting()
                        {
                            UserId = request.UserId,
                            MeetingId = request.MeetingId
                        });

                    return Response.AsJson(meeting);
                };

            Put["/_leave", true] = async (ctx, cancel) =>
                {
                    var request = this.Bind<LeaveMeetingRequest>();

                    var meeting = await meetingService.LeaveMeeting(new LeaveMeeting()
                        {
                            UserId = request.UserId,
                            MeetingId = request.MeetingId
                        });

                    return Response.AsJson(meeting);
                };

            Put["/_start", true] = async (ctx, cancel) =>
                {
                    var request = this.Bind<StartMeetingRequest>();

                    var meeting = await meetingService.StartMeeting(new StartMeeting()
                        {
                            MeetingId = request.MeetingId
                        });

                    return Response.AsJson(meeting);
                };

            Put["/_end", true] = async (ctx, cancel) =>
                {
                    var request = this.Bind<EndMeetingRequest>();

                    var meeting = await meetingService.EndMeeting(new EndMeeting()
                        {
                            MeetingId = request.MeetingId
                        });

                    return Response.AsJson(meeting);
                };

        }
Example #34
0
 public MeetingController(IUserSession userSession, IMeetingService meetingService)
     : base(userSession)
 {
     this.meetingService = meetingService;
 }
 public MeetingsController(IMeetingService meetingService, ApplicationUserManager userManager)
 {
     _meetingService = meetingService;
     UserManager = userManager;
 }
 public MeetingsController(IMeetingService meetingService)
 {
     _meetingService = meetingService;
 }