Example #1
0
 public LicenseVerificationService(ITokenService tokens,
                                   IService <OrganizationLicense, int> orgLicenses,
                                   IService <User, int> users,
                                   IService <Organization, int> organisations,
                                   IService <DataSchema, int> dataSchemas,
                                   IConfigurationService config,
                                   ILicenseContentBuilder licenseContent,
                                   IUrlProvider urls,
                                   IService <SchemaFile, int> schemaFiles,
                                   ISecurityService security,
                                   INotificationService notifications,
                                   IService <LicenseApprovalRequest, int> verificationRequests,
                                   IService <LicenseMatch, int> licenseMatches,
                                   IUserNotificationService userNotifications)
 {
     _tokens               = tokens;
     _orgLicenses          = orgLicenses;
     _verificationRequests = verificationRequests;
     _users             = users;
     _organisations     = organisations;
     _config            = config;
     _licenseContent    = licenseContent;
     _urls              = urls;
     _schemaFiles       = schemaFiles;
     _security          = security;
     _dataSchemas       = dataSchemas;
     _notifications     = notifications;
     _licenseMatches    = licenseMatches;
     _userNotifications = userNotifications;
 }
Example #2
0
 public UserNotificationsController(
     DataContext context,
     IUserNotificationService userNotificationService)
 {
     _context = context;
     _userNotificationService = userNotificationService;
 }
Example #3
0
 public HomeController(IManufacturerService manufacturerService, IModelService modelService, IAdvertisementService advertisementService, IUserNotificationService userNotificationService)
 {
     _manufacturerService     = manufacturerService;
     _modelService            = modelService;
     _advertisementService    = advertisementService;
     _userNotificationService = userNotificationService;
 }
 public NotificationsController(
     IUserNotificationStore userNotificationsStore,
     IUserNotificationService userNotificationService)
 {
     this.userNotificationsStore  = userNotificationsStore;
     this.userNotificationService = userNotificationService;
 }
Example #5
0
        public ItemsListViewModel(ICatalogProvider catalogProvider, IMessenger messenger, IUserNotificationService userNotificationService)
        {
            _userNotificationService = userNotificationService;
            _messenger = messenger;

            DataProvider = catalogProvider;
        }
 public NotificationController(
     INotifier notifier,
     IUserNotificationService userNotificationService
     ) : base(notifier)
 {
     _service = userNotificationService;
 }
Example #7
0
 public ShellViewModel(WinRTContainer container, IDialogWindowManager dialogWindowManager, IUserNotificationService userNotificationService, IEventAggregator eventAggregator)
 {
     _container               = container;
     _dialogWindowManager     = dialogWindowManager;
     _userNotificationService = userNotificationService;
     _eventAggregator         = eventAggregator;
 }
Example #8
0
 public NotificationHub(
     IUserNotificationStore userNotificationsStore,
     IUserNotificationService userNotificationService)
 {
     this.userNotificationsStore  = userNotificationsStore;
     this.userNotificationService = userNotificationService;
 }
Example #9
0
 public UsersService(IUsersRepository repository, IOptions <AppSettings> appSettings, IUnitOfWork unitOfWork, IUserNotificationService userNotificationService, IMapper mapper)
 {
     _repository              = repository;
     _appSettings             = appSettings.Value;
     _unitOfWork              = unitOfWork;
     _userNotificationService = userNotificationService;
     _mapper = mapper;
 }
Example #10
0
 public SettingsScreenVm(
     IMusicCollectionManager musicCollectionManager,
     ILongOperationService longOperationService,
     IUserNotificationService userNotificationService,
     ILoggerManager manager) : base(longOperationService, userNotificationService, manager)
 {
     _musicCollectionManager = musicCollectionManager;
 }
Example #11
0
 public ManageController(IMessageService messageService, IUserNotificationService userNotificationService, IUnitOfWorkAsync unitOfWorkAsync, IAddressService addressService, IAdvertisementService advertisementService)
 {
     _messageService          = messageService;
     _userNotificationService = userNotificationService;
     _unitOfWorkAsync         = unitOfWorkAsync;
     _addressService          = addressService;
     _advertisementService    = advertisementService;
 }
