private static IList <WebLoadMethod> _getMethods(Type type, LoadSequence sequence) { List <WebLoadMethod> result = new List <WebLoadMethod>(); var methods = type.GetMethods(_flags); foreach (var method in methods) { var attr = method.GetCustomAttribute <WebLoadAttribute>(); if (attr != null && attr.Sequence == sequence) { result.Add(new WebLoadMethod(attr, method)); } } return(result); }
public static IList <WebLoadMethod> GetMethods(Type type, LoadSequence sequence) { return(sequence == LoadSequence.Before ? _getBeforeMethods(type) : _getAfterMethods(type)); }
public WebLoadAttribute(LoadSequence sequence) : this(sequence, LoadDevice.Both) { }
public WebLoadAttribute(LoadSequence sequence, LoadDevice device) { this.Sequence = sequence; this.Device = device; }