public override void Start(ServiceParameterBufferBase spb)
    {
        ClearStatusVector();

        var svcHandle = Handle;
        var reserved  = 0;

        _fbClient.isc_service_start(
            _statusVector,
            ref svcHandle,
            ref reserved,
            spb.Length,
            spb.ToArray());

        ProcessStatusVector(_statusVector);
    }
        public void Start(ServiceParameterBuffer spb)
        {
            // Clear the status vector
            ClearStatusVector();

            int svcHandle = Handle;
            int reserved  = 0;

            _fbClient.isc_service_start(
                _statusVector,
                ref svcHandle,
                ref reserved,
                (short)spb.Length,
                spb.ToArray());

            // Parse status	vector
            ParseStatusVector(_statusVector);
        }
Esempio n. 3
0
        public override Task Start(ServiceParameterBuffer spb, AsyncWrappingCommonArgs async)
        {
            ClearStatusVector();

            var svcHandle = Handle;
            var reserved  = 0;

            _fbClient.isc_service_start(
                _statusVector,
                ref svcHandle,
                ref reserved,
                spb.Length,
                spb.ToArray());

            ProcessStatusVector(_statusVector);

            return(Task.CompletedTask);
        }