home *** CD-ROM | disk | FTP | other *** search
- using System;
- using System.Runtime.Remoting;
-
- namespace RemSpy
- {
- /*
- public ObjectSpied
- {
- String URI;
- String TypeName;
- int callTotal;
- int callIn;
- int callOut;
- }
-
- public class Manager()
- {
- public RemSpyDynamicProperty remSpyDynamicProperty = null;
- public Manager()
- {
- }
-
- //Install Probes
- public InstallDynamicProperty()
- {
- //bool b = Context.RegisterDynamicProperty(IDynamicProperty prop, MarshalByRefObject obj, Context ctx);
-
- RemSpyDynamicProperty remSpyDynamicProperty = new RemSpyDynamicProperty();
- bool b = Context.RegisterDynamicProperty(remSpyDynamicProperty, null, null);
- }
-
- // Provide Data
- public ObjectSpied[] AllObjects()
- {
- }
-
- public ObjectSpied[] MarshaledObjects()
- {
- }
-
- public ObjectSpied[] UnmarshaledObjects()
- {
- }
-
- public ObjectSpied[] DisconnectedObjects()
- {
- }
-
- //Statics Gathering
- public static void UpdateStaticsFromIMessage(IMessage msg)
- {
- }
-
- // Notify a handler that an object has been marshaled
- public static void MarshaledObject(Object obj, ObjRef or)
- {
- }
-
- // Notify a handler that an object has been unmarshaled
- public static void UnmarshaledObject(Object obj, ObjRef or)
- {
- }
-
- // Notify a handler that an object has been disconnected
- public static void DisconnectedObject(Object obj)
- {
- }
-
-
- }
-
- public RemSpyDynamicProperty : IDynamicProperty, IContributeDynamicSink
- {
- public RemSpyDynamicProperty()
- {
- }
-
- public RemSpyDynamicProperty(MarshalByRefObject obj, Context ctx)
- {
- }
-
- public String Name
- {
- get
- {
- return "RemSpy.RemSpyDynamicProperty";
- }
- }
-
- public IDynamicMessageSink GetDynamicSink()
- {
- return new RemSpyDynamicMessageSink();
- }
-
- }
-
- public RemSpyDynamicMessageSink : IDynamicMessageSink
- {
- public interface IDynamicMessageSink
- {
- void ProcessMessageStart(IMessage reqMsg, bool bCliSide, bool bAsync)
- {
- Manager.UpdateStaticsFromIMessage(reqMsg);
- }
- void ProcessMessageFinish(IMessage replyMsg, bool bCliSide, bool bAsync)
- {
- Manager.UpdateStaticsFromIMessage(replyMsg);
- }
- }
- }
-
- public RemSpyTrackingHandler : ITrackingHandler
- {
- // Notify a handler that an object has been marshaled
- void MarshaledObject(Object obj, ObjRef or)
- {
- }
-
- // Notify a handler that an object has been unmarshaled
- void UnmarshaledObject(Object obj, ObjRef or)
- {
- }
-
- // Notify a handler that an object has been disconnected
- void DisconnectedObject(Object obj)
- {
- }
- }
- */
- }