// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Concurrent; namespace Microsoft.Extensions.Logging.Testing { public interface ITestSink { event Action MessageLogged; event Action ScopeStarted; Func WriteEnabled { get; set; } Func BeginEnabled { get; set; } IProducerConsumerCollection Scopes { get; set; } IProducerConsumerCollection Writes { get; set; } void Write(WriteContext context); void Begin(BeginScopeContext context); } }