public MainWindow( IMicrosoftAuthentication microsoftAuthentication, IPresenceService presenceService, IOptionsService optionsService, IEnumerable <IPublisher> publishers, PresenceViewModel presenceViewModel) { InitializeComponent(); _microsoftAuthentication = microsoftAuthentication; _presenceService = presenceService; _optionsService = optionsService; _publishers = publishers; _presenceViewModel = presenceViewModel; _presenceViewModel.MQTTOptions.PropertyChanged += Options_Changed; _presenceViewModel.ESPHomeAPIOptions.PropertyChanged += Options_Changed; _timer.Interval = TimeSpan.FromSeconds(15); _timer.Tick += _timer_Tick; DataContext = _presenceViewModel; Loaded += MainPage_Loaded; }
public AzureReposHostProvider(ICommandContext context, IAzureDevOpsRestApi azDevOps, IMicrosoftAuthentication msAuth) : base(context) { EnsureArgument.NotNull(azDevOps, nameof(azDevOps)); EnsureArgument.NotNull(msAuth, nameof(msAuth)); _azDevOps = azDevOps; _msAuth = msAuth; }
public AzureReposHostProvider(ICommandContext context, IAzureDevOpsRestApi azDevOps, IMicrosoftAuthentication msAuth, IAzureDevOpsAuthorityCache authorityCache, IAzureReposBindingManager bindingManager) { EnsureArgument.NotNull(context, nameof(context)); EnsureArgument.NotNull(azDevOps, nameof(azDevOps)); EnsureArgument.NotNull(msAuth, nameof(msAuth)); EnsureArgument.NotNull(authorityCache, nameof(authorityCache)); EnsureArgument.NotNull(bindingManager, nameof(bindingManager)); _context = context; _azDevOps = azDevOps; _msAuth = msAuth; _authorityCache = authorityCache; _bindingManager = bindingManager; }