/// <summary>Snippet for UpdateProfileAsync</summary> public async Task UpdateProfileAsync() { // Snippet: UpdateProfileAsync(Profile, CallSettings) // Additional: UpdateProfileAsync(Profile, CancellationToken) // Create client ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync(); // Initialize request argument(s) Profile profile = new Profile(); // Make the request Profile response = await profileServiceClient.UpdateProfileAsync(profile); // End snippet }
/// <summary>Snippet for UpdateProfileAsync</summary> public async Task UpdateProfileAsync_RequestObject() { // Snippet: UpdateProfileAsync(UpdateProfileRequest,CallSettings) // Additional: UpdateProfileAsync(UpdateProfileRequest,CancellationToken) // Create client ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync(); // Initialize request argument(s) UpdateProfileRequest request = new UpdateProfileRequest { Profile = new Profile(), }; // Make the request Profile response = await profileServiceClient.UpdateProfileAsync(request); // End snippet }