Exemplo n.º 1
0
        /// <summary>sends generic/undefined command</summary>
        public PopCommandResult GenericCommand(string command, bool isResponseMultiline, out PopResponse[] responses, params string[] arguments)
        {
            RejectNonConnectedState();

              responses = null;

              using (var t = new GenericCommandTransaction(connection, command, isResponseMultiline)) {
            if (arguments != null && 0 < arguments.Length)
              t.RequestArguments["arguments"] = string.Join(" ", arguments);

            if (ProcessTransaction(t).Succeeded)
              responses = t.Result.ReceivedResponses.ToArray();

            return t.Result;
              }
        }
Exemplo n.º 2
0
 /// <summary>sends generic/undefined command</summary>
 public PopCommandResult GenericCommand(string command, out PopResponse[] responses, params string[] arguments)
 {
     return GenericCommand(command, false, out responses, arguments);
 }