ServiceStack.HttpRequestExtensions.GetOperationType C# (CSharp) Method

GetOperationType() public static method

public static GetOperationType ( this req ) : Type
req this
return 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;
        }