Пример #1
0
        ///GENMHASH:93F5525F475C77754B229151C3005F4B:15FFC6B02454B908A913F74C496F88F7
        public async Task <Microsoft.Azure.Management.ContainerRegistry.Fluent.IRegistryTask> ApplyAsync(CancellationToken cancellationToken = default(CancellationToken))
        {
            //$ RegistryTaskImpl self = this;
            TaskInner taskInner = await this.tasksInner.UpdateAsync(this.resourceGroupName, this.registryName, this.taskName, this.taskUpdateParameters, cancellationToken);

            this.inner = taskInner;
            this.taskUpdateParameters = new TaskUpdateParametersInner();
            this.registryTaskStep     = null;
            this.SetTaskUpdateParameterTriggers();
            return(this);
        }
Пример #2
0
 ///GENMHASH:0B229B5DA9D0B87884D1A598BA51DB29:9D52ABA446E4F5D20EEE5164D16DAA33
 public IRegistryTaskStep RegistryTaskStep()
 {
     if (this.registryTaskStep != null)
     {
         return(this.registryTaskStep);
     }
     if (this.inner.Step is FileTaskStep)
     {
         this.registryTaskStep = new RegistryFileTaskStepImpl(this);
     }
     else if (this.inner.Step is EncodedTaskStep)
     {
         this.registryTaskStep = new RegistryEncodedTaskStepImpl(this);
     }
     else if (this.inner.Step is DockerTaskStep)
     {
         this.registryTaskStep = new RegistryDockerTaskStepImpl(this);
     }
     return(this.registryTaskStep);
 }