Example #1
0
 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);
 }
Example #2
0
 protected override IConnection CreateConnection()
 => _config.CreateConnection(_config.ChatHost);