/// <summary>Snippet for Method1Async</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task Method1Async() { // Create client KeywordsClient keywordsClient = await KeywordsClient.CreateAsync(); // Initialize request argument(s) string @event = "items/[ITEM_ID]"; int @switch = 0; Enum @void = Enum.Void; string request = ""; string types = ""; // Make the request Response response = await keywordsClient.Method1Async(@event, @switch, @void, request, types); }
/// <summary>Snippet for Method1Async</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task Method1RequestObjectAsync() { // Create client KeywordsClient keywordsClient = await KeywordsClient.CreateAsync(); // Initialize request argument(s) Request request = new Request { EventAsResourceName = ResourceName.FromItem("[ITEM_ID]"), Switch = 0, Void = Enum.Void, Request_ = "", Types_ = "", }; // Make the request Response response = await keywordsClient.Method1Async(request); }
/// <summary>Snippet for Method1Async</summary> public async Task Method1Async() { // Snippet: Method1Async(string, int, Enum, string, string, CallSettings) // Additional: Method1Async(string, int, Enum, string, string, CancellationToken) // Create client KeywordsClient keywordsClient = await KeywordsClient.CreateAsync(); // Initialize request argument(s) string @event = "items/[ITEM_ID]"; int @switch = 0; Enum @void = Enum.Void; string request = ""; string types = ""; // Make the request Response response = await keywordsClient.Method1Async(@event, @switch, @void, request, types); // End snippet }
/// <summary>Snippet for Method1Async</summary> public async Task Method1RequestObjectAsync() { // Snippet: Method1Async(Request, CallSettings) // Additional: Method1Async(Request, CancellationToken) // Create client KeywordsClient keywordsClient = await KeywordsClient.CreateAsync(); // Initialize request argument(s) Request request = new Request { EventAsResourceName = ResourceName.FromItem("[ITEM_ID]"), Switch = 0, Void = Enum.Void, Request_ = "", Types_ = "", }; // Make the request Response response = await keywordsClient.Method1Async(request); // End snippet }