示例#1
0
 protected abstract Task <object> DoRequest(CobRequestContext context, Type realType, object state);
示例#2
0
        protected internal Task <object> MatchRealType(CobRequestContext context, Func <Type, Task <object> > action)
        {
            var realReturnType = TaskHelper.GetUnderlyingType(context.ReturnType, out bool isTask);//去掉task/void等泛型

            return(action(realReturnType));
        }
示例#3
0
 public Task <object> DoRequest(CobRequestContext context, object state)
 {
     return(MatchRealType(context, realType => DoRequest(context, realType, state)));
 }