// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; namespace Microsoft.AspNet.Http.Features { public interface IFeatureCollection : IEnumerable>, IDisposable { /// /// Indicates if the collection can be modified. /// bool IsReadOnly { get; } /// /// Incremented for each modification and can be used verify cached results. /// int Revision { get; } /// /// Gets or sets a given feature. Setting a null value removes the feature. /// /// /// The requested feature, or null if it is not present. object this[Type key] { get; set; } } }