Files Updates by GetOperations.ProcessCommandGet
Moderator: SourceGear
-
- Posts: 18
- Joined: Fri Mar 06, 2009 12:27 pm
Files Updates by GetOperations.ProcessCommandGet
How do I get the list of files that were updated by GetOperations.ProcessCommandGet?
Re: Files Updates by GetOperations.ProcessCommandGet
The list should be coming along with the other messages that you're getting from subscribing to the ServerOperations.GetInstance().UserMessage event that I mentioned before.
If you want to isolate just the messages from get/checkout, you'll need to use a more complicated event notification system.
If you want to isolate just the messages from get/checkout, you'll need to use a more complicated event notification system.
Subscribe to the Fortress/Vault blog
-
- Posts: 18
- Joined: Fri Mar 06, 2009 12:27 pm
Re: Files Updates by GetOperations.ProcessCommandGet
I'm not getting any events from that message. Here's my code:
Code: Select all
// ...snip...
ServerOperations.GetInstance().UserMessage += GetMessageEventHandler;
GetOperations.ProcessCommandGet(objectPaths.ToArray(), options);
ServerOperations.GetInstance().UserMessage -= GetMessageEventHandler;
// ..snip
private void GetMessageEventHandler(object sender, object message)
{
Trace.WriteLine(message);
}
Re: Files Updates by GetOperations.ProcessCommandGet
Try this:
Code: Select all
ServerOperations.GetInstance().UserMessage += new ServerOperations.UserMessageEventHandler(GetMessageEventHandler);
GetOperations.ProcessCommandGet(objectPaths.ToArray(), options);
ServerOperations.GetInstance().UserMessage -= new ServerOperations.UserMessageEventHandler(
GetMessageEventHandler);
Subscribe to the Fortress/Vault blog
-
- Posts: 18
- Joined: Fri Mar 06, 2009 12:27 pm
Re: Files Updates by GetOperations.ProcessCommandGet
Nope. Didn't work.
Re: Files Updates by GetOperations.ProcessCommandGet
Will it work if you change the signature of GetMessageEventHandler to object, string?
Also, try setting the user message before you log in.
Also, try setting the user message before you log in.
Subscribe to the Fortress/Vault blog
-
- Posts: 18
- Joined: Fri Mar 06, 2009 12:27 pm
Re: Files Updates by GetOperations.ProcessCommandGet
Neither worked.
Re: Files Updates by GetOperations.ProcessCommandGet
Are you getting zero messages, or are you just not getting the list of files?
If you change it to a nonworkingfolder get, do you get messages?
If you already have files in the working folder, or if they are cached in the hidden state folder, then you won't see messages when they're updated. Could that be what's going on?
If you change it to a nonworkingfolder get, do you get messages?
If you already have files in the working folder, or if they are cached in the hidden state folder, then you won't see messages when they're updated. Could that be what's going on?
Subscribe to the Fortress/Vault blog