/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Mvc/shared/Mvc.Views.TestCommon/TestFileChangeToken.cs
32 строки
750 B
Brennan
Add rule to seal internal and private types (#41457)
05 май 2022, 19:26
Не верифицирован
05 май 2022, 19:26
3ea008c
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Extensions.Primitives; public class TestFileChangeToken : IChangeToken { public TestFileChangeToken(string filter = "") { Filter = filter; } public bool ActiveChangeCallbacks => false; public bool HasChanged { get; set; } public string Filter { get; } public IDisposable RegisterChangeCallback(Action<object> callback, object state) { return new NullDisposable(); } private sealed class NullDisposable : IDisposable { public void Dispose() { } } public override string ToString() => Filter; }