81 implementations of BeginScope
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 (1)
ApplicationModel\ResourceLoggerService.cs (1)
420IDisposable? ILogger.BeginScope<TState>(TState state) => null;
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)
500public 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)
163public IDisposable? BeginScope<TState>(TState state) where TState : notnull =>
BasicTestApp (1)
PrependMessageLoggerProvider.cs (1)
52public IDisposable BeginScope<TState>(TState state)
BuildValidator (2)
DemoLogger.cs (2)
34public IDisposable BeginScope<TState>(TState state) where TState : notnull 69public IDisposable BeginScope<TState>(TState state) where TState : notnull => this;
Diagnostics.EFCore.FunctionalTests (1)
Helpers\TestLoggerProvider.cs (1)
56public IDisposable BeginScope<TState>(TState state)
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
164public IDisposable BeginScope<TState>(TState state) => Logger?.BeginScope(state);
IIS.LongTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
164public IDisposable BeginScope<TState>(TState state) => Logger?.BeginScope(state);
IIS.NewHandler.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
164public IDisposable BeginScope<TState>(TState state) => Logger?.BeginScope(state);
IIS.NewShim.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
164public IDisposable BeginScope<TState>(TState state) => Logger?.BeginScope(state);
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
164public IDisposable BeginScope<TState>(TState state) => Logger?.BeginScope(state);
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
164public IDisposable BeginScope<TState>(TState state) => Logger?.BeginScope(state);
InMemory.FunctionalTests (5)
Http2\Http2EndToEndTests.cs (1)
116public IDisposable BeginScope<TState>(TState state)
HttpsTests.cs (2)
839public IDisposable BeginScope<TState>(TState state) 876public IDisposable BeginScope<TState>(TState state)
src\Servers\Kestrel\shared\test\MockLogger.cs (1)
15public IDisposable BeginScope<TState>(TState state)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
52public IDisposable BeginScope<TState>(TState state)
Interop.FunctionalTests (1)
Http3\Http3RequestTests.cs (1)
198public IDisposable BeginScope<TState>(TState state)
Microsoft.AspNetCore.Authorization.Test (1)
DefaultAuthorizationServiceTests.cs (1)
1167public IDisposable BeginScope<TState>(TState state)
Microsoft.AspNetCore.Components.WebAssembly (1)
Services\WebAssemblyConsoleLogger.cs (1)
34public IDisposable? BeginScope<TState>(TState state) where TState : notnull
Microsoft.AspNetCore.DataProtection.Tests (1)
StringLoggerFactory.cs (1)
51public IDisposable BeginScope<TState>(TState state)
Microsoft.AspNetCore.Hosting.Tests (3)
HostingApplicationDiagnosticsTests.cs (2)
1119public IDisposable BeginScope<TState>(TState state) => null; 1136public IDisposable BeginScope<TState>(TState state)
WebHostTests.cs (1)
1353public IDisposable BeginScope<TState>(TState state)
Microsoft.AspNetCore.Identity.Specification.Tests (1)
TestLogger.cs (1)
35public IDisposable BeginScope<TState>(TState state)
Microsoft.AspNetCore.InternalTesting (3)
Logging\TestLogger.cs (1)
29public IDisposable BeginScope<TState>(TState state)
Logging\TestLoggerT.cs (1)
17public IDisposable BeginScope<TState>(TState state)
Logging\XunitLoggerProvider.cs (1)
119public IDisposable BeginScope<TState>(TState state)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
TagHelperLogger.cs (1)
12public IDisposable BeginScope<TState>(TState state)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\KestrelTrace.cs (1)
30public IDisposable? BeginScope<TState>(TState state) where TState : notnull => _generalLogger.BeginScope(state);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
LoggingStreamTests.cs (1)
59public IDisposable BeginScope<TState>(TState state)
src\Servers\Kestrel\shared\test\MockLogger.cs (1)
15public IDisposable BeginScope<TState>(TState state)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
52public IDisposable BeginScope<TState>(TState state)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
52public IDisposable BeginScope<TState>(TState state)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
52public IDisposable BeginScope<TState>(TState state)
Microsoft.AspNetCore.SignalR.Tests (1)
NativeAotTests.cs (1)
410public IDisposable BeginScope<TState>(TState state)
Microsoft.AspNetCore.SignalR.Tests.Utils (2)
src\Shared\SignalR\LogSinkProvider.cs (1)
61public IDisposable BeginScope<TState>(TState state)
src\Shared\SignalR\WrappingLoggerFactory.cs (1)
95public IDisposable BeginScope<TState>(TState state)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
ListLoggerFactory.cs (1)
98public IDisposable BeginScope<TState>(TState state) => null;
Microsoft.AspNetCore.TestHost.Tests (3)
ClientHandlerTests.cs (1)
714public IDisposable BeginScope<TState>(TState state) => new NoopDispoasble();
HttpContextBuilderTests.cs (1)
350public IDisposable BeginScope<TState>(TState state) => new NoopDispoasble();
TestClientTests.cs (1)
739public IDisposable BeginScope<TState>(TState state) => new NoopDispoasble();
Microsoft.CodeAnalysis.LanguageServer (1)
Logging\LspLogMessageLogger.cs (1)
26public IDisposable BeginScope<TState>(TState state) where TState : notnull
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Utilities\TestOutputLogger.cs (1)
21public IDisposable BeginScope<TState>(TState state) where TState : notnull
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLogger.cs (1)
51public 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.AzureAppServices (1)
BatchingLogger.cs (1)
21public IDisposable BeginScope<TState>(TState state)
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)
164public IDisposable BeginScope<TState>(TState state) where TState : notnull
Microsoft.Extensions.Logging.TraceSource (1)
TraceSourceLogger.cs (1)
81public IDisposable BeginScope<TState>(TState state) where TState : notnull
Microsoft.Extensions.Telemetry (1)
Logging\ExtendedLogger.cs (1)
55public 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)
565public IDisposable BeginScope<TState>(TState state) 607public IDisposable? BeginScope<TState>(TState state)
Logging\ExtendedLoggerTests.cs (2)
798public IDisposable? BeginScope<TState>(TState state) 885public IDisposable? BeginScope<TState>(TState state)
Microsoft.Gen.Logging.Generated.Tests (1)
Utils.cs (1)
60public IDisposable? BeginScope<TState>(TState state)
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
52public IDisposable BeginScope<TState>(TState state)
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
52public IDisposable BeginScope<TState>(TState state)
91 references to BeginScope
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.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);
BasicTestApp (1)
PrependMessageLoggerProvider.cs (1)
53=> _underlyingLogger.BeginScope(state);
BuildValidator (12)
CompilationDiff.cs (1)
144using var diagsScope = logger.BeginScope($"Diagnostics");
LocalReferenceResolver.cs (2)
69using var _ = logger.BeginScope("Assembly Location Cache Population"); 159using var _ = _logger.BeginScope($"Populating {fileName}");
Program.cs (9)
141using (logger.BeginScope("Rebuild Search Paths")) 259using var summary = logger.BeginScope("Summary"); 260using (logger.BeginScope("Successful rebuilds")) 268using (logger.BeginScope("Rebuilds with output differences")) 277using (logger.BeginScope("Rebuilds with compilation errors")) 286using (logger.BeginScope("Rebuilds with missing references")) 295using (logger.BeginScope("Rebuilds with other issues")) 329using var _ = logger.BeginScope($"Verifying {originalBinary.FullName} with pdb {pdbPath ?? "[embedded]"}"); 364using var _ = logger.BeginScope("Source Links");
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
164public IDisposable BeginScope<TState>(TState state) => Logger?.BeginScope(state);
IIS.LongTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
164public IDisposable BeginScope<TState>(TState state) => Logger?.BeginScope(state);
IIS.NewHandler.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
164public IDisposable BeginScope<TState>(TState state) => Logger?.BeginScope(state);
IIS.NewShim.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
164public IDisposable BeginScope<TState>(TState state) => Logger?.BeginScope(state);
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
164public IDisposable BeginScope<TState>(TState state) => Logger?.BeginScope(state);
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
164public IDisposable BeginScope<TState>(TState state) => Logger?.BeginScope(state);
Microsoft.AspNetCore.Hosting (1)
Internal\HostingApplicationDiagnostics.cs (1)
487return logger.BeginScope(new HostingLogScope(httpContext));
Microsoft.AspNetCore.Http.Connections (2)
Internal\HttpConnectionDispatcher.cs (2)
77using (_logger.BeginScope(logScope)) 106using (_logger.BeginScope(logScope))
Microsoft.AspNetCore.Http.Connections.Client (2)
HttpConnection.cs (2)
202using (_logger.BeginScope(_logScope)) 252using (_logger.BeginScope(_logScope))
Microsoft.AspNetCore.InternalTesting (1)
Logging\TestLoggerT.cs (1)
19return _logger.BeginScope(state);
Microsoft.AspNetCore.InternalTesting.Tests (1)
LoggedTestXunitTests.cs (1)
148using (Logger.BeginScope("Scope")) { }
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.IntegrationTesting (12)
ApplicationPublisher.cs (1)
23using (logger.BeginScope("dotnet-publish"))
Deployers\ApplicationDeployer.cs (2)
84using (Logger.BeginScope("CleanPublishedOutput")) 147using (Logger.BeginScope("UserAdditionalCleanup"))
Deployers\NginxDeployer.cs (3)
30using (Logger.BeginScope("Deploy")) 134using (Logger.BeginScope("SetupNginx")) 195using (Logger.BeginScope("Dispose"))
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (3)
75using (Logger.BeginScope("Deploy")) 110using (Logger.BeginScope("Dispose")) 194using (Logger.BeginScope($"RunScript:{serverAction}"))
Deployers\SelfHostDeployer.cs (3)
34using (Logger.BeginScope("SelfHost.Deploy")) 80using (Logger.BeginScope("StartSelfHost")) 207using (Logger.BeginScope("SelfHost.Dispose"))
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (5)
IISDeployer.cs (2)
75using (Logger.BeginScope("Deployment")) 215using (Logger.BeginScope("StartIIS"))
IISExpressDeployer.cs (3)
45using (Logger.BeginScope("Deployment")) 154using (Logger.BeginScope("StartIISExpress")) 401using (Logger.BeginScope("Dispose"))
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\KestrelTrace.cs (1)
30public IDisposable? BeginScope<TState>(TState state) where TState : notnull => _generalLogger.BeginScope(state);
Microsoft.AspNetCore.SignalR.Client.Core (6)
HubConnection.cs (6)
261using (_logger.BeginScope(_logScope)) 314using (_logger.BeginScope(_logScope)) 330using (_logger.BeginScope(_logScope)) 430using (_logger.BeginScope(_logScope)) 452using (_logger.BeginScope(_logScope)) 471using (_logger.BeginScope(_logScope))
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
src\Shared\SignalR\WrappingLoggerFactory.cs (1)
97return _logger.BeginScope(state);
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
111using 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.Telemetry (1)
Logging\Import\LoggerInformation.cs (1)
82return Logger.BeginScope<TState>(state);
Microsoft.Extensions.Telemetry.Tests (19)
Logging\ExtendedLoggerFactoryTests.cs (11)
212using (logger.BeginScope("Scope 1")) 219using (logger.BeginScope("Scope 2")) 356using (logger.BeginScope("Scope1")) 363using (logger.BeginScope("Scope2")) 368using (logger.BeginScope("Scope3")) 439using (logger.BeginScope("Scope")) 441using (logger.BeginScope("Scope2")) 470var scope = logger.BeginScope("Scope"); 482var scope = logger.BeginScope("Scope"); 497using (logger.BeginScope("Scope")) 499using (logger.BeginScope("Scope2"))
Logging\ExtendedLoggerTests.cs (8)
651using (newLogger.BeginScope("Scope")) 657logger.Verify(l => l.BeginScope(It.IsAny<object>()), Times.Never); 677using (newLogger.BeginScope("Scope")) 683logger.Verify(l => l.BeginScope(It.IsAny<object>()), Times.Never); 709using (newLogger.BeginScope("Scope")) 715logger.Verify(l => l.BeginScope(It.IsAny<object>()), Times.Never); 744using (newLogger.BeginScope("Scope")) 754using (newLogger.BeginScope("Scope"))
Microsoft.Gen.Logging.Generated.Tests (1)
Utils.cs (1)
61where TState : notnull => _logger.BeginScope(state);