コード例 #1
0
        /// <summary>
        /// Sends the command.
        /// </summary>
        public void sendRemoveCommand(string handlerToClose)
        {
            string[] args = { };
            CommandReceivedEventArgs eventArgs =
                new CommandReceivedEventArgs((int)CommandEnum.RemoveHandler, args, handlerToClose);

            CommandRecievedEvent?.Invoke(this, eventArgs);
        }
コード例 #2
0
ファイル: ImageServer.cs プロジェクト: shulajz/ImageService
        /// <summary>
        /// Sends the command.
        /// </summary>
        public void sendCommand()
        {
            string[] args = { };
            CommandReceivedEventArgs eventArgs =
                new CommandReceivedEventArgs((int)CommandEnum.CloseCommand, args, "*");

            CommandRecievedEvent?.Invoke(this, eventArgs);
        }
コード例 #3
0
 public static void SendCommand(string commandText) => CommandRecievedEvent?.Invoke(commandText);