Exemplo n.º 1
0
        public async Task ExecuteAsync(StartPool command, CancellationToken cancellationToken)
        {
            await repository.SetConfigurationAsync(
                command.ServiceTypeUri,
                command.IsServiceStateful,
                command.HasPersistedState,
                command.MinReplicas,
                command.TargetReplicas,
                command.PartitionScheme,
                command.MaxPoolSize,
                command.IdleServicesPoolSize,
                command.ServicesAllocationBlockSize,
                command.ExpirationQuanta,
                cancellationToken);

            await ensurePoolSize.ExecuteAsync(new EnsurePoolSize(), cancellationToken);
        }