Ejemplo n.º 1
0
        private ApplicationConnectionManager(ITransportationLayer transportationLayer,
                                             ProtocolTree protocolTree, FTConnectionController ft) : this(transportationLayer)
        {
            this.ft = ft;

            tree.Register(ft);
            tree.Entry(ft);
            tree.Connect(ft, protocolTree);

            ft.ConnectionLost += () =>
            {
                CloseConnectionAndCleanUp();
                ConnectionLost?.Invoke();
            };
        }
Ejemplo n.º 2
0
 public ApplicationConnectionManager(ITransportationLayer transportationLayer, ProtocolTree protocolTree,
                                     IStateDataProvider stateDataProvider, int heartBeatTimeInterval, int silenceTimeLimit)
     : this(transportationLayer, protocolTree, FTConnectionController.CreateStatefulSession(
                transportationLayer, stateDataProvider, heartBeatTimeInterval, silenceTimeLimit))
 {
 }