Exemplo n.º 1
0
        public RemoveCommand(SeqConnectionFactory connectionFactory)
        {
            _connectionFactory = connectionFactory ?? throw new ArgumentNullException(nameof(connectionFactory));

            _entityIdentity = Enable(new EntityIdentityFeature("API key", "remove"));
            _connection     = Enable <ConnectionFeature>();
        }
Exemplo n.º 2
0
        public ListCommand(SeqConnectionFactory connectionFactory, SeqCliConfig config)
        {
            if (config == null)
            {
                throw new ArgumentNullException(nameof(config));
            }
            _connectionFactory = connectionFactory ?? throw new ArgumentNullException(nameof(connectionFactory));

            _entityIdentity = Enable(new EntityIdentityFeature("signal", "list"));
            _output         = Enable(new OutputFormatFeature(config.Output));
            _connection     = Enable <ConnectionFeature>();
        }