public override void Attach(ServiceParameterBufferBase spb, string dataSource, int port, string service, byte[] cryptKey)
    {
        FesDatabase.CheckCryptKeyForSupport(cryptKey);

        ClearStatusVector();

        var svcHandle = Handle;

        _fbClient.isc_service_attach(
            _statusVector,
            (short)service.Length,
            service,
            ref svcHandle,
            spb.Length,
            spb.ToArray());

        ProcessStatusVector(_statusVector);

        Handle = svcHandle;
    }
        public void Attach(ServiceParameterBuffer spb, string dataSource, int port, string service)
        {
            ClearStatusVector();

            int svcHandle = Handle;

            _fbClient.isc_service_attach(
                _statusVector,
                (short)service.Length,
                service,
                ref svcHandle,
                spb.Length,
                spb.ToArray());

            ProcessStatusVector(_statusVector);

            _handle = svcHandle;
        }
        public void Attach(ServiceParameterBuffer spb, string dataSource, int port, string service)
        {
            // Clear the status vector
            ClearStatusVector();

            int svcHandle = Handle;

            _fbClient.isc_service_attach(
                _statusVector,
                (short)service.Length,
                service,
                ref svcHandle,
                (short)spb.Length,
                spb.ToArray());

            // Parse status	vector
            ParseStatusVector(_statusVector);

            // Update status vector
            _handle = svcHandle;
        }
Beispiel #4
0
        public override Task Attach(ServiceParameterBuffer spb, string dataSource, int port, string service, byte[] cryptKey, AsyncWrappingCommonArgs async)
        {
            FesDatabase.CheckCryptKeyForSupport(cryptKey);

            ClearStatusVector();

            var svcHandle = Handle;

            _fbClient.isc_service_attach(
                _statusVector,
                (short)service.Length,
                service,
                ref svcHandle,
                spb.Length,
                spb.ToArray());

            ProcessStatusVector(_statusVector);

            Handle = svcHandle;

            return(Task.CompletedTask);
        }