public LogChangeHandler(IRethinkDbConnectionFactory rethinkDbFactory,
                         IOptions <RethinkDbOptions> options,
                         Microsoft.AspNetCore.SignalR.Infrastructure.IConnectionManager signalManager)
 {
     _rethinkDbFactory = rethinkDbFactory;
     _options          = options.Value;
     _signalManager    = signalManager;
 }
Пример #2
0
 public PostsController
 (
     IPostRepository postRepository,
     Microsoft.AspNetCore.SignalR.Infrastructure.IConnectionManager connectionManager
 )
 {
     _postRepository    = postRepository;
     _connectionManager = connectionManager;
 }
Пример #3
0
        public LogChangeHandler(IRethinkDbConnectionFactory rethinkDbFactory,
                                IOptions <RethinkDbOptions> options,
                                ILogger <LogChangeHandler> logger,
                                Microsoft.AspNetCore.SignalR.Infrastructure.IConnectionManager signalManager)
        {
            _rethinkDbFactory = rethinkDbFactory;
            _options          = options.Value;
            _signalManager    = signalManager;
            _logger           = logger;

            //_conn = R.Connection()
            //    .Hostname(_options.Host)
            //    .Port(_options.Port)
            //    .Timeout(_options.Timeout)
            //    .Connect();

            _logger.LogDebug(900, $"Changefeed watcher started.");
        }