/// <summary>Snippet for StartEnvironment</summary> public void StartEnvironmentRequestObject() { // Snippet: StartEnvironment(StartEnvironmentRequest, CallSettings) // Create client CloudShellServiceClient cloudShellServiceClient = CloudShellServiceClient.Create(); // Initialize request argument(s) StartEnvironmentRequest request = new StartEnvironmentRequest { Name = "", AccessToken = "", PublicKeys = { "", }, }; // Make the request Operation <StartEnvironmentResponse, StartEnvironmentMetadata> response = cloudShellServiceClient.StartEnvironment(request); // Poll until the returned long-running operation is complete Operation <StartEnvironmentResponse, StartEnvironmentMetadata> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result StartEnvironmentResponse result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <StartEnvironmentResponse, StartEnvironmentMetadata> retrievedResponse = cloudShellServiceClient.PollOnceStartEnvironment(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result StartEnvironmentResponse retrievedResult = retrievedResponse.Result; } // End snippet }