Page 1 of 1

Files Updates by GetOperations.ProcessCommandGet

Posted: Wed Nov 25, 2009 12:46 pm
by splatteredbits
How do I get the list of files that were updated by GetOperations.ProcessCommandGet?

Re: Files Updates by GetOperations.ProcessCommandGet

Posted: Mon Nov 30, 2009 11:51 am
by jeremy_sg
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.

Re: Files Updates by GetOperations.ProcessCommandGet

Posted: Wed Dec 09, 2009 11:12 am
by splatteredbits
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

Posted: Thu Dec 10, 2009 4:56 pm
by jeremy_sg
Try this:

Code: Select all

 ServerOperations.GetInstance().UserMessage += new ServerOperations.UserMessageEventHandler(GetMessageEventHandler);
      GetOperations.ProcessCommandGet(objectPaths.ToArray(), options);
      ServerOperations.GetInstance().UserMessage -= new ServerOperations.UserMessageEventHandler(
GetMessageEventHandler);

Re: Files Updates by GetOperations.ProcessCommandGet

Posted: Fri Dec 11, 2009 12:50 pm
by splatteredbits
Nope. Didn't work.

Re: Files Updates by GetOperations.ProcessCommandGet

Posted: Fri Dec 11, 2009 3:01 pm
by jeremy_sg
Will it work if you change the signature of GetMessageEventHandler to object, string?

Also, try setting the user message before you log in.

Re: Files Updates by GetOperations.ProcessCommandGet

Posted: Mon Dec 14, 2009 10:10 am
by splatteredbits
Neither worked.

Re: Files Updates by GetOperations.ProcessCommandGet

Posted: Mon Dec 14, 2009 10:39 am
by jeremy_sg
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?