ServiceStack.HttpRequestExtensions.GetOperationType C# (CSharp) Метод

GetOperationType() публичный статический Метод

public static GetOperationType ( this req ) : Type
req this
Результат System.Type
        public static Type GetOperationType(this IRequest req)
        {
            if (req.Dto != null)
            {
                var dtoType = req.Dto.GetType();
                return dtoType.IsArray
                    ? dtoType.GetElementType()
                    : dtoType;
            }
            return req.OperationName != null
                ? HostContext.Metadata.GetOperationType(req.OperationName)
                : null;
        }