VaultClientOperationsLib changes in 3.5?

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
brydon
Posts: 18
Joined: Mon Apr 18, 2005 9:15 am

VaultClientOperationsLib changes in 3.5?

Post by brydon » Tue Aug 15, 2006 8:18 am

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);

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Tue Aug 15, 2006 8:50 am

We changed the way that events work in 3.5. You'll need to do something like this in your constructor:

Code: Select all

_ci.EventEngine.addListener(client, typeof(MessageEvent));
_ci.EventEngine.addListener(client, typeof(BulkMessageEvent));
and define two HandleEvent methods that will get called back by the event engine

Code: Select all

public void HandleEvent(MessageEvent e)
{
}
public void HandleEvent(BulkMessageEvent e)
{
}

Post Reply