We have some custom tasks that we've built. In moving to 3.5, it appears that some properties were possibly deprecated?
'VaultClientOperationsLib.ClientInstance' does not contain a definition for 'NewMessage'
'VaultClientOperationsLib.ClientInstance' does not contain a definition for 'NewBulkMessages'
Please advice what we should be using for this (_ci is ClientInstance)
_ci.NewMessage += new NewMessageEventHandler(NewMessageHandler);
_ci.NewBulkMessages += new NewBulkMessagesEventHandler(NewBulkMessagesHandler);
VaultClientOperationsLib changes in 3.5?
Moderator: SourceGear
We changed the way that events work in 3.5. You'll need to do something like this in your constructor:
and define two HandleEvent methods that will get called back by the event engine
Code: Select all
_ci.EventEngine.addListener(client, typeof(MessageEvent));
_ci.EventEngine.addListener(client, typeof(BulkMessageEvent));
Code: Select all
public void HandleEvent(MessageEvent e)
{
}
public void HandleEvent(BulkMessageEvent e)
{
}