/*--------------------------------------------------------------------------------------------*/ private static FabServiceOperation NewOperation(string pName, Type pRespType, ApiEntry.Method pMethod = ApiEntry.Method.Get) { var op = new FabServiceOperation(); op.Name = pName; op.Uri = "/" + pName.Replace(" ", ""); op.Method = (pMethod + "").ToUpper(); op.Return = ApiLang.TypeName(pRespType); return(op); }
//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ private static FabServiceOperation NewOperation <T>(string pName, ApiEntry.Method pMethod = ApiEntry.Method.Get) { return(NewOperation(pName, typeof(T), pMethod)); }