public AnalyticsManager(INotificationManager notificationManager, IEnvironmentInformation environmentInformation, IPersistentStorage persistentStorage, IRegistrationController registrationController) { _notificationManager = notificationManager; _environmentInformation = environmentInformation; _persistentStorage = persistentStorage; _registrationController = registrationController; }
public async Task<IEnumerable<ChannelItemInfo>> Refresh(IProviderManager providerManager, IHttpClient httpClient, string url, INotificationManager notificationManager, CancellationToken cancellationToken) { var options = new HttpRequestOptions { Url = url, CancellationToken = cancellationToken, // Seeing some deflate stream errors EnableHttpCompression = false }; using (Stream stream = await httpClient.Get(options).ConfigureAwait(false)) { using (var reader = new StreamReader(stream)) { XDocument document = XDocument.Parse(reader.ReadToEnd()); var x = from c in document.Root.Element("channel").Elements("item") select c; return x.Select(CreatePodcast).Where(i => i != null); } } }
/// <summary> /// Initializes a new instance of the <see cref="IssuesSearchViewModel" /> class. /// </summary> /// <param name="searchModel">The search model.</param> /// <param name="notificationManager">The notification manager.</param> /// <param name="configurationHelper">The configuration helper.</param> /// <param name="restService">The rest service.</param> /// <param name="translator">The translator.</param> public IssuesSearchViewModel( IssuesSearchModel searchModel, INotificationManager notificationManager, IConfigurationHelper configurationHelper, ISonarRestService restService, ISQKeyTranslator translator) { this.notificationManager = notificationManager; this.configurationHelper = configurationHelper; this.searchModel = searchModel; this.Header = "Issues Search"; this.AvailableActionPlans = new ObservableCollection<SonarActionPlan>(); this.UsersList = new ObservableCollection<User>(); this.IssuesGridView = new IssueGridViewModel(true, "SearchView", false, configurationHelper, restService, notificationManager, translator); this.IssuesGridView.ShowLeftFlyoutEvent += this.ShowHideLeftFlyout; this.SizeOfFlyout = 0; this.InitCommanding(); this.ForeGroundColor = Colors.Black; this.BackGroundColor = Colors.White; this.CreatedBeforeDate = DateTime.Now; this.CreatedSinceDate = DateTime.Now; SonarQubeViewModel.RegisterNewViewModelInPool(this); }
public Channel(IHttpClient httpClient, ILogManager logManager, IProviderManager providerManager, INotificationManager notificationManager) { _httpClient = httpClient; _logger = logManager.GetLogger(GetType().Name); _providerManager = providerManager; _notificationManager = notificationManager; }
public OutputCacheFilter( ICacheManager cacheManager, IOutputCacheStorageProvider cacheStorageProvider, ITagCache tagCache, IDisplayedContentItemHandler displayedContentItemHandler, IWorkContextAccessor workContextAccessor, IThemeManager themeManager, IClock clock, ICacheService cacheService, ISignals signals, ShellSettings shellSettings, ICacheControlStrategy cacheControlStrategy, INotificationManager notificationManager ) { _cacheManager = cacheManager; _cacheStorageProvider = cacheStorageProvider; _tagCache = tagCache; _displayedContentItemHandler = displayedContentItemHandler; _workContextAccessor = workContextAccessor; _themeManager = themeManager; _clock = clock; _cacheService = cacheService; _signals = signals; _shellSettings = shellSettings; _cacheControlStrategy = cacheControlStrategy; _notificationManager = notificationManager; Logger = NullLogger.Instance; }
public UserManager(ILogger logger, IStepMapConfig config, IRegexHelper regexHelper, INotificationManager notificationManager) { this.logger = logger; this.regexHelper = regexHelper; this.notificationManager = notificationManager; this.config = config; }
public NotificationController(INotificationManager manager, IScheduleManager sm, IEmployeeManager emanag, IRiderMasterManager RiderManager) { this.manager = manager; this.smanag = sm; this.emanag = emanag; this.RiderManager = RiderManager; }
public StorefrontSecurityController(ISecurityService securityService, Func<ApplicationSignInManager> signInManagerFactory, INotificationManager notificationManager, IStoreService storeService, IMemberService memberService) { _securityService = securityService; _signInManagerFactory = signInManagerFactory; _notificationManager = notificationManager; _storeService = storeService; _memberService = memberService; }
public Mp3MatchEngine(IAppSettingsHelper settingsHelper, IAudioticaService audioticaService, INotificationManager notificationManager, IDispatcherHelper dispatcherHelper) { _audioticaService = audioticaService; _notificationManager = notificationManager; _dispatcherHelper = dispatcherHelper; _service = new Mp3SearchService(settingsHelper); }
public AdminNotificationFilter( INotificationManager notificationManager, IWorkContextAccessor workContextAccessor, IShapeFactory shapeFactory) { _notificationManager = notificationManager; _workContextAccessor = workContextAccessor; _shapeFactory = shapeFactory; }
public RemoteNotificationManager(IRemoteNotificationChannel channel, IRegistrationManager registrationManager, IEventBus eventBus, INotificationManager notificationManager) { _channel = channel; _registrationManager = registrationManager; _notificationManager = notificationManager; eventBus.Subscribe<RemoteChannelDetailsChanged>(HandleChannelDetailsChanged); eventBus.Subscribe<RemoteNotificationReceivedEvent>(HandleNotificationReceived); }
public NotificationsController( INotificationTemplateService notificationTemplateService, INotificationManager notificationManager, INotificationTemplateResolver eventTemplateResolver) { _notificationTemplateService = notificationTemplateService; _notificationManager = notificationManager; _eventTemplateResolver = eventTemplateResolver; }
public RichMessagingManager(IRichDataContext context, ICommonMessagingManager commonMessagingManager, IJsonSerialiser serialiser, IEventBus eventBus, IConfigurationManager configurationManager, INotificationManager notificationManager) { _context = context; _commonMessagingManager = commonMessagingManager; _serialiser = serialiser; _eventBus = eventBus; _configurationManager = configurationManager; _notificationManager = notificationManager; }
public TeamsApiController( ITeamManager teamManager, IImageManager imageManager, INotificationManager notificationManager) { _teamManager = teamManager; _imageManager = imageManager; _notificationManager = notificationManager; }
public StickyNotificationFilter( INotifier notifier, INotificationManager notificationManager, IWorkContextAccessor wca) { _notifier = notifier; _notificationManager = notificationManager; _wca = wca; }
public TaskListManager(ITaskListRepository repo, IUserRepository userRepo, INotificationManager notify, IUserListsRepository userListsRepo, IListUsersRepository listUsersRepo) { _repository = repo; _userRepository = userRepo; _noticationMgr = notify; _userListsRepo = userListsRepo; _listUsersRepo = listUsersRepo; }
public RemoteNotifications(IApplicationPaths appPaths, ILogger logger, IHttpClient httpClient, IJsonSerializer json, IUserManager userManager, IFileSystem fileSystem, INotificationManager notificationManager) { _appPaths = appPaths; _logger = logger; _httpClient = httpClient; _json = json; _userManager = userManager; _fileSystem = fileSystem; _notificationManager = notificationManager; }
public NewsEntryPoint(IHttpClient httpClient, IApplicationPaths appPaths, IFileSystem fileSystem, ILogger logger, IJsonSerializer json, INotificationManager notifications, IUserManager userManager) { _httpClient = httpClient; _appPaths = appPaths; _fileSystem = fileSystem; _logger = logger; _json = json; _notifications = notifications; _userManager = userManager; }
public NoteManager(INoteRepository repo, IUserRepository userRepo, ITaskListManager mgr, INotificationManager notify, IUserListsRepository userNotesRepo, IListUsersRepository noteUsersRepo) { _repository = repo; _userRepository = userRepo; _taskListManager = mgr; _noticationMgr = notify; _userNotesRepo = userNotesRepo; _noteUsersRepo = noteUsersRepo; }
public LoginController(IAuthProvider auth, IUserRepo userRepo, ICCFolderRepo folder, IAccountRepo account, ICCTokenRepo token, INotificationManager notifMgr, ICCItemRepo item, ICCErrorLogRepo errorlogs) { authProvider = auth; userRepository = userRepo; CCFolderRepository = folder; accRepository = account; CCTokenRepository = token; notifManager = notifMgr; items = item; CCErrorLogRepository = errorlogs; }
public StoreModuleController(IStoreService storeService, IShippingMethodsService shippingService, IPaymentMethodsService paymentService, ITaxService taxService, ISecurityService securityService, IPermissionScopeService permissionScopeService, INotificationManager notificationManager) { _storeService = storeService; _shippingService = shippingService; _paymentService = paymentService; _taxService = taxService; _securityService = securityService; _permissionScopeService = permissionScopeService; _notificationManager = notificationManager; }
//IPurchasedFeatureRepo CCpurchRepository; public CronJobController() { CCUserRepository = new EFUserRepo(); CCItemRepository = new EFCCItemRepo(); CCFolderRepository = new EFCCFolderRepo(); //CCplanRepository = pRepo; //CCaccountRepo = accRepo; //CCpurchRepository = purRepo; this.CCaccountRepo = new EFAccountRepo(); this.notifManager = new EmailNotificationManager(); }
public CronJobController(IAccountRepo accRepo ,INotificationManager notifMgr, IUserRepo urep,ICCItemRepo item,ICCFolderRepo fold) { CCUserRepository = urep; //CCplanRepository = pRepo; CCaccountRepo = accRepo; notifManager = notifMgr; CCItemRepository = item; CCFolderRepository = fold; //CCpurchRepository = purRepo; //this.CCaccountRepo = new }
/// <summary> /// Initializes a new instance of the <see cref="AssignMenu" /> class. /// </summary> /// <param name="rest">The rest.</param> /// <param name="model">The model.</param> /// <param name="notmanager">The notmanager.</param> private AssignMenu(ISonarRestService rest, IssueGridViewModel model, INotificationManager notmanager) { this.model = model; this.rest = rest; this.manager = notmanager; this.ExecuteCommand = new RelayCommand(this.OnAssociateCommand); this.SubItems = new ObservableCollection<IMenuItem>(); // register menu for data sync AssociationModel.RegisterNewModelInPool(this); }
public PushMessagingManager(IJsonSerialiser serialiser, ICommonMessagingManager commonMessagingManager, IDonkyCore donkyCore, INotificationManager notificationManager, IEnvironmentInformation environmentInformation, IPushDataContext pushDataContext, IDeviceInteraction deviceInteraction) { _serialiser = serialiser; _commonMessagingManager = commonMessagingManager; _donkyCore = donkyCore; _notificationManager = notificationManager; _environmentInformation = environmentInformation; _pushDataContext = pushDataContext; _deviceInteraction = deviceInteraction; _donkyCore.SubscribeToLocalEvent<AppOpenEvent>(HandleAppOpen); }
/// <summary> /// Initializes a new instance of the <see cref="SQGitPlugin" /> class. /// </summary> /// <param name="notificationManager">The notification manager.</param> public TestTrackPlugin(INotificationManager notificationManager, ISonarConfiguration configuration) { this.userConf = configuration; this.notificationManager = notificationManager; this.descrition = new PluginDescription(); this.descrition.Enabled = true; this.descrition.Description = "TestTrack Plugin"; this.descrition.Name = "TestTrack Plugin"; this.descrition.Version = Assembly.GetExecutingAssembly().GetName().Version.ToString(); this.descrition.AssemblyPath = Assembly.GetExecutingAssembly().Location; this.testTrackIntegration = new TestTrackConnector(configuration.Username, configuration.Password, true, new TtConnection()); }
public Notifications(IInstallationManager installationManager, IUserManager userManager, ILogger logger, ITaskManager taskManager, INotificationManager notificationManager, ILibraryManager libraryManager, ISessionManager sessionManager, IServerApplicationHost appHost, IConfigurationManager config) { _installationManager = installationManager; _userManager = userManager; _logger = logger; _taskManager = taskManager; _notificationManager = notificationManager; _libraryManager = libraryManager; _sessionManager = sessionManager; _appHost = appHost; _config = config; }
/// <summary> /// Initializes a new instance of the <see cref="EmbbedVersionController"/> class. /// </summary> /// <param name="notificationManager">The notification manager.</param> /// <param name="restService">The rest service.</param> /// <param name="configHelper">The configuration helper.</param> /// <param name="roslynDefaultPath">The roslyn default path.</param> public EmbbedVersionController( INotificationManager notificationManager, ISonarRestService restService, IConfigurationHelper configHelper, string roslynDefaultPath) { this.roslynHomeDiagPath = roslynDefaultPath; this.notificationManager = notificationManager; this.configHelper = configHelper; this.rest = restService; this.GenerateVersionData(); }
public DeployPackageViewModel( INotificationManager notificationManager, IPackageDeployerTasks packageDeployerTasks, IWindowManager windowManager, IManagePackagesView managePackagesView) { this.notificationManager = notificationManager; this.packageDeployerTasks = packageDeployerTasks; this.windowManager = windowManager; this.managePackagesView = managePackagesView; this.packageDeployerTasks.Progress += this.OnProgressUpdate; }
public CreatePackageViewModel( INotificationManager notificationManager, IPackageCreatorTasks packageCreatorTasks, IWindowManager windowManager, IManageExclusionsView manageExclusionsView) { this.notificationManager = notificationManager; this.packageCreatorTasks = packageCreatorTasks; this.windowManager = windowManager; this.manageExclusionsView = manageExclusionsView; this.packageCreatorTasks.Progress += this.OnProgressUpdate; }
/// <summary> /// Registers one manager /// </summary> /// <param name="manager">notification manager to be registered</param> private void RegisterManager(INotificationManager manager) { managers.Add(manager.Type, manager); }
public SecurtiyViewModel(Settings settings, INotificationManager manager) { _settings = settings; _manager = manager; ImportKnxKeys = new Command(OnImportKeys); }
/// <summary> /// Loads the plugin. /// </summary> /// <param name="assembly">The assembly.</param> /// <param name="manager">The manager.</param> /// <param name="helper">The helper.</param> /// <param name="vshelper">The vshelper.</param> /// <param name="userConfig">The user configuration.</param> /// <returns></returns> public IPlugin LoadPlugin(Assembly assembly, INotificationManager manager, IConfigurationHelper helper, IVsEnvironmentHelper vshelper, ISonarConfiguration userConfig) { var types2 = assembly.GetTypes(); foreach (var type in types2) { Debug.WriteLine("Type In Assembly:" + type.FullName); try { if (typeof(IAnalysisPlugin).IsAssignableFrom(type)) { Debug.WriteLine("Can Cast Type In Assembly To: " + typeof(IAnalysisPlugin).FullName); var obj = type.GetConstructor(new[] { typeof(INotificationManager), typeof(IConfigurationHelper), typeof(ISonarRestService), typeof(IVsEnvironmentHelper) }); if (obj != null) { object[] lobject = new object[] { manager, helper, new SonarRestService(new JsonSonarConnector()), vshelper }; return((IPlugin)obj.Invoke(lobject)); } else { return((IPlugin)Activator.CreateInstance(type)); } } if (typeof(IMenuCommandPlugin).IsAssignableFrom(type)) { Debug.WriteLine("Can Cast Type In Assembly To: " + typeof(IMenuCommandPlugin).FullName); var obj = type.GetConstructor(new[] { typeof(ISonarRestService) }); if (obj != null) { object[] lobject = { new SonarRestService(new JsonSonarConnector()) }; return((IPlugin)obj.Invoke(lobject)); } } if (typeof(ISourceVersionPlugin).IsAssignableFrom(type)) { Debug.WriteLine("Can Cast Type In Assembly To: " + typeof(ISourceVersionPlugin).FullName); var obj = type.GetConstructor(new[] { typeof(INotificationManager) }); if (obj != null) { object[] lobject = { manager }; return((IPlugin)obj.Invoke(lobject)); } } if (typeof(IIssueTrackerPlugin).IsAssignableFrom(type)) { Debug.WriteLine("Can Cast Type In Assembly To: " + typeof(IIssueTrackerPlugin).FullName); var obj = type.GetConstructor(new[] { typeof(INotificationManager) }); if (obj != null) { object[] lobject = { manager }; return((IPlugin)obj.Invoke(lobject)); } } } catch (Exception ex) { Debug.WriteLine( "Cannot Cast Type: " + ex.Message + "\r\n" + ex.StackTrace); Debug.WriteLine(ex.InnerException.Message + " : " + ex.InnerException.StackTrace); } } return(null); }
public LogRepository(SQLContext DataContext, INotificationManager _gerenciadorNotificacoes) : base(DataContext, _gerenciadorNotificacoes) { }
public IdentifierChecker(INotificationManager currentState) : base(currentState) { }
public NotificationsService(INotificationsRepository notificationsRepo, INotificationManager notificationManager, IUserManager userManager) { _notificationsRepo = notificationsRepo; _notificationManager = notificationManager; _userManager = userManager; }
/// <summary> /// Ctor <see cref="RedoConsoleCommand"/>. /// </summary> /// <param name="options">Options.</param> /// <param name="notificationManager">Notification manager.</param> /// <param name="handsHistoryManager">Hands history manager.</param> public RedoConsoleCommand(IOptions <CommandsMetadata> options, INotificationManager notificationManager, IHandsHistoryManager handsHistoryManager) : base(notificationManager, options.Value.RedoCommand) { _handsHistoryManager = handsHistoryManager ?? throw new ArgumentNullException(nameof(handsHistoryManager)); }
public NotificationsController(INotificationManager notificationManager, IEmployeeManager employeeManager, IRequisitionManager requisitionManager) { this._notificationManager = notificationManager; this._employeeManager = employeeManager; this._requisitionManager = requisitionManager; }
public OrderModuleController(ICustomerOrderService customerOrderService, ICustomerOrderSearchService searchService, IStoreService storeService, IUniqueNumberGenerator numberGenerator, ICacheManager <object> cacheManager, Func <IOrderRepository> repositoryFactory, IPermissionScopeService permissionScopeService, ISecurityService securityService, ICustomerOrderBuilder customerOrderBuilder, IShoppingCartService cartService, INotificationManager notificationManager, INotificationTemplateResolver notificationTemplateResolver) { _customerOrderService = customerOrderService; _searchService = searchService; _uniqueNumberGenerator = numberGenerator; _storeService = storeService; _cacheManager = cacheManager; _repositoryFactory = repositoryFactory; _securityService = securityService; _permissionScopeService = permissionScopeService; _customerOrderBuilder = customerOrderBuilder; _cartService = cartService; _notificationManager = notificationManager; _notificationTemplateResolver = notificationTemplateResolver; }
/// <summary> /// The make menu. /// </summary> /// <param name="rest">The rest.</param> /// <param name="model">The model.</param> /// <param name="notmanager">The notmanager.</param> /// <returns> /// The <see cref="IMenuItem" />. /// </returns> public static IMenuItem MakeMenu(ISonarRestService rest, IssueGridViewModel model, INotificationManager notmanager) { var topLel = new ChangeStatusMenu(rest, model, notmanager) { CommandText = "Status", IsEnabled = false }; topLel.SubItems.Add(new ChangeStatusMenu(rest, model, notmanager) { CommandText = "Confirm", IsEnabled = true }); topLel.SubItems.Add(new ChangeStatusMenu(rest, model, notmanager) { CommandText = "Fix", IsEnabled = true }); topLel.SubItems.Add(new ChangeStatusMenu(rest, model, notmanager) { CommandText = "False Positive", IsEnabled = true }); return(topLel); }
public NotificationAccessOperation(INotificationManager notificationManager) { _notificationManager = notificationManager; }
public Notifications(IInstallationManager installationManager, IUserManager userManager, ILogger logger, ITaskManager taskManager, INotificationManager notificationManager, ILibraryManager libraryManager, ISessionManager sessionManager, IServerApplicationHost appHost, IConfigurationManager config, IDeviceManager deviceManager, ITimerFactory timerFactory) { _installationManager = installationManager; _userManager = userManager; _logger = logger; _taskManager = taskManager; _notificationManager = notificationManager; _libraryManager = libraryManager; _sessionManager = sessionManager; _appHost = appHost; _config = config; _deviceManager = deviceManager; _timerFactory = timerFactory; }
public MarkelHub(IUserManager userManager, INotificationManager notificationManager) { UserManager = userManager; NotificationManager = notificationManager; }
public UnitsController(IMapper mapper, IDataManager dataManager, UserManager <AppUser> userManager, IRepositoryFactory factory, INotificationManager notificationManager) { _mapper = mapper; _userManager = userManager; _dataManager = dataManager; _repos = factory; _notify = notificationManager; }
public JobRecommederService(IFreelancingPlatformDbContext dbContext, INotificationManager notificationManager) { _dbContext = dbContext; _notificationManager = notificationManager; }
public NotifyOnMessageSubmittedEventHandler(INotificationManager notificationManager, IApplicationSettingService applicationSettingService, ILocalize localize) { _notificationManager = notificationManager; _applicationSettingService = applicationSettingService; _localize = localize; }
/// <summary> /// The make menu. /// </summary> /// <param name="rest">The rest.</param> /// <param name="model">The model.</param> /// <param name="manager">The manager.</param> /// <param name="translator">The translator.</param> /// <returns> /// The <see cref="IMenuItem" />. /// </returns> public static IMenuItem MakeMenu(ISonarRestService rest, IssueGridViewModel model, INotificationManager manager, ISQKeyTranslator translator) { var topLel = new IssueTrackerMenu(rest, model, manager, translator) { CommandText = "Issue Tracker", IsEnabled = false }; topLel.SubItems.Add(new IssueTrackerMenu(rest, model, manager, translator) { CommandText = "new issue and attach", IsEnabled = true }); topLel.SubItems.Add(new IssueTrackerMenu(rest, model, manager, translator) { CommandText = "attach to existent", IsEnabled = false }); return(topLel); }
public NotificationJob(INotificationManager manager, IRepository repository) { this.manager = manager; this.repository = repository; }
public Notifications(IInstallationManager installationManager, IActivityManager activityManager, ILocalizationManager localization, IUserManager userManager, ILogger logger, ITaskManager taskManager, INotificationManager notificationManager, ILibraryManager libraryManager, ISessionManager sessionManager, IServerApplicationHost appHost, IConfigurationManager config, IDeviceManager deviceManager) { _installationManager = installationManager; _userManager = userManager; _logger = logger; _taskManager = taskManager; _notificationManager = notificationManager; _libraryManager = libraryManager; _sessionManager = sessionManager; _appHost = appHost; _config = config; _deviceManager = deviceManager; _localization = localization; _activityManager = activityManager; _coreNotificationTypes = new CoreNotificationTypes(localization, appHost).GetNotificationTypes().Select(i => i.Type).ToArray(); }
/// <summary> /// Initializes a new instance of the <see cref="NotificationsController" /> class. /// </summary> /// <param name="notificationManager">The notification manager.</param> /// <param name="userManager">The user manager.</param> public NotificationsController(INotificationManager notificationManager, IUserManager userManager) { _notificationManager = notificationManager; _userManager = userManager; }
public List <IPlugin> LoadPluginsFromPluginFolder(INotificationManager manager, IConfigurationHelper helper, IVsEnvironmentHelper vshelper, IEnumerable <string> files, string pluginsFolder) { var pluginsData = new List <IPlugin>(); var assemblies = new Dictionary <string, Assembly>(); if (!Directory.Exists(pluginsFolder)) { Directory.CreateDirectory(pluginsFolder); } var filesToUse = Directory.GetFiles(pluginsFolder); if (files != null && files.Any()) { filesToUse = files.ToArray(); } foreach (var file in filesToUse) { if (file.EndsWith(".dll")) { try { assemblies.Add(file, AppDomain.CurrentDomain.Load(File.ReadAllBytes(file))); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine("CannotLoad: " + file + " : " + ex.Message); } } } foreach (var assembly in assemblies) { try { var plugin = this.LoadPlugin(assembly.Value, manager, helper, vshelper, AuthtenticationHelper.AuthToken); if (plugin != null) { var references = assembly.Value.GetReferencedAssemblies(); foreach (var assemblyref in references) { var fileName = assemblyref.Name + ".dll"; var file = Path.Combine(pluginsFolder, fileName); if (File.Exists(file)) { plugin.SetDllLocation(file); } } plugin.SetDllLocation(assembly.Key); pluginsData.Add(plugin); } } catch (Exception ex) { if (ex is System.Reflection.ReflectionTypeLoadException) { var typeLoadException = ex as ReflectionTypeLoadException; var loaderExceptions = typeLoadException.LoaderExceptions; foreach (var loadingException in loaderExceptions) { Debug.WriteLine(loadingException.Message); Debug.WriteLine(loadingException.InnerException); } } File.Delete(assembly.Key); } } return(pluginsData); }
public AppStateDelegate(SampleSqliteConnection conn, INotificationManager notificationManager) { this.conn = conn; this.notificationManager = notificationManager; }
public EditModel(INotificationManager notificationManager, IMediaDirectory mediaDirectory) { _notificationManager = notificationManager; _mediaDirectory = mediaDirectory; }
/// <summary> /// Initializes a new instance of the <see cref="SourceControlModel" /> class. /// </summary> /// <param name="sourceControlPlugins">The source control plugins.</param> /// <param name="basePath">The base path.</param> public SourceControlModel(IEnumerable <ISourceVersionPlugin> sourceControlPlugins, string basePath, INotificationManager manager) { this.manager = manager; this.basePath = basePath; this.plugins = sourceControlPlugins; if (string.IsNullOrEmpty(basePath)) { this.supportedPlugin = null; return; } foreach (var plugin in sourceControlPlugins) { plugin.InitializeRepository(basePath); } this.supportedPlugin = this.GetSupportedPlugin(); }
public OrderNotificationObserver(INotificationManager notificationManager, IStoreService storeService, IMemberService memberService) { _notificationManager = notificationManager; _storeService = storeService; _memberService = memberService; }
public GeofenceDelegate(INotificationManager notifications, IDataService data) { this.notifications = notifications; this.data = data; }
public NotificationViewModel(INotificationManager manager) { _manager = manager; }
public static Task Send(this INotificationManager notifications, string title, string message) => notifications.Send(new Notification { Title = title, Message = message });
public NewsEntryPoint(IHttpClient httpClient, IApplicationPaths appPaths, IFileSystem fileSystem, ILogger logger, IJsonSerializer json, INotificationManager notifications, IUserManager userManager, ITimerFactory timerFactory) { _httpClient = httpClient; _appPaths = appPaths; _fileSystem = fileSystem; _logger = logger; _json = json; _notifications = notifications; _userManager = userManager; _timerFactory = timerFactory; }
static async Task <int> getPendingNotificationCount(INotificationManager notificationManager) { var pendingNotifications = await notificationManager.GetPending().ConfigureAwait(false); return(pendingNotifications.Count()); }