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

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