예제 #1
0
        public InstallationSetChangedEventHandler(IInstallationSetManager installationSetManager)
        {
            if (installationSetManager == null)
            {
                throw new ArgumentNullException(nameof(installationSetManager));
            }

            _installationSetManager = installationSetManager;
        }
        public DebugModuleEventHandler(IInstallationSetManager installationSetManager, ILogger <DebugModuleEventHandler> logger = null)
        {
            if (installationSetManager == null)
            {
                throw new ArgumentNullException(nameof(installationSetManager));
            }

            _installationSetManager = installationSetManager;
            _logger = logger;
        }
예제 #3
0
        private static async Task InitializeInstallationSetManagerAsync(IInstallationSetManager installationSetManager, IServiceProvider serviceProvider)
        {
            var messageDispatcher = serviceProvider.GetRequiredService <IMessageDispatcher>();

            Console.WriteLine("Performing query for running debug modules.");
            var queryResult = await messageDispatcher.QueryAsync <IEnumerable <DebugModuleProperties> >(cancellation : default);