Ejemplo n.º 1
0
        public async Task PushToDockerRegistryAsync(string configuration, string username, string password, Action <string, int> PushCompleted)
        {
            Progress progress  = null;
            var      taskBuild = CreateProgressTask(ref progress, PushCompleted);

            var task = api.ApplicationPushToRegistryAsync(this.Id, configuration, username, password, progress.Id);
            await Task.Run(taskBuild);

            await task; // in this way exceptions will be generated
        }