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;
        }