示例#1
0
文件: Client.cs 项目: jaras/OCTGN
 public Client(IClientConfig config, Version octgnVersion)
 {
     _config = config;
     _clientAuthenticator = new ClientAuthenticator();
     _client = new Octgn.Communication.Client(_config.CreateConnection(_config.ChatHost), new Octgn.Communication.Serializers.XmlSerializer(), _clientAuthenticator);
     _client.InitializeSubscriptionModule();
     _client.InitializeHosting(octgnVersion);
 }
示例#2
0
 protected override IConnection CreateConnection()
 => _config.CreateConnection(_config.ChatHost);