SchemeMapped() 공개 정적인 메소드

public static SchemeMapped ( Scheme scheme ) : SchemeResult
scheme Scheme
리턴 SchemeResult
예제 #1
0
        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());
        }
예제 #2
0
 public Task <SchemeResult> MapAsync(Type type, MethodInfo method)
 {
     return(SchemeResult.SchemeMapped(Scheme.NotSpecified).AsCompletedTask());
 }