示例#1
0
        //This is internal because other classes will use this client to make
        //thrift calls to get their required information
        //this is hugely important

        public LineClient()
        {
            //Queue of operations for dispatch
            Operations = new Queue <Operation>();

            //This shit is for serialization
            _thriftTransport = new LineTransport(Protocol.UserAgent, Protocol.LineApplication);
            TProtocol thriftProtocol = new TCompactProtocol(_thriftTransport);

            //This is the heart and soul of all the function calls here.
            Client = new TalkService.Client(thriftProtocol);

            //This reads for operations/events and reports them where they belong
            _operationHandler = new OperationHandler(this);
        }
示例#2
0
        //This is internal because other classes will use this client to make
        //thrift calls to get their required information
        //this is hugely important

        public LineClient()
        {
            //Queue of operations for dispatch
            Operations = new Queue<Operation>();
            
            //This shit is for serialization
            _thriftTransport = new LineTransport(Protocol.UserAgent, Protocol.LineApplication);
            TProtocol thriftProtocol = new TCompactProtocol(_thriftTransport);

            //This is the heart and soul of all the function calls here.
            Client = new TalkService.Client(thriftProtocol);

            //This reads for operations/events and reports them where they belong
            _operationHandler = new OperationHandler(this);
        }