OpenHome.Net.ControlPoint.Proxies.CpProxyRaumfeldComConfigService1.BeginGetDevice C# (CSharp) Method

BeginGetDevice() 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 EndGetDevice().
public BeginGetDevice ( String aService, CallbackAsyncComplete aCallback ) : void
aService 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 BeginGetDevice(String aService, CallbackAsyncComplete aCallback)
        {
            Invocation invocation = iService.Invocation(iActionGetDevice, aCallback);
            int inIndex = 0;
            invocation.AddInput(new ArgumentString((ParameterString)iActionGetDevice.InputParameter(inIndex++), aService));
            int outIndex = 0;
            invocation.AddOutput(new ArgumentString((ParameterString)iActionGetDevice.OutputParameter(outIndex++)));
            iService.InvokeAction(invocation);
        }