public async Task CreateGroupAsync()
        {
            // Snippet: CreateGroupAsync(string,Group,CallSettings)
            // Additional: CreateGroupAsync(string,Group,CancellationToken)
            // Create client
            GroupServiceClient groupServiceClient = GroupServiceClient.Create();
            // Initialize request argument(s)
            string formattedName = GroupServiceClient.FormatProjectName("[PROJECT]");
            Group  group         = new Group();
            // Make the request
            Group response = await groupServiceClient.CreateGroupAsync(formattedName, group);

            // End snippet
        }
Ejemplo n.º 2
0
        /// <summary>Snippet for CreateGroupAsync</summary>
        public async Task CreateGroupAsync_RequestObject()
        {
            // Snippet: CreateGroupAsync(CreateGroupRequest,CallSettings)
            // Create client
            GroupServiceClient groupServiceClient = await GroupServiceClient.CreateAsync();

            // Initialize request argument(s)
            CreateGroupRequest request = new CreateGroupRequest
            {
                ProjectName = new ProjectName("[PROJECT]"),
                Group       = new Group(),
            };
            // Make the request
            Group response = await groupServiceClient.CreateGroupAsync(request);

            // End snippet
        }