public Task PublishAppAsync(string appId, string versionId, CancellationToken cancellationToken) { var request = new ApplicationPublishObjectWithDirectVersionPublish(); request.IsStaging = this.LuisConfiguration.IsStaging; request.VersionId = this.LuisConfiguration.VersionId; request.DirectVersionPublish = this.LuisConfiguration.DirectVersionPublish; return(this.AuthoringClient.Apps.PublishAsync(Guid.Parse(appId), request, cancellationToken)); }
public Task PublishAppAsync(string appId, string versionId, CancellationToken cancellationToken) { #if LUIS_V3 var request = new ApplicationPublishObjectWithDirectVersionPublish(); #else var request = new ApplicationPublishObject(); #endif request.IsStaging = this.LuisConfiguration.IsStaging; request.VersionId = this.LuisConfiguration.VersionId; #if LUIS_V2 request.Region = this.LuisConfiguration.EndpointRegion; #endif #if LUIS_V3 request.DirectVersionPublish = this.LuisConfiguration.DirectVersionPublish; #endif return(this.AuthoringClient.Apps.PublishAsync(Guid.Parse(appId), request, cancellationToken)); }