public Task <SchemeResult> MapAsync(Type type, MethodInfo method) { type.ThrowIfNull("type"); method.ThrowIfNull("method"); SchemeAttribute attribute = method.GetCustomAttributes(typeof(SchemeAttribute), false).Cast <SchemeAttribute>().SingleOrDefault(); return((attribute != null ? SchemeResult.SchemeMapped(attribute.Scheme) : SchemeResult.SchemeNotMapped()).AsCompletedTask()); }
public Task <SchemeResult> MapAsync(Type type, MethodInfo method) { return(SchemeResult.SchemeMapped(Scheme.NotSpecified).AsCompletedTask()); }