public LegacyThriftClient(string host, int port)
        {
            if (host == null) throw new ArgumentNullException("host");

            _transport = new TSocket(host, port);
            TProtocol protocol = new TBinaryProtocol(_transport);
            _client = new ThriftFlumeEventServer.Client(protocol);
            _transport.Open();
        }
Esempio n. 2
0
        public LegacyThriftClient(string host, int port)
        {
            if (host == null)
            {
                throw new ArgumentNullException("host");
            }

            _transport = new TSocket(host, port);
            TProtocol protocol = new TBinaryProtocol(_transport);

            _client = new ThriftFlumeEventServer.Client(protocol);
            _transport.Open();
        }