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

SetPropertyLastChangeChanged() public method

Set a delegate to be run when the LastChange state variable changes.
Callbacks may be run in different threads but callbacks for a CpProxyRaumfeldComConfigService1 instance will not overlap.
public SetPropertyLastChangeChanged ( System aLastChangeChanged ) : void
aLastChangeChanged System The delegate to run when the state variable changes
return void
        public void SetPropertyLastChangeChanged(System.Action aLastChangeChanged)
        {
            lock (iPropertyLock)
            {
                iLastChangeChanged = aLastChangeChanged;
            }
        }

Usage Example

Example #1
0
        public CpConfigService_OhNet(OpenHome.Net.ControlPoint.CpDevice _configDevice)
        {
            _configDevice.GetAttribute("Upnp.FriendlyName", out FriendlyName);
                _configDevice.GetAttribute("Upnp.DeviceXml", out DeviceXml);
                _configDevice.GetAttribute("Upnp.Location", out Location);

                configService = new OpenHome.Net.ControlPoint.Proxies.CpProxyRaumfeldComConfigService1(_configDevice);
                //configService.SetPropertyInitialEvent(propertyChanged);
                configService.SetPropertyChanged(propertyChanged);
                configService.SetPropertyLastChangeChanged(propertyChanged);

                configService.Subscribe();
        }