4 implementations of IInternalMicrosoftDetector
aspire (1)
src\Shared\Telemetry\InternalMicrosoftDetector.cs (1)
30
internal sealed partial class InternalMicrosoftDetector :
IInternalMicrosoftDetector
Aspire.Cli.Tests (3)
Telemetry\TestTelemetryHelper.cs (1)
77
private sealed class TestInternalMicrosoftDetector :
IInternalMicrosoftDetector
tests\Shared\Telemetry\TestTelemetryMetadataProviders.cs (1)
24
internal class TestInternalMicrosoftDetector :
IInternalMicrosoftDetector
TestServices\TestConfigSourceServices.cs (1)
69
internal sealed class TestConfigSourceDetector :
IInternalMicrosoftDetector
20 references to IInternalMicrosoftDetector
aspire (7)
Configuration\ConfigSourceService.cs (1)
27
IInternalMicrosoftDetector
detector,
src\Shared\Telemetry\TelemetryMetadata.cs (1)
32
internal static
IInternalMicrosoftDetector
CreateInternalMicrosoftDetector(ILoggerFactory loggerFactory, bool isCIEnvironment)
Telemetry\AspireCliTelemetry.cs (4)
54
private readonly
IInternalMicrosoftDetector
_internalMicrosoftDetector;
79
public AspireCliTelemetry(ILogger<AspireCliTelemetry> logger, IMachineInformationProvider machineInformationProvider, ICIEnvironmentDetector ciEnvironmentDetector, ICodingAgentDetector codingAgentDetector,
IInternalMicrosoftDetector
internalMicrosoftDetector, TelemetryConfiguration telemetryConfiguration, CliExecutionContext executionContext, TelemetryTagsSource tagsSource)
97
internal AspireCliTelemetry(ILogger<AspireCliTelemetry> logger, IMachineInformationProvider machineInformationProvider, ICIEnvironmentDetector ciEnvironmentDetector, ICodingAgentDetector codingAgentDetector,
IInternalMicrosoftDetector
internalMicrosoftDetector, string reportedSourceName, string diagnosticsSourceName, CliExecutionContext executionContext, TelemetryTagsSource tagsSource)
115
internal 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)
28
services.AddSingleton<
IInternalMicrosoftDetector
>(sp =>
Aspire.Cli.Tests (13)
Commands\ConfigSourceCommandTests.cs (8)
506
Assert.Equal(0, Assert.IsType<TestConfigSourceDetector>(provider.GetRequiredService<
IInternalMicrosoftDetector
>()).Calls);
530
Assert.Equal(0, Assert.IsType<TestConfigSourceDetector>(provider.GetRequiredService<
IInternalMicrosoftDetector
>()).Calls);
552
Assert.Equal(0, Assert.IsType<TestConfigSourceDetector>(provider.GetRequiredService<
IInternalMicrosoftDetector
>()).Calls);
587
Assert.Equal(0, Assert.IsType<TestConfigSourceDetector>(provider.GetRequiredService<
IInternalMicrosoftDetector
>()).Calls);
644
services.AddSingleton<
IInternalMicrosoftDetector
>(new TestConfigSourceDetector { IsInternal = employeeSource });
719
services.AddSingleton<
IInternalMicrosoftDetector
>(detector);
751
services.AddSingleton<
IInternalMicrosoftDetector
>(detector);
936
Assert.Equal(0, Assert.IsType<TestConfigSourceDetector>(provider.GetRequiredService<
IInternalMicrosoftDetector
>()).Calls);
Commands\NewCommandLocalTemplateTests.SourceList.cs (2)
341
services.AddSingleton<
IInternalMicrosoftDetector
>(detector);
408
services.AddSingleton<
IInternalMicrosoftDetector
>(detector);
Telemetry\TelemetryFixture.cs (2)
37
IInternalMicrosoftDetector
? internalMicrosoftDetector = null,
153
/// A test implementation of <see cref="
IInternalMicrosoftDetector
"/> with configurable result.
Utils\CliTestHelper.cs (1)
93
services.AddSingleton<
IInternalMicrosoftDetector
, TestConfigSourceDetector>();