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)); }
protected override PeerBase CreatePeer(InitRequest initRequest) { var peerConfig = new PeerConfig(); peerConfig.AddConfig(initRequest); return(PeerFactory.CreatePeer <PeerBase>(peerConfig)); }