private static NonAspectPredicateCollection AddObjectVMethod(this NonAspectPredicateCollection collection) { collection.AddMethod("Equals"); collection.AddMethod("GetHashCode"); collection.AddMethod("ToString"); collection.AddMethod("GetType"); collection.AddMethod("Finalize"); collection.Add(m => m.DeclaringType == typeof(object)); return(collection); }
public static NonAspectPredicateCollection AddNamespace(this NonAspectPredicateCollection collection, string nameSpace) { if (collection == null) { throw new ArgumentNullException(nameof(collection)); } collection.Add(Predicates.ForNameSpace(nameSpace)); return(collection); }
public static NonAspectPredicateCollection AddMethod(this NonAspectPredicateCollection collection, string service, string method) { if (collection == null) { throw new ArgumentNullException(nameof(collection)); } collection.Add(Predicates.ForMethod(service, method)); return(collection); }