internal static InvokeMethodParameters CreateInvokeMethodParameters()

in src/Microsoft.Azure.WebJobs.Extensions.Dapr/DaprExtensionConfigProvider.cs [317:344]


        internal static InvokeMethodParameters CreateInvokeMethodParameters(JsonElement parametersJson)
        {
            var options = new InvokeMethodParameters();

            var propertyBag = parametersJson.ToCaseInsensitiveDictionary();

            if (propertyBag.TryGetValue("appid", out JsonElement appId))
            {
                options.AppId = appId.GetRawText();
            }

            if (propertyBag.TryGetValue("methodname", out JsonElement methodName))
            {
                options.MethodName = methodName.GetRawText();
            }

            if (propertyBag.TryGetValue("body", out JsonElement body))
            {
                options.Body = body;
            }

            if (propertyBag.TryGetValue("httpverb", out JsonElement httpVerb))
            {
                options.HttpVerb = httpVerb.GetRawText();
            }

            return options;
        }