Пример #1
0
        protected override ServerPeerBase CreateServerPeer(InitResponse initResponse, object state)
        {
            var peerInfo   = state as PeerInfo;
            var peerConfig = new PeerConfig();

            peerConfig.AddConfig(initResponse);
            peerConfig.AddConfig(peerInfo);
            return(PeerFactory.CreatePeer <ServerPeerBase>(peerConfig));
        }
Пример #2
0
        protected override PeerBase CreatePeer(InitRequest initRequest)
        {
            var peerConfig = new PeerConfig();

            peerConfig.AddConfig(initRequest);
            return(PeerFactory.CreatePeer <PeerBase>(peerConfig));
        }