public Task <NameResult> MapAsync(Type type, MethodInfo method)
{
type.ThrowIfNull("type");
method.ThrowIfNull("method");
NameAttribute attribute = method.GetCustomAttributes(typeof(NameAttribute), false).Cast <NameAttribute>().SingleOrDefault();
return((attribute != null ? NameResult.NameMapped(attribute.Name) : NameResult.NameNotMapped()).AsCompletedTask());
}