示例#1
0
        public RemoveCommand(SeqConnectionFactory connectionFactory)
        {
            _connectionFactory = connectionFactory ?? throw new ArgumentNullException(nameof(connectionFactory));

            _userIdentity = Enable(new UserIdentityFeature("remove"));
            _connection   = Enable <ConnectionFeature>();
        }
示例#2
0
        public ListCommand(SeqConnectionFactory connectionFactory, SeqCliConfig config)
        {
            if (config == null)
            {
                throw new ArgumentNullException(nameof(config));
            }
            _connectionFactory = connectionFactory ?? throw new ArgumentNullException(nameof(connectionFactory));

            _userIdentity = Enable(new UserIdentityFeature("list"));
            _output       = Enable(new OutputFormatFeature(config.Output));
            _connection   = Enable <ConnectionFeature>();
        }