public IReactiveServiceCommandRemoting CreateCommand(CommandVerb verb, CommandNoun noun, string commandText)
        {
            var connection = Connection;

            if (connection == null)
            {
                throw new InvalidOperationException("Inner connection is not set. Did you configure and start the service?");
            }

            return(new ReactiveServiceCommandService(connection.CreateCommand(verb, noun, commandText)));
        }
 /// <summary>
 /// Creates and returns an IReactiveServiceCommand object associated with the connection.
 /// </summary>
 /// <param name="verb">Command verb.</param>
 /// <param name="noun">Command noun.</param>
 /// <param name="commandText">Text command to run against the reactive service.</param>
 /// <returns>Command object associated with the connection.</returns>
 public IReactiveServiceCommand CreateCommand(CommandVerb verb, CommandNoun noun, string commandText)
 {
     return(new Command(this, verb, noun, commandText));
 }
Exemplo n.º 3
0
 public IReactiveServiceCommand CreateCommand(CommandVerb verb, CommandNoun noun, string commandText)
 {
     return(new ReactiveServiceCommandProxy(_connection.CreateCommand(verb, noun, commandText)));
 }