C# Class Flatwhite.Provider.DynamicAttributeProvider

A dynamic attribute provider to provide extra attributes to method without having to decorate the attributes on class or method
Inheritance: IAttributeProvider
Show file Open project: vanthoainguyen/Flatwhite Class Usage Examples

Public Methods

Method Description
DynamicAttributeProvider ( IAttributeProvider original, Attribute>.Func extraAttributes ) : System

Initialize a dynamic attribute provider with extra attributes for selected method info

GetAttributes ( MethodInfo methodInfo, object>.IDictionary invocationContext ) : IEnumerable

Get all attributes, attributes returned by extraAttributes factory will have more priority than

Method Details

DynamicAttributeProvider() public method

Initialize a dynamic attribute provider with extra attributes for selected method info
public DynamicAttributeProvider ( IAttributeProvider original, Attribute>.Func extraAttributes ) : System
original IAttributeProvider
extraAttributes Attribute>.Func
return System

GetAttributes() public method

Get all attributes, attributes returned by extraAttributes factory will have more priority than
public GetAttributes ( MethodInfo methodInfo, object>.IDictionary invocationContext ) : IEnumerable
methodInfo System.Reflection.MethodInfo
invocationContext object>.IDictionary
return IEnumerable