Junior.Route.AutoRouting.NameMappers.NameResult.NameNotMapped C# (CSharp) Method

NameNotMapped() public static method

public static NameNotMapped ( ) : NameResult
return NameResult
        public static NameResult NameNotMapped()
        {
            return new NameResult(NameResultType.NameNotMapped);
        }

Usage Example

        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());
        }
All Usage Examples Of Junior.Route.AutoRouting.NameMappers.NameResult::NameNotMapped