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)
69internal sealed class TestConfigSourceDetector : IInternalMicrosoftDetector
20 references to IInternalMicrosoftDetector
aspire (7)
Configuration\ConfigSourceService.cs (1)
27IInternalMicrosoftDetector 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 (13)
Commands\ConfigSourceCommandTests.cs (8)
506Assert.Equal(0, Assert.IsType<TestConfigSourceDetector>(provider.GetRequiredService<IInternalMicrosoftDetector>()).Calls); 530Assert.Equal(0, Assert.IsType<TestConfigSourceDetector>(provider.GetRequiredService<IInternalMicrosoftDetector>()).Calls); 552Assert.Equal(0, Assert.IsType<TestConfigSourceDetector>(provider.GetRequiredService<IInternalMicrosoftDetector>()).Calls); 587Assert.Equal(0, Assert.IsType<TestConfigSourceDetector>(provider.GetRequiredService<IInternalMicrosoftDetector>()).Calls); 644services.AddSingleton<IInternalMicrosoftDetector>(new TestConfigSourceDetector { IsInternal = employeeSource }); 719services.AddSingleton<IInternalMicrosoftDetector>(detector); 751services.AddSingleton<IInternalMicrosoftDetector>(detector); 936Assert.Equal(0, Assert.IsType<TestConfigSourceDetector>(provider.GetRequiredService<IInternalMicrosoftDetector>()).Calls);
Commands\NewCommandLocalTemplateTests.SourceList.cs (2)
341services.AddSingleton<IInternalMicrosoftDetector>(detector); 408services.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)
93services.AddSingleton<IInternalMicrosoftDetector, TestConfigSourceDetector>();