public ProjectLaunchTargetsProvider(
            IUnconfiguredProjectVsServices unconfiguredProjectVsServices,
            ConfiguredProject project,
            IDebugTokenReplacer tokenReplacer,
            IFileSystem fileSystem,
            IEnvironmentHelper environment,
            IActiveDebugFrameworkServices activeDebugFramework,
            ProjectProperties properties,
            IProjectThreadingService threadingService,
            IVsUIService <SVsShellDebugger, IVsDebugger10> debugger,
            IRemoteDebuggerAuthenticationService remoteDebuggerAuthenticationService,
            Lazy <IProjectHotReloadSessionManager> hotReloadSessionManager,
            Lazy <IHotReloadOptionService> debuggerSettings)
        {
            _project = project;
            _unconfiguredProjectVsServices = unconfiguredProjectVsServices;
            _tokenReplacer        = tokenReplacer;
            _fileSystem           = fileSystem;
            _environment          = environment;
            _activeDebugFramework = activeDebugFramework;
            _threadingService     = threadingService;
            _debugger             = debugger;
            _remoteDebuggerAuthenticationService = remoteDebuggerAuthenticationService;
            _hotReloadSessionManager             = hotReloadSessionManager;
            _debuggerSettings = debuggerSettings;

            _outputTypeChecker = new OutputTypeChecker(properties);
        }
Ejemplo n.º 2
0
        private static ConsoleDebugTargetsProvider CreateInstance(
            ConfiguredProject?configuredProject = null,
            IDebugTokenReplacer?tokenReplacer   = null,
            IFileSystem?fileSystem         = null,
            IEnvironmentHelper?environment = null,
            IActiveDebugFrameworkServices?activeDebugFramework = null,
            ProjectProperties?properties = null,
            IProjectThreadingService?threadingService = null,
            IVsDebugger10?debugger = null)
        {
            environment ??= Mock.Of <IEnvironmentHelper>();
            tokenReplacer ??= IDebugTokenReplacerFactory.Create();
            activeDebugFramework ??= IActiveDebugFrameworkServicesFactory.ImplementGetConfiguredProjectForActiveFrameworkAsync(configuredProject);
            threadingService ??= IProjectThreadingServiceFactory.Create();
            debugger ??= IVsDebugger10Factory.ImplementIsIntegratedConsoleEnabled(enabled: false);

            IUnconfiguredProjectVsServices unconfiguredProjectVsServices = IUnconfiguredProjectVsServicesFactory.Implement(() => IVsHierarchyFactory.Create());

            IRemoteDebuggerAuthenticationService remoteDebuggerAuthenticationService = Mock.Of <IRemoteDebuggerAuthenticationService>();

            return(new ConsoleDebugTargetsProvider(unconfiguredProjectVsServices, configuredProject, tokenReplacer, fileSystem, environment, activeDebugFramework, properties, threadingService, IVsUIServiceFactory.Create <SVsShellDebugger, IVsDebugger10>(debugger), remoteDebuggerAuthenticationService));
        }
Ejemplo n.º 3
0
 public ProjectLaunchTargetsProvider(
     IUnconfiguredProjectVsServices unconfiguredProjectVsServices,
     ConfiguredProject project,
     IDebugTokenReplacer tokenReplacer,
     IFileSystem fileSystem,
     IEnvironmentHelper environment,
     IActiveDebugFrameworkServices activeDebugFramework,
     ProjectProperties properties,
     IProjectThreadingService threadingService,
     IVsUIService <SVsShellDebugger, IVsDebugger10> debugger,
     IRemoteDebuggerAuthenticationService remoteDebuggerAuthenticationService)
 {
     _project = project;
     _unconfiguredProjectVsServices = unconfiguredProjectVsServices;
     _tokenReplacer        = tokenReplacer;
     _fileSystem           = fileSystem;
     _environment          = environment;
     _activeDebugFramework = activeDebugFramework;
     _properties           = properties;
     _threadingService     = threadingService;
     _debugger             = debugger;
     _remoteDebuggerAuthenticationService = remoteDebuggerAuthenticationService;
 }
Ejemplo n.º 4
0
 public AuthenticationModeEnumValuesGenerator(IRemoteDebuggerAuthenticationService remoteDebuggerAuthenticationService)
 {
     _remoteDebuggerAuthenticationService = remoteDebuggerAuthenticationService;
 }
Ejemplo n.º 5
0
 public AuthenticationModeEnumProvider(IRemoteDebuggerAuthenticationService remoteDebuggerAuthenticationService)
 {
     _remoteDebuggerAuthenticationService = remoteDebuggerAuthenticationService;
 }