Example #12
0
        public ItemsGridViewModel(ICatalogProvider catalogProvider, IMessenger messenger, IUserNotificationService userNotificationService)
        {
            DataProvider             = catalogProvider;
            _userNotificationService = userNotificationService;
            _messenger = messenger;

            _barItems = new ObservableCollection <CatalogItemModel>();
        }
Example #13
0
 public TrackingController(
     IAppStore appStore,
     IUserNotificationService userNotificationService,
     IUserNotificationStore userNotificationStore)
 {
     this.appStore = appStore;
     this.userNotificationService = userNotificationService;
     this.userNotificationStore   = userNotificationStore;
 }
 public NotificationsService(INotificationsAccess notificationsAccess,
                             IUserNotificationService userNotificationService,
                             INotificationBroadcast notificationBroadcast
                             )
 {
     _notificationsAccess     = notificationsAccess;
     _userNotificationService = userNotificationService;
     _notificationBroadcast   = notificationBroadcast;
 }
 public DaysOnFireViewModel(IPageNavigationService pageNavigationService, IUserDataService userDataService, IAppRepository appRepository, IUserNotificationService userNotificationService)
     : base(pageNavigationService)
 {
     _pageNavigationService = pageNavigationService;
     _userDataService = userDataService;
     _appRepository = appRepository;
     _userNotificationService = userNotificationService;
     DisplayName = "Days on fire";
 }
 public LoginViewModel(IUserDataService userDataService, IPageNavigationService pageNavigationService, IUserNotificationService userNotificationService, IAppRepository appRepository)
     : base(pageNavigationService)
 {
     _userDataService = userDataService;
     _pageNavigationService = pageNavigationService;
     _userNotificationService = userNotificationService;
     _appRepository = appRepository;
     //TokenData = "bogdan/aa8d8752-7404-46ab-b55f-4b40fc8b60e7";
 }
 public UserController(
     INotifier notifier,
     IUserRepository repository,
     IUserService service,
     IUserNotificationService notificationsService) : base(notifier)
 {
     _repository           = repository;
     _service              = service;
     _notificationsService = notificationsService;
 }
 public UserFactsViewModel(IPageNavigationService pageNavigationService, IUserDataService userDataService,
     IAppRepository appRepository, IUserNotificationService userNotificationService)
     : base(pageNavigationService)
 {
     _pageNavigationService = pageNavigationService;
     _userDataService = userDataService;
     _appRepository = appRepository;
     _userNotificationService = userNotificationService;
     DisplayName = "Behavior facts";
 }
Example #19
0
 public NotificationsController(IMapper mapper, INotificationService notificationService, IUserNotificationService userNotificationService,
                                IWorkFlowService workFlowService, IRequestService requestService, UserManager <User> userManager)
 {
     _mapper = mapper;
     _notificationService     = notificationService;
     _userNotificationService = userNotificationService;
     _workFlowService         = workFlowService;
     _requestService          = requestService;
     _userManager             = userManager;
 }
