4 implementations of IInternalMicrosoftDetector
aspire (1)
src\Shared\Telemetry\InternalMicrosoftDetector.cs (1)
30internal sealed partial class InternalMicrosoftDetector : IInternalMicrosoftDetector
Aspire.Cli.Tests (3)
Telemetry\TestTelemetryHelper.cs (1)
77private sealed class TestInternalMicrosoftDetector : IInternalMicrosoftDetector
tests\Shared\Telemetry\TestTelemetryMetadataProviders.cs (1)
24internal class TestInternalMicrosoftDetector : IInternalMicrosoftDetector
TestServices\TestConfigSourceServices.cs (1)
70internal sealed class TestConfigSourceDetector : IInternalMicrosoftDetector
22 references to IInternalMicrosoftDetector
aspire (7)
Configuration\ConfigSourceService.cs (1)
28IInternalMicrosoftDetector detector,
src\Shared\Telemetry\TelemetryMetadata.cs (1)
32internal static IInternalMicrosoftDetector CreateInternalMicrosoftDetector(ILoggerFactory loggerFactory, bool isCIEnvironment)
Telemetry\AspireCliTelemetry.cs (4)
54private readonly IInternalMicrosoftDetector _internalMicrosoftDetector; 79public AspireCliTelemetry(ILogger<AspireCliTelemetry> logger, IMachineInformationProvider machineInformationProvider, ICIEnvironmentDetector ciEnvironmentDetector, ICodingAgentDetector codingAgentDetector, IInternalMicrosoftDetector internalMicrosoftDetector, TelemetryConfiguration telemetryConfiguration, CliExecutionContext executionContext, TelemetryTagsSource tagsSource) 97internal AspireCliTelemetry(ILogger<AspireCliTelemetry> logger, IMachineInformationProvider machineInformationProvider, ICIEnvironmentDetector ciEnvironmentDetector, ICodingAgentDetector codingAgentDetector, IInternalMicrosoftDetector internalMicrosoftDetector, string reportedSourceName, string diagnosticsSourceName, CliExecutionContext executionContext, TelemetryTagsSource tagsSource) 115internal AspireCliTelemetry(ILogger<AspireCliTelemetry> logger, IMachineInformationProvider machineInformationProvider, ICIEnvironmentDetector ciEnvironmentDetector, ICodingAgentDetector codingAgentDetector, IInternalMicrosoftDetector internalMicrosoftDetector, TelemetryConfiguration telemetryConfiguration, string reportedSourceName, string diagnosticsSourceName, CliExecutionContext executionContext, TelemetryTagsSource tagsSource)
Telemetry\TelemetryServiceCollectionExtensions.cs (1)
28services.AddSingleton<IInternalMicrosoftDetector>(sp =>
Aspire.Cli.Tests (15)
Commands\ConfigSourceCommandTests.cs (9)
666Assert.Equal(0, Assert.IsType<TestConfigSourceDetector>(provider.GetRequiredService<IInternalMicrosoftDetector>()).Calls); 690Assert.Equal(0, Assert.IsType<TestConfigSourceDetector>(provider.GetRequiredService<IInternalMicrosoftDetector>()).Calls); 719Assert.Equal(0, Assert.IsType<TestConfigSourceDetector>(provider.GetRequiredService<IInternalMicrosoftDetector>()).Calls); 754Assert.Equal(0, Assert.IsType<TestConfigSourceDetector>(provider.GetRequiredService<IInternalMicrosoftDetector>()).Calls); 811services.AddSingleton<IInternalMicrosoftDetector>(new TestConfigSourceDetector { IsInternal = employeeSource }); 886services.AddSingleton<IInternalMicrosoftDetector>(detector); 918services.AddSingleton<IInternalMicrosoftDetector>(detector); 1103Assert.Equal(0, Assert.IsType<TestConfigSourceDetector>(provider.GetRequiredService<IInternalMicrosoftDetector>()).Calls); 1461services.AddSingleton<IInternalMicrosoftDetector>(new TestConfigSourceDetector { IsInternal = microsoftDefault });
Commands\NewCommandLocalTemplateTests.InitConfig.cs (1)
59services.AddSingleton<IInternalMicrosoftDetector>(new TestConfigSourceDetector { IsInternal = true });
Commands\NewCommandLocalTemplateTests.SourceList.cs (2)
344services.AddSingleton<IInternalMicrosoftDetector>(detector); 411services.AddSingleton<IInternalMicrosoftDetector>(detector);
Telemetry\TelemetryFixture.cs (2)
37IInternalMicrosoftDetector? internalMicrosoftDetector = null, 153/// A test implementation of <see cref="IInternalMicrosoftDetector"/> with configurable result.
Utils\CliTestHelper.cs (1)
92services.AddSingleton<IInternalMicrosoftDetector, TestConfigSourceDetector>();