/// <summary> /// Create an asynchronous change set. /// </summary> /// <returns>The change set creation response.</returns> private async Task <ChangeSetResponseInitiated> CreateAsyncChangeset() { var createChangeSetAsyncRequest = new CreateChangeSetAsyncRequest { }; Console.WriteLine("Creating asynchronous change set..."); return(await this.psetClient.CreateChangeSetAsync(createChangeSetAsyncRequest).ConfigureAwait(false)); }
/// <summary> /// Create an asynchronous change set. /// </summary> /// <param name="parentTree">The tree for which to create the change set.</param> /// <returns>The change set creation response.</returns> private async Task <ChangeSetResponseInitiated> CreateAsyncChangeset(Tree parentTree) { if (parentTree != null) { var createChangeSetAsyncRequest = new CreateChangeSetAsyncRequest { ForestId = parentTree.ForestId, TreeId = parentTree.Id, }; Console.WriteLine("Creating asynchronous change set..."); return(await this.orgClient.CreateChangeSetAsync(createChangeSetAsyncRequest).ConfigureAwait(false)); } return(null); }