Example #1
0
 public ApplicationHostService(INavigationService navigationService, IThemeSelectorService themeSelectorService, IPersistAndRestoreService persistAndRestoreService, IToastNotificationsService toastNotificationsService)
 {
     _navigationService         = navigationService;
     _themeSelectorService      = themeSelectorService;
     _persistAndRestoreService  = persistAndRestoreService;
     _toastNotificationsService = toastNotificationsService;
 }
Example #2
0
//}]}
        public ApplicationHostService(/*{[{*/ IToastNotificationsService toastNotificationsService /*}]}*/)
        {
//^^
//{[{
            _toastNotificationsService = toastNotificationsService;
//}]}
        }
 public ApplicationHostService(IServiceProvider serviceProvider, IEnumerable <IActivationHandler> activationHandlers, INavigationService navigationService, IThemeSelectorService themeSelectorService, IPersistAndRestoreService persistAndRestoreService, IOptions <AppConfig> appConfig, IToastNotificationsService toastNotificationsService)
 {
     _serviceProvider          = serviceProvider;
     _activationHandlers       = activationHandlers;
     _navigationService        = navigationService;
     _themeSelectorService     = themeSelectorService;
     _persistAndRestoreService = persistAndRestoreService;
     _appConfig = appConfig.Value;
     _toastNotificationsService = toastNotificationsService;
 }
 public RocketChatRestApi(
     IToastNotificationsService toastService,
     IAvatarsService avatarsService,
     IEventAggregator eventAggregator)
 {
     this.toastService    = toastService;
     this.avatarsService  = avatarsService;
     this.eventAggregator = eventAggregator;
     this.eventAggregator.GetEvent <ServerAddressChangedEvent>().Subscribe(ServerAddressChangedHandler);
     GetServerAddress();
 }
Example #5
0
 public RocketChatRealtimeApi(
     IEventAggregator eventAggregator,
     IRocketChatRestApi rocketChatRest,
     IToastNotificationsService toastService)
 {
     this.eventAggregator = eventAggregator;
     this.eventAggregator.GetEvent <ServerAddressChangedEvent>().Subscribe(ServerAddressChangedHandler);
     this.rocketChatRest = rocketChatRest;
     this.toastService   = toastService;
     GetServerAddress();
     socket = new MessageWebSocket();
     socket.MessageReceived += OnMessageReceived;
 }
Example #6
0
 public ApplicationHostService(IServiceProvider serviceProvider, IEnumerable <IActivationHandler> activationHandlers, INavigationService navigationService, IRightPaneService rightPaneService, IThemeSelectorService themeSelectorService, IPersistAndRestoreService persistAndRestoreService, IToastNotificationsService toastNotificationsService, IIdentityService identityService, IUserDataService userDataService, IOptions <AppConfig> config)
 {
     _serviceProvider           = serviceProvider;
     _activationHandlers        = activationHandlers;
     _navigationService         = navigationService;
     _rightPaneService          = rightPaneService;
     _themeSelectorService      = themeSelectorService;
     _persistAndRestoreService  = persistAndRestoreService;
     _toastNotificationsService = toastNotificationsService;
     _identityService           = identityService;
     _userDataService           = userDataService;
     _appConfig = config.Value;
 }
 public ChatViewModel(
     IRocketChatRestApi rocketChatRest,
     IEventAggregator eventAggregator,
     IRocketChatRealtimeApi realtimeApi,
     INavigationService navigationService,
     IToastNotificationsService notificationService)
 {
     this.rocketChatRest      = rocketChatRest;
     this.eventAggregator     = eventAggregator;
     this.realtimeApi         = realtimeApi;
     this.navigationService   = navigationService;
     this.notificationService = notificationService;
     RegisterCommands();
     RegisterSubscriptions();
 }
 public MainViewModel(
     IEventAggregator eventAggregator,
     IRocketChatRestApi rocketChat,
     INavigationService navigationService,
     IRocketChatRealtimeApi rocketChatRealtime,
     IToastNotificationsService toastService
     )
 {
     this.eventAggregator    = eventAggregator;
     this.rocketChat         = rocketChat;
     this.navigationService  = navigationService;
     this.rocketChatRealtime = rocketChatRealtime;
     this.toastService       = toastService;
     RegisterCommands();
     ButtonsEnabled = true;
     IsPopupOpened  = false;
 }
 public DefaultActivationHandler(INavigationService navigationService, IToastNotificationsService toastNotificationsService)
 {
     _navigationService         = navigationService;
     _toastNotificationsService = toastNotificationsService;
 }