public FastTunnelClient(ILogger <FastTunnelClient> logger, NewCustomerHandler newCustomerHandler, NewSSHHandler newSSHHandler, LogHandler logHandler, ClientHeartHandler clientHeartHandler) { _logger = logger; _newCustomerHandler = newCustomerHandler; _newSSHHandler = newSSHHandler; _logHandler = logHandler; _clientHeartHandler = clientHeartHandler; initailTimer(); }
public FastTunnelClient( ILogger <FastTunnelClient> logger, HttpRequestHandler newCustomerHandler, NewSSHHandler newSSHHandler, LogHandler logHandler, IConfiguration configuration, ClientHeartHandler clientHeartHandler) { _logger = logger; _newCustomerHandler = newCustomerHandler; _newSSHHandler = newSSHHandler; _logHandler = logHandler; _clientHeartHandler = clientHeartHandler; _configuration = configuration; timer_heart = new System.Timers.Timer(); timer_heart.AutoReset = false; timer_heart.Interval = heartInterval; timer_heart.Elapsed += HeartElapsed; }