public static async Task <CentralinoChannel> Start(CentralinoHost centralinoHost)
        {
            TcpClient     tcpClient     = new TcpClient(centralinoHost.Host, centralinoHost.Port);
            NetworkStream networkStream = tcpClient.GetStream();

            await SkipFirstHyphen(networkStream);

            return(new CentralinoChannel(tcpClient, networkStream));
        }
Example #2
0
 public CentralinoReader(CentralinoConfiguration configuration)
 {
     _host    = new CentralinoHost(configuration.Host, configuration.Port);
     _account = new UserAccount(configuration.Username, configuration.Password);
 }
Example #3
0
 public CentralinoReader(CentralinoHost host, UserAccount account)
 {
     _host    = host;
     _account = account;
 }