Esempio n. 1
0
        public HyperSocket(SocketOptions options)
        {
            Options = options;

            _factory          = new HyperletterFactory(BuildContainer());
            _letterDispatcher = _factory.CreateLetterDispatcher();

            _heartbeat = new Timer(Heartbeat, null, -1, -1);
            _heartbeat.Change(Options.Heartbeat.Interval, Options.Heartbeat.Interval);
        }
Esempio n. 2
0
        public HyperSocket(SocketOptions options)
        {
            Options = options;

            _factory = new HyperletterFactory(BuildContainer());
            _letterDispatcher = _factory.CreateLetterDispatcher();

            _heartbeat = new Timer(Heartbeat);
            _heartbeat.Change(Options.Heartbeat.Interval, Options.Heartbeat.Interval);
        }