how can i receive and notify to the agent his skills update?
I tried using the IConfigurationService in the following way:
this.configurationService.PropertyChanged += new PropertyChangedEventHandler(notifyPropertyChanged_PropertyChanged);
but the method notifyPropertyChanged_PropertyChanged is not invoked for the skills update.
I saw that the IConfigurationService has the following methods:
Talking seriously…how to apply your advise? how to retrieve the agent group? my problem is that i need a notification of this update and not a simple retriev…
My biggest problem is that i dont understand how to invoke the SubscribeNotification method…what are the input parameter?
[ol]- ICfgObject CfgObject…Is it my agent’s skill? is it a new instance of CfgSkill in my case??
object asker…What is it? a new EventHandler? My own class? a reference of something else?
the Subscription return value…what to do with it?[/ol]
Usually you convert them to IMessages and then you can work with them. but now…a listener to an update…CfgServer propagates changes to all its clients. Maybe see what CfgServer sends when you do that change and try to capture that.
The fact you have a query means it limits what it listens…shouldn’t be that…
I didn´t konw that you can subscribe to skill events. Something new i know now
I needed to do someting similar, Refresh Skills on Agent. I did it working with events of WD. For example on makecallcommand, i read directly the configuration of the agent on configuration manager to see what groups has the agent. The IAgent on constructor was not refreshing and i did it reading on configuration.
I don´t know if it´s usefull for you, i think that i can not help you
Notifications about configuration changes are distributed to the IWS/WDE client by default (driven by option). So, there must be existing part, where you are able to get these information. Just have never tried it.