Exemplo n.º 1
0
        public TypedHyperSocket(TypedSocketOptions options, ITypedHandlerFactory handlerFactory, ITransportSerializer serializer)
        {
            _options = options;
            _socket  = new HyperSocket(options.Socket);
            HookEvents();

            _handlerFactory = handlerFactory;

            _cleanUpTimer          = new Timer(options.AnswerTimeout.TotalMilliseconds / 4);
            _cleanUpTimer.Elapsed += CleanUp;
            _cleanUpTimer.Start();

            Serializer = serializer;
        }
Exemplo n.º 2
0
 public TypedHyperSocket(ITypedHandlerFactory handlerFactory, ITransportSerializer serializer) : this(new TypedSocketOptions(), handlerFactory, serializer)
 {
 }
Exemplo n.º 3
0
 public HandlerRegistration(TypedHyperSocket socket, ITypedHandlerFactory handlerFactory, ITransportSerializer serializer)
 {
     _socket         = socket;
     _handlerFactory = handlerFactory;
     _serializer     = serializer;
 }