예제 #1
0
        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);
        }
예제 #2
0
 public static IList <WebLoadMethod> GetMethods(Type type, LoadSequence sequence)
 {
     return(sequence == LoadSequence.Before ? _getBeforeMethods(type) : _getAfterMethods(type));
 }
예제 #3
0
 public WebLoadAttribute(LoadSequence sequence)
     : this(sequence, LoadDevice.Both)
 {
 }
예제 #4
0
 public WebLoadAttribute(LoadSequence sequence, LoadDevice device)
 {
     this.Sequence = sequence;
     this.Device   = device;
 }