/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Logging.AzureAppServices/test/TestBlobSink.cs
30 строк
957 B
Pranav K
Use file scoped namespaces (#38076)
06 ноя 2021, 03:52
Не верифицирован
06 ноя 2021, 03:52
a450cb6
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Threading; using System.Threading.Tasks; namespace Microsoft.Extensions.Logging.AzureAppServices.Test; internal class TestBlobSink : BlobLoggerProvider { internal ManualIntervalControl IntervalControl { get; } = new ManualIntervalControl(); public TestBlobSink(Func<string, ICloudAppendBlob> blobReferenceFactory) : base( new OptionsWrapperMonitor<AzureBlobLoggerOptions>(new AzureBlobLoggerOptions() { ApplicationInstanceId = "42", ApplicationName = "appname", BlobName = "filename", IsEnabled = true }), blobReferenceFactory) { } protected override Task IntervalAsync(TimeSpan interval, CancellationToken cancellationToken) { return IntervalControl.IntervalAsync(); } }