Example #20
0
 public EmailNotificationService(IEmailSettings emailSettings,
                                 IAdminNotificationService adminNotificationService,
                                 IUserNotificationService userNotificationService,
                                 ILegalOfficerNotificationService legalOfficerNotificationService,
                                 IConsumerProviderRegistrationNotificatonService consumerProviderRegistrationNotificationService)
     : base(emailSettings)
 {
     Admin        = adminNotificationService;
     User         = userNotificationService;
     LegalOfficer = legalOfficerNotificationService;
     ConsumerProviderRegistration = consumerProviderRegistrationNotificationService;
 }
 public AdvertisementController(IMessageService messageService, IManufacturerService manufacturerService, IModelService modelService, IUnitOfWorkAsync unitOfWorkAsync, IAdvertisementService advertisementService, IUserNotificationService userNotificationService, IFollowingService followingService, IFeatureService featureService, SqlDbService sqlDbService)
 {
     _manufacturerService     = manufacturerService;
     _modelService            = modelService;
     _advertisementService    = advertisementService;
     _followingService        = followingService;
     _featureService          = featureService;
     _sqlDbService            = sqlDbService;
     _userNotificationService = userNotificationService;
     _messageService          = messageService;
     _unitOfWorkAsync         = unitOfWorkAsync;
 }
 public LandmarkController(ILandmarkService landmarkService, IPictureService pictureService,
                           ITownService townService, ILocationService locationService,
                           INotificationService notificationService, IUserNotificationService userNotificationService,
                           IUserService userService)
 {
     this._landmarkService         = landmarkService;
     this._pictureService          = pictureService;
     this._townService             = townService;
     this._locationService         = locationService;
     this._notificationService     = notificationService;
     this._userNotificationService = userNotificationService;
     this._userService             = userService;
 }
        public SelectDevkitDialog(IServiceProvider sp)
        {
            this.Consoles = new ObservableCollection<ConsoleWrapper>();
            InitializeComponent();
            this.DataContext = this;
            this.Loaded += SelectDevkitDialog_Loaded;
            this.notificationService = sp.GetService(typeof(IUserNotificationService)) as IUserNotificationService;

            this.consoleManager = new ConsoleManager();
            this.removals = new List<ConsoleWrapper>();
            InitConsolesList();

            this.consoleManager.ConsoleAdded += OnConsolesChanged;
            this.consoleManager.ConsoleRemoved += OnConsolesChanged;
            this.consoleManager.DefaultConsoleChanged += OnConsolesChanged;
        }
        public SelectDevkitDialog(IServiceProvider sp)
        {
            this.Consoles = new ObservableCollection <ConsoleWrapper>();
            InitializeComponent();
            this.DataContext         = this;
            this.Loaded             += SelectDevkitDialog_Loaded;
            this.notificationService = sp.GetService(typeof(IUserNotificationService)) as IUserNotificationService;

            this.consoleManager = new ConsoleManager();
            this.removals       = new List <ConsoleWrapper>();
            InitConsolesList();

            this.consoleManager.ConsoleAdded          += OnConsolesChanged;
            this.consoleManager.ConsoleRemoved        += OnConsolesChanged;
            this.consoleManager.DefaultConsoleChanged += OnConsolesChanged;
        }
        public CredentialsListViewModel(ILoggingService loggingservice, IMessenger messenger, IUserNotificationService userNotificationService)
        {
            _log       = loggingservice;
            _messenger = messenger;
            _userNotificationService = userNotificationService;

            CredentialsCollection.Add(new Credential {
                Name = "Janet", Email = "*****@*****.**", Role = "Admin"
            });
            CredentialsCollection.Add(new Credential {
                Name = "Tom", Email = "*****@*****.**", Role = "User"
            });
            CredentialsCollection.Add(new Credential {
                Name = "Joe", Email = "*****@*****.**", Role = "Joker"
            });
        }
Example #26
0
 public MusicSearchScreenVm(
     DiscogsClient client,
     IMusicCollectionManager musicCollectionManager,
     IRepository repository, IMusicFileAnalyzer musicFileAnalyzer,
     IMusicDirAnalyzer musicDirAnalyzer,
     IFileManager fileManager,
     PreviewFactory previewFactory,
     ILongOperationService longOperationService,
     IUserNotificationService userNotificationService,
     ILoggerManager manager) : base(longOperationService, userNotificationService, manager)
 {
     _discogsClient          = client;
     _musicCollectionManager = musicCollectionManager;
     _repo = repository;
     _musicFileAnalyzer = musicFileAnalyzer;
     _musicDirAnalyzer  = musicDirAnalyzer;
     _fileManager       = fileManager;
     _previewFactory    = previewFactory;
 }
Example #27
0
 public MusicCollectionScreenVm(
     IMusicCollectionManager musicCollectionManager,
     IImageCollectionManager imageCollectionManager,
     IFileManager fileManager,
     PreviewFactory previewFactory,
     ILongOperationService longOperationService,
     IUserNotificationService userNotificationService,
     ILoggerManager manager) : base(longOperationService, userNotificationService, manager)
 {
     _musicCollectionManager = musicCollectionManager;
     _imageCollectionManager = imageCollectionManager;
     _fileManager            = fileManager;
     _previewFactory         = previewFactory;
     _allArtists             = _musicCollectionManager.GetAllArtists().ToList();
     LoadAllArtistsInCollection();
     ShowAlbumsNotInCollection = false;
     IsSelectionEnabled        = false;
     MusicStyles = _musicCollectionManager.GetMusicStylesList();
     MusicGenres = _musicCollectionManager.GetMusicGenresList();
 }
