55 implementations of BeginScope
aspire (2)
Diagnostics\FileLoggerProvider.cs (1)
234public IDisposable? BeginScope<TState>(TState state) where TState : notnull => null;
Interaction\SpectreConsoleLoggerProvider.cs (1)
38public IDisposable? BeginScope<TState>(TState state) where TState : notnull => null;
Aspire.Cli.Tests (3)
tests\Shared\Logging\TestLogger.cs (1)
25public IDisposable BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\TestLoggerT.cs (1)
15public IDisposable? BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\XunitLoggerProvider.cs (1)
117public IDisposable BeginScope<TState>(TState state) where TState : notnull
Aspire.Dashboard (1)
Telemetry\TelemetryLoggerProvider.cs (1)
40public IDisposable? BeginScope<TState>(TState state) where TState : notnull => null;
Aspire.Dashboard.Components.Tests (3)
tests\Shared\Logging\TestLogger.cs (1)
25public IDisposable BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\TestLoggerT.cs (1)
15public IDisposable? BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\XunitLoggerProvider.cs (1)
117public IDisposable BeginScope<TState>(TState state) where TState : notnull
Aspire.Dashboard.Tests (3)
tests\Shared\Logging\TestLogger.cs (1)
25public IDisposable BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\TestLoggerT.cs (1)
15public IDisposable? BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\XunitLoggerProvider.cs (1)
117public IDisposable BeginScope<TState>(TState state) where TState : notnull
Aspire.Hosting (4)
ApplicationModel\ResourceLoggerService.cs (2)
75public IDisposable? BeginScope<TState>(TState state) where TState : notnull 588IDisposable? ILogger.BeginScope<TState>(TState state) => null;
Backchannel\BackchannelLoggerProvider.cs (1)
81public IDisposable? BeginScope<TState>(TState state) where TState : notnull
Pipelines\PipelineLoggerProvider.cs (1)
71public IDisposable? BeginScope<TState>(TState state) where TState : notnull =>
Aspire.Hosting.Testing.Tests (3)
tests\Shared\Logging\TestLogger.cs (1)
25public IDisposable BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\TestLoggerT.cs (1)
15public IDisposable? BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\XunitLoggerProvider.cs (1)
117public IDisposable BeginScope<TState>(TState state) where TState : notnull
Aspire.Hosting.Tests (4)
Dashboard\DashboardResourceTests.cs (1)
766public IDisposable? BeginScope<TState>(TState state) where TState : notnull => null;
tests\Shared\Logging\TestLogger.cs (1)
25public IDisposable BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\TestLoggerT.cs (1)
15public IDisposable? BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\XunitLoggerProvider.cs (1)
117public IDisposable BeginScope<TState>(TState state) where TState : notnull
Aspire.Playground.Tests (3)
tests\Shared\Logging\TestLogger.cs (1)
25public IDisposable BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\TestLoggerT.cs (1)
15public IDisposable? BeginScope<TState>(TState state) where TState : notnull
tests\Shared\Logging\XunitLoggerProvider.cs (1)
117public IDisposable BeginScope<TState>(TState state) where TState : notnull
Aspire.RabbitMQ.Client.Tests (1)
AspireRabbitMQLoggingTests.cs (1)
245public IDisposable? BeginScope<TState>(TState state) where TState : notnull =>
Aspire.RabbitMQ.Client.v6.Tests (1)
tests\Aspire.RabbitMQ.Client.Tests\AspireRabbitMQLoggingTests.cs (1)
245public IDisposable? BeginScope<TState>(TState state) where TState : notnull =>
dotnet-format (1)
Logging\SimpleConsoleLogger.cs (1)
58public IDisposable? BeginScope<TState>(TState state) where TState : notnull
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\KestrelTrace.cs (1)
30public IDisposable? BeginScope<TState>(TState state) where TState : notnull => _generalLogger.BeginScope(state);
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\DiagnosticReporterLoggerProvider.cs (1)
30public IDisposable? BeginScope<TState>(TState state) where TState : notnull
Microsoft.DotNet.HotReload.Watch (2)
src\sdk\src\Dotnet.Watch\AspireService\Helpers\LoggerProvider.cs (1)
15public IDisposable? BeginScope<TState>(TState state) where TState : notnull
UI\IReporter.cs (1)
121public IDisposable? BeginScope<TState>(TState state) where TState : notnull
Microsoft.Extensions.Caching.Hybrid.Tests (1)
LogCollector.cs (1)
114IDisposable? ILogger.BeginScope<TState>(TState state) => null;
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLogger.cs (1)
62public IDisposable? BeginScope<TState>(TState state)
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (1)
DropMessageLogger.cs (1)
16public IDisposable? BeginScope<TState>(TState state)
Microsoft.Extensions.Logging (1)
Logger.cs (1)
116public IDisposable? BeginScope<TState>(TState state) where TState : notnull
Microsoft.Extensions.Logging.Abstractions (3)
LoggerT.cs (1)
33IDisposable? ILogger.BeginScope<TState>(TState state)
NullLogger.cs (1)
26public IDisposable BeginScope<TState>(TState state) where TState : notnull
NullLoggerT.cs (1)
20public IDisposable BeginScope<TState>(TState state) where TState : notnull
Microsoft.Extensions.Logging.Console (1)
ConsoleLogger.cs (1)
109public IDisposable BeginScope<TState>(TState state) where TState : notnull => ScopeProvider?.Push(state) ?? NullScope.Instance;
Microsoft.Extensions.Logging.Debug (1)
DebugLogger.cs (1)
26public IDisposable BeginScope<TState>(TState state) where TState : notnull
Microsoft.Extensions.Logging.EventLog (1)
EventLogLogger.cs (1)
57public IDisposable? BeginScope<TState>(TState state) where TState : notnull
Microsoft.Extensions.Logging.EventSource (1)
EventSourceLogger.cs (1)
170public IDisposable BeginScope<TState>(TState state) where TState : notnull
Microsoft.Extensions.Logging.MSBuild (1)
MSBuildLogger.cs (1)
48IDisposable ILogger.BeginScope<TState>(TState state) => _scopeProvider?.Push(state) ?? Scope;
Microsoft.Extensions.Logging.TraceSource (1)
TraceSourceLogger.cs (1)
81public IDisposable BeginScope<TState>(TState state) where TState : notnull
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
XunitLoggerFactoryExtensions.cs (1)
135public IDisposable BeginScope<TState>(TState state) where TState : notnull
Microsoft.Extensions.Telemetry (1)
Logging\ExtendedLogger.cs (1)
67public IDisposable? BeginScope<TState>(TState state)
Microsoft.Extensions.Telemetry.PerformanceTests (1)
BenchLogger.cs (1)
25public IDisposable? BeginScope<TState>(TState state)
Microsoft.Extensions.Telemetry.Tests (4)
Logging\ExtendedLoggerFactoryTests.cs (2)
580public IDisposable BeginScope<TState>(TState state) 622public IDisposable? BeginScope<TState>(TState state)
Logging\ExtendedLoggerTests.cs (2)
1065public IDisposable? BeginScope<TState>(TState state) 1152public IDisposable? BeginScope<TState>(TState state)
Microsoft.Gen.Logging.Generated.Tests (1)
Utils.cs (1)
60public IDisposable? BeginScope<TState>(TState state)
Microsoft.Maui (1)
Hosting\MauiAppBuilder.cs (1)
194 public IDisposable BeginScope<TState>(TState state) where TState : notnull => this;
48 references to BeginScope
Aspire.Cli.Tests (1)
tests\Shared\Logging\TestLoggerT.cs (1)
17return _logger.BeginScope(state);
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Logging\TestLoggerT.cs (1)
17return _logger.BeginScope(state);
Aspire.Dashboard.Tests (1)
tests\Shared\Logging\TestLoggerT.cs (1)
17return _logger.BeginScope(state);
Aspire.Hosting (1)
ApplicationModel\ResourceLoggerService.cs (1)
80if (logger.BeginScope(state) is { } scope)
Aspire.Hosting.Testing.Tests (1)
tests\Shared\Logging\TestLoggerT.cs (1)
17return _logger.BeginScope(state);
Aspire.Hosting.Tests (1)
tests\Shared\Logging\TestLoggerT.cs (1)
17return _logger.BeginScope(state);
Aspire.Playground.Tests (1)
tests\Shared\Logging\TestLoggerT.cs (1)
17return _logger.BeginScope(state);
Microsoft.AspNetCore.Hosting (1)
Internal\HostingApplicationDiagnostics.cs (1)
599return logger.BeginScope(new HostingLogScope(httpContext));
Microsoft.AspNetCore.Http.Connections (2)
Internal\HttpConnectionDispatcher.cs (2)
78using (_logger.BeginScope(logScope)) 107using (_logger.BeginScope(logScope))
Microsoft.AspNetCore.Mvc.Core (1)
MvcCoreLoggerExtensions.cs (1)
22return logger.BeginScope(new ActionLogScope(action));
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ViewComponents\DefaultViewComponentInvoker.cs (1)
235return logger.BeginScope(new ViewComponentLogScope(context.ViewComponentDescriptor));
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\KestrelTrace.cs (1)
30public IDisposable? BeginScope<TState>(TState state) where TState : notnull => _generalLogger.BeginScope(state);
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
114using var scope = _logger.BeginScope("Encoding");
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DefaultHealthCheckService.cs (1)
85using (_logger.BeginScope(new HealthCheckLogScope(registration.Name)))
Microsoft.Extensions.Logging (1)
LoggerInformation.cs (1)
68return Logger.BeginScope<TState>(state);
Microsoft.Extensions.Logging.Abstractions (9)
LoggerExtensions.cs (1)
510return logger.BeginScope(new FormattedLogValues(messageFormat, args));
LoggerMessage.cs (7)
27return logger => logger.BeginScope(logValues); 40return (logger, arg1) => logger.BeginScope(new LogValues<T1>(formatter, arg1)); 54return (logger, arg1, arg2) => logger.BeginScope(new LogValues<T1, T2>(formatter, arg1, arg2)); 69return (logger, arg1, arg2, arg3) => logger.BeginScope(new LogValues<T1, T2, T3>(formatter, arg1, arg2, arg3)); 85return (logger, arg1, arg2, arg3, arg4) => logger.BeginScope(new LogValues<T1, T2, T3, T4>(formatter, arg1, arg2, arg3, arg4)); 102return (logger, arg1, arg2, arg3, arg4, arg5) => logger.BeginScope(new LogValues<T1, T2, T3, T4, T5>(formatter, arg1, arg2, arg3, arg4, arg5)); 120return (logger, arg1, arg2, arg3, arg4, arg5, arg6) => logger.BeginScope(new LogValues<T1, T2, T3, T4, T5, T6>(formatter, arg1, arg2, arg3, arg4, arg5, arg6));
LoggerT.cs (1)
35return _logger.BeginScope(state);
Microsoft.Extensions.Logging.MSBuild (1)
MSBuildLogger.cs (1)
270/// A simple disposable to describe scopes with <see cref="ILogger.BeginScope"/>.
Microsoft.Extensions.Telemetry (1)
Logging\Import\LoggerInformation.cs (1)
79return Logger.BeginScope<TState>(state);
Microsoft.Extensions.Telemetry.Tests (19)
Logging\ExtendedLoggerFactoryTests.cs (11)
213using (logger.BeginScope("Scope 1")) 220using (logger.BeginScope("Scope 2")) 357using (logger.BeginScope("Scope1")) 364using (logger.BeginScope("Scope2")) 369using (logger.BeginScope("Scope3")) 440using (logger.BeginScope("Scope")) 442using (logger.BeginScope("Scope2")) 471var scope = logger.BeginScope("Scope"); 483var scope = logger.BeginScope("Scope"); 498using (logger.BeginScope("Scope")) 500using (logger.BeginScope("Scope2"))
Logging\ExtendedLoggerTests.cs (8)
688using (newLogger.BeginScope("Scope")) 694logger.Verify(l => l.BeginScope(It.IsAny<object>()), Times.Never); 714using (newLogger.BeginScope("Scope")) 720logger.Verify(l => l.BeginScope(It.IsAny<object>()), Times.Never); 746using (newLogger.BeginScope("Scope")) 752logger.Verify(l => l.BeginScope(It.IsAny<object>()), Times.Never); 781using (newLogger.BeginScope("Scope")) 791using (newLogger.BeginScope("Scope"))
Microsoft.Gen.Logging.Generated.Tests (1)
Utils.cs (1)
61where TState : notnull => _logger.BeginScope(state);
Microsoft.TemplateEngine.Utils (1)
Timing.cs (1)
21_disposable = logger.BeginScope(_label);