public MiddlewareNode <T> AddMiddleware <T>(BehaviorCategory category = BehaviorCategory.Process) where T : class, IOwinMiddleware { var node = new MiddlewareNode <T>(); AddMiddleware(node); return(node); }
/// <summary> /// Initializes a new instance of the <see cref="BehaviorCategoryAttribute"/> class. /// </summary> /// <param name="category">The behavior category.</param> public BehaviorCategoryAttribute(BehaviorCategory category) { this.Category = category; }
public MiddlewareNode Category(BehaviorCategory category) { _category = category; return(this); }