예제 #1
0
        public void Query(
            ServiceParameterBuffer spb,
            int requestLength,
            byte[] requestBuffer,
            int bufferLength,
            byte[] buffer)
        {
            // Clear the status vector
            this.ClearStatusVector();

            int svcHandle = this.Handle;
            int reserved  = 0;

            fbClient.isc_service_query(
                this.statusVector,
                ref svcHandle,
                ref reserved,
                (short)spb.Length,
                spb.ToArray(),
                (short)requestLength,
                requestBuffer,
                (short)buffer.Length,
                buffer);

            // Parse status	vector
            this.ParseStatusVector(this.statusVector);
        }
예제 #2
0
        public void Query(
            ServiceParameterBuffer spb,
            int requestLength,
            byte[] requestBuffer,
            int bufferLength,
            byte[] buffer)
        {
            ClearStatusVector();

            int svcHandle = Handle;
            int reserved  = 0;

            _fbClient.isc_service_query(
                _statusVector,
                ref svcHandle,
                ref reserved,
                spb.Length,
                spb.ToArray(),
                (short)requestLength,
                requestBuffer,
                (short)buffer.Length,
                buffer);

            ProcessStatusVector(_statusVector);
        }
예제 #3
0
        public override Task Query(
            ServiceParameterBuffer spb,
            int requestLength,
            byte[] requestBuffer,
            int bufferLength,
            byte[] buffer,
            AsyncWrappingCommonArgs async)
        {
            ClearStatusVector();

            var svcHandle = Handle;
            var reserved  = 0;

            _fbClient.isc_service_query(
                _statusVector,
                ref svcHandle,
                ref reserved,
                spb.Length,
                spb.ToArray(),
                (short)requestLength,
                requestBuffer,
                (short)buffer.Length,
                buffer);

            ProcessStatusVector(_statusVector);

            return(Task.CompletedTask);
        }