Interface IFeatureSet
Represents a set of features available for the current request.
public interface IFeatureSet
- Extension Methods
Methods
GetFeature<T>()
Returns a feature of the specified type.
T GetFeature<T>() where T : class
Returns
- T
A feature of the specified type, if available; otherwise, null.
Type Parameters
T
The type of the feature.
RemoveFeature<T>()
Removes a feature of the specified type.
void RemoveFeature<T>() where T : class
Type Parameters
T
The type of the feature.
SetFeature<T>(T)
Adds or replaces a feature of the specified type.
void SetFeature<T>(T feature) where T : class
Parameters
feature
TThe feature to add or replace.
Type Parameters
T
The type of the feature.