[p4] more p4.net events?

Erik Purins epurins at day1studios.com
Fri Jul 10 10:21:29 PDT 2009


Hi p4 users,

I really like Shawn's p4.net, and am using it at work. Thanks for that, 
it's really handy and intuitive to use.

I'm trying to update a utility at work that uses p4dn (as opposed to 
P4API). The utility presents the incoming perforce info into a gui text 
window by overriding some of the clientapi output functions.

It looks like the original engineer skipped using P4API.P4Connection 
because he couldn't use it to listen to events that keep the ui feeling 
responsive.

For example, currently, in order to do the same thing with p4.net, it 
looks like I would want to replace/adapt the P4Connection class (which 
has some internal/private members) and/or the P4RecordsetCallback class,
and throw events in the specific callback methods I need to handle. 
(event handers for messages, warnings, as records are created).

I'm pretty new to c#/.net: is there an easier way to do this that I'm 
missing?

Best regards,

-e



More information about the perforce-user mailing list