Пример #1
0
        internal override string Request(NativeClientHandle clientHandle)
        {
            string requestId = null;

            if (Bundle != null)
            {
                NativeClient.SendCustomCommandBundle(clientHandle, ReceiverId, Action, Bundle.SafeBundleHandle, out requestId).
                ThrowIfError("Failed to send custom command.");
            }
            else
            {
                NativeClient.SendCustomCommand(clientHandle, ReceiverId, Action, IntPtr.Zero, out requestId).
                ThrowIfError("Failed to send custom command.");
            }

            return(requestId);
        }