OpenHome.Net.ControlPoint.Proxies.CpProxyOpenhomeOrgTestBasic1.BeginEchoString C# (CSharp) Method

BeginEchoString() public method

Invoke the action asynchronously
Returns immediately and will run the client-specified callback when the action later completes. Any output arguments can then be retrieved by calling EndEchoString().
public BeginEchoString ( String aValue, CallbackAsyncComplete aCallback ) : void
aValue String
aCallback CallbackAsyncComplete Delegate to run when the action completes. /// This is guaranteed to be run but may indicate an error
return void
        public void BeginEchoString(String aValue, CallbackAsyncComplete aCallback)
        {
            Invocation invocation = iService.Invocation(iActionEchoString, aCallback);
            int inIndex = 0;
            invocation.AddInput(new ArgumentString((ParameterString)iActionEchoString.InputParameter(inIndex++), aValue));
            int outIndex = 0;
            invocation.AddOutput(new ArgumentString((ParameterString)iActionEchoString.OutputParameter(outIndex++)));
            iService.InvokeAction(invocation);
        }