internal override async Task <int> RunAsync(CancellationToken cancellationToken)
        {
            var context = await Context
                          .WithAzureLogon()
                          .BuildAsync(cancellationToken);

            var  instance = context.Naming.Instance(Instance, ResourceGroup);
            var  rules    = new AggregatorRules(context.Azure, context.Logger);
            bool ok       = await rules.AddAsync(instance, Name, File, cancellationToken);

            return(ok ? ExitCodes.Success : ExitCodes.Failure);
        }
Exemple #2
0
        internal override async Task <int> RunAsync()
        {
            var context = await Context
                          .WithAzureLogon()
                          .Build();

            var  instance = new InstanceName(Instance);
            var  rules    = new AggregatorRules(context.Azure, context.Logger);
            bool ok       = await rules.AddAsync(instance, Name, File);

            return(ok ? 0 : 1);
        }