| File: test\Generators\Microsoft.Gen.Logging\TestClasses\MiscTestExtensions.cs | Web Access |
| Project: src\test\Generators\Microsoft.Gen.Logging\Generated\Microsoft.Gen.Logging.Generated.Tests.csproj (Microsoft.Gen.Logging.Generated.Tests) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Logging; #pragma warning disable SA1402 // File may only contain a single type #pragma warning disable SA1403 // File may only contain a single namespace // Used to test use outside of a namespace internal static partial class NoNamespace { [LoggerMessage(0, LogLevel.Critical, "Could not open socket to `{hostName}`")] public static partial void CouldNotOpenSocket(ILogger logger, string hostName); } namespace Level1 { // used to test use inside a one-level namespace internal static partial class OneLevelNamespace { [LoggerMessage(0, LogLevel.Critical, "Could not open socket to `{hostName}`")] public static partial void CouldNotOpenSocket(ILogger logger, string hostName); } } namespace Level1 { namespace Level2 { // used to test use inside a two-level namespace internal static partial class TwoLevelNamespace { [LoggerMessage(0, LogLevel.Critical, "Could not open socket to `{hostName}`")] public static partial void CouldNotOpenSocket(ILogger logger, string hostName); } } }