internal static string GenerateUri(Content content, string operationName) { var resource = string.IsNullOrEmpty(content.ContentHandler.ParentPath) ? Configuration.Services.ODataAndRoot : $"{Configuration.Services.ODataServiceToken}" + $"{ODataMiddleware.GetODataPath(content.ContentHandler.ParentPath, content.Name)}"; return($"/{resource}/{operationName}"); }
protected string GetSelfUrl(Content content) { return(string.Concat("/", Configuration.Services.ODataServiceToken, ODataMiddleware.GetEntityUrl(content.Path))); }
public static OperationCallingContext GetMethodByRequest(Content content, string methodName, string requestBody) { return(GetMethodByRequest(content, methodName, ODataMiddleware.ReadToJson(requestBody), null)); }