Example #28
0
 public EventTaskNotificationService(
     DataContext context,
     IUserNotificationService userNotificationService,
     IUserService userService,
     IEventTasksService eventTaskService,
     IOptions <SmtpSettings> smtpSettings,
     IOptions <AppSettings> appSettings,
     IConfiguration configuration,
     ILogger <EventTaskNotificationService> logger,
     IServiceProvider services
     //IHubContext<NotificationHub, INotificationHub> hub
     )
 {
     _context = context;
     _userNotificationService = userNotificationService;
     _userService             = userService;
     _eventTaskService        = eventTaskService;
     _smtpSettings            = smtpSettings.Value;
     _appSettings             = appSettings.Value;
     _configuration           = configuration;
     _services = services;
     _logger   = logger;
 }
 public SystemUsageDeletedUserNotificationsHandler(IUserNotificationRepository userNotificationRepository, IUserNotificationService userNotificationService)
 {
     _userNotificationRepository = userNotificationRepository;
     _userNotificationService    = userNotificationService;
 }
Example #30
0
 public SearchViewModel(IDialogWindowManager dialogWindowManager, IUserNotificationService userNotificationService)
 {
     _dialogWindowManager     = dialogWindowManager;
     _userNotificationService = userNotificationService;
 }
Example #31
0
 public CakelistService(ICakeRequestRepository cakeRequestRepository, IUserNotificationService userNotificationService)
 {
     _cakeRequestRepository   = cakeRequestRepository;
     _userNotificationService = userNotificationService;
 }
Example #32
0
 public BetRootPage()
 {
     _notificationService         = Mvx.IoCProvider.Resolve <IUserNotificationService>();
     _notificationService.Notify += UserNotificationService_Notify;
 }
 public NotificationHandler(IUserNotificationService userNotificationService)
 {
     _userNotificationService = userNotificationService;
 }
Example #34
0
 public UserEventConsumer(IUserNotificationService userNotificationService)
 {
     this.userNotificationService = userNotificationService;
 }
 public SpectacleService(IUnitOfWork db, IUserNotificationService userNotificator)
 {
     mDb = db;
     mUserNotificator = userNotificator;
 }
Example #36
0
 public MapLauncher(IUserNotificationService notificationService)
 {
     _notificationService = notificationService;
 }
        public MainWindow(string[] args)
        {
            InitializeWindow();
            InitializeComponent();

            IServiceProvider serviceProvider = ToolsUIApplication.Instance.RootServiceProvider;
            if (serviceProvider != null)
            {
                this.loggingService = serviceProvider.GetService(typeof(ILoggingService)) as ILoggingService;
                this.notificationService = serviceProvider.GetService(typeof(IUserNotificationService)) as IUserNotificationService;
                this.kstudioService = serviceProvider.GetService(typeof(IKStudioService)) as IKStudioService;
                this.metadataViewService = serviceProvider.GetService(typeof(IMetadataViewService)) as IMetadataViewService;
                this.pluginService = serviceProvider.GetService(typeof(IPluginService)) as IPluginService;
            }

            if (this.kstudioService != null)
            {
                MultiBinding titleBinding = new MultiBinding
                    {
                        Converter = new TitleConverter
                            {
                                NoFileString = Strings.WindowTitle_NoFile,
                                ReadOnlyFileFormat = Strings.WindowTitle_ReadOnlyFileFormat,
                                WritableFileFormat = Strings.WindowTitle_WritableFileFormat,
                            },
                        FallbackValue = ToolsUIApplication.Instance.AppTitle,
                    };

                titleBinding.Bindings.Add(new Binding
                    {
                        Source = this.kstudioService,
                        Path = new PropertyPath("RecordingFilePath"),
                    });
                titleBinding.Bindings.Add(new Binding 
                    { 
                        Source = this.kstudioService,
                        Path = new PropertyPath("PlaybackFilePath"),
                    });
                titleBinding.Bindings.Add(new Binding
                    {
                        Source = this.kstudioService,
                        Path = new PropertyPath("IsPlaybackFileReadOnly"),
                    });

                this.SetBinding(Window.TitleProperty, titleBinding);

                this.kstudioService.PlaybackOpened += (s, e) =>
                    {
                        DebugHelper.AssertUIThread();

                        if (!this.suppressAutoSwitch)
                        {
                            this.SwitchToView("PlaybackableStreamsView");
                        }
                    };

                this.kstudioService.Busy += (s, e) =>
                    {
                        DebugHelper.AssertUIThread();
                        if (e != null)
                        {
                            this.IsEnabled = !e.IsBusy;
                        }
                    };
            }

            if ((args != null) && (this.kstudioService != null))
            {
                if (args.Length > 1)
                {
                    bool connect = false;
                    bool readOnly = false;
                    string fileName = null;

                    for (int i = 1; i < args.Length; ++i)
                    {
                        string arg = args[i];
                        if ((arg.Length > 1) && (arg[0] == '-'))
                        {
                            char ch = Char.ToUpperInvariant(arg[1]);

                            switch (ch)
                            {
                                case 'R':
                                    readOnly = true;
                                    break;
                            }
                        }
                        else
                        {
                            fileName = args[i];
                        }
                    }

                    string error = null;
                    string targetAlias = null;
                    IPAddress targetAddress = null;
                    
                    targetAlias = Environment.MachineName;
                    targetAddress = IPAddress.Loopback;

                    this.Loaded += (s, e) =>
                        {
                            Dispatcher.BeginInvoke(new Action(() =>
                                {
                                    if (error == null)
                                    {
                                        if (connect)
                                        {
                                            if (targetAddress != null)
                                            {
                                                using (WaitCursor waitCursor = new WaitCursor(this))
                                                {
                                                    if (!this.kstudioService.ConnectToTarget(targetAddress, targetAlias))
                                                    {
                                                        fileName = null;
                                                    }
                                                }
                                            }
                                        }

                                        if (fileName != null)
                                        {
                                            error = String.Format(CultureInfo.CurrentCulture, Strings.Arg_Error_InvalidFileName, fileName);

                                            if (fileName.Length > 2)
                                            {
                                                using (WaitCursor waitCursor = new WaitCursor(this))
                                                {
                                                    this.OpenFile(fileName, readOnly);

                                                    error = null;
                                                }
                                            }
                                        }
                                    }

                                    if (error != null)
                                    {
                                        if (this.notificationService != null)
                                        {
                                            this.notificationService.ShowMessageBox(error, MessageBoxButton.OK, MessageBoxImage.Exclamation, MessageBoxResult.OK);
                                        }
                                        else if (this.loggingService != null)
                                        {
                                            this.loggingService.LogLine(error);
                                        }
                                    }

                                    CommandManager.InvalidateRequerySuggested();
                                }
                            ));
                        };
                }
            }
        }
 public MessageService(IUnitOfWork unitOfWork, IUserProvider userProvider, IUserNotificationService userNotificationService)
     : base(unitOfWork, userProvider)
 {
     this.userNotificationService = userNotificationService;
 }
Example #39
0
 public ExitAppCommand(IApplicationServices app, IUserNotificationService notificationService)
 {
     _app = app;
     _notificationService = notificationService;
 }
 public ExtendedSplashViewModel(IPageNavigationService pageNavigationService, IAppRepository appRepository, IUserNotificationService userNotificationService) : base(pageNavigationService)
 {
     _pageNavigationService = pageNavigationService;
     _appRepository = appRepository;
     _userNotificationService = userNotificationService;
 }
Example #41
0
        public MainPageViewModel(IPageNavigationService pageNavigationService, IUserNotificationService userNotificationService) : base(pageNavigationService)
        {


            this.UserNotificationService = userNotificationService;
            //this.PageNavigationService = pageNavigationService;


        }