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

BeginIncrement() 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 EndIncrement().
public BeginIncrement ( uint aValue, CallbackAsyncComplete aCallback ) : void
aValue uint
aCallback CallbackAsyncComplete Delegate to run when the action completes. /// This is guaranteed to be run but may indicate an error
return void
        public void BeginIncrement(uint aValue, CallbackAsyncComplete aCallback)
        {
            Invocation invocation = iService.Invocation(iActionIncrement, aCallback);
            int inIndex = 0;
            invocation.AddInput(new ArgumentUint((ParameterUint)iActionIncrement.InputParameter(inIndex++), aValue));
            int outIndex = 0;
            invocation.AddOutput(new ArgumentUint((ParameterUint)iActionIncrement.OutputParameter(outIndex++)));
            iService.InvokeAction(invocation);
        }