Пример #1
0
 public ComplexData SetComplexData(ComplexData data)
 {
     Assert.IsTrue(RemotingServices.IsTransparentProxy(this));
     CallSeq.Add("Showing content of ComplexData");
     data.Dump();
     return(data);
 }
Пример #2
0
        public IMessage SyncProcessMessage(IMessage imCall)
        {
            CallSeq.Add("--> " + _type + " SyncProcessMessage " + imCall.Properties["__MethodName"]);
            IMessage ret = _next.SyncProcessMessage(imCall);

            CallSeq.Add("<-- " + _type + " SyncProcessMessage " + imCall.Properties["__MethodName"]);
            return(ret);
        }
Пример #3
0
        public IMessageCtrl AsyncProcessMessage(IMessage im, IMessageSink ims)
        {
            CallSeq.Add("--> " + _type + " AsyncProcessMessage " + im.Properties["__MethodName"]);
            IMessageCtrl ret = _next.AsyncProcessMessage(im, ims);

            CallSeq.Add("<-- " + _type + " AsyncProcessMessage " + im.Properties["__MethodName"]);
            return(ret);
        }
Пример #4
0
 public void Dump()
 {
     CallSeq.Add("Content:");
     CallSeq.Add("Val: " + Val);
     foreach (object ob in Info)
     {
         CallSeq.Add("Array item: " + ob);
     }
 }
Пример #5
0
        public void ProcessItems()
        {
            Assert.IsTrue(RemotingServices.IsTransparentProxy(this));
            CallSeq.Add("Processing");

            int total = 0;

            foreach (ServerObject ob in values)
            {
                total += ob.GetValue();
            }

            CallSeq.Add("Total: " + total);
        }
Пример #6
0
 public override ObjRef CreateObjRef(Type type)
 {
     Assert.IsTrue(RemotingServices.IsTransparentProxy(this));
     CallSeq.Add("### ServerList.CreateObjRef");
     return(base.CreateObjRef(type));
 }
Пример #7
0
 public void Dispose()
 {
     Assert.IsTrue(RemotingServices.IsTransparentProxy(this));
     CallSeq.Add("List disposed");
 }
Пример #8
0
 public void Add(ServerObject v)
 {
     Assert.IsTrue(RemotingServices.IsTransparentProxy(this));
     values.Add(v);
     CallSeq.Add("Added " + v.Name);
 }
Пример #9
0
 bool IContextAttribute.IsContextOK(Context ctx, IConstructionCallMessage ctor)
 {
     CallSeq.Add("ContextHookAttribute(" + id + ").IsContextOK");
     return(!newContext);
 }
Пример #10
0
 public ServerList()
 {
     Assert.IsTrue(RemotingServices.IsTransparentProxy(this));
     CallSeq.Add("List created");
 }
Пример #11
0
 public int GetValue()
 {
     CallSeq.Add("ServerObject " + _name + ": getting " + _value);
     return(_value);
 }
Пример #12
0
 public override ObjRef CreateObjRef(Type type)
 {
     CallSeq.Add("### ServerObject.CreateObjRef");
     return(base.CreateObjRef(type));
 }
Пример #13
0
 public IDynamicMessageSink GetDynamicSink()
 {
     CallSeq.Add("IContributeDynamicSink(" + _name + ").GetDynamicSink");
     return(new GenericDynamicSink(_name));
 }
Пример #14
0
 public void SetValue(int v)
 {
     CallSeq.Add("ServerObject " + _name + ": setting " + v);
     _value = v;
 }
Пример #15
0
 IMessageSink IContributeEnvoySink.GetEnvoySink(MarshalByRefObject obj, IMessageSink nextSink)
 {
     CallSeq.Add("IContributeEnvoySink(" + id + ").GetEnvoySink");
     return(new GenericMessageSink(obj, nextSink, "EnvoySink(" + id + ")"));
 }
Пример #16
0
 public void Clear()
 {
     Assert.IsTrue(RemotingServices.IsTransparentProxy(this));
     CallSeq.Add("Clearing");
     values.Clear();
 }
Пример #17
0
 IMessageSink IContributeServerContextSink.GetServerContextSink(IMessageSink next)
 {
     CallSeq.Add("IContributeServerContextSink(" + id + ").GetServerContextSink");
     return(new GenericMessageSink(null, next, "ServerContextSink(" + id + ")"));
 }
Пример #18
0
 IMessageSink IContributeObjectSink.GetObjectSink(MarshalByRefObject o, IMessageSink next)
 {
     CallSeq.Add("IContributeObjectSink(" + id + ").GetObjectSink");
     return(new GenericMessageSink(o, next, "ObjectSink(" + id + ")"));
 }
Пример #19
0
 void IContextAttribute.GetPropertiesForNewContext(IConstructionCallMessage ctor)
 {
     CallSeq.Add("IContextAttribute(" + id + ").GetPropertiesForNewContext");
     ctor.ContextProperties.Add(this);
 }
Пример #20
0
 public void Freeze(Context ctx)
 {
     CallSeq.Add("ContextHookAttribute(" + id + ").Freeze");
 }
Пример #21
0
 public bool IsNewContextOK(Context ctx)
 {
     CallSeq.Add("ContextHookAttribute(" + id + ").IsNewContextOK");
     return(true);
 }
Пример #22
0
 IMessageSink IContributeClientContextSink.GetClientContextSink(IMessageSink nextSink)
 {
     CallSeq.Add("IContributeClientContextSink(" + id + ").GetClientContextSink");
     return(new GenericMessageSink(null, nextSink, "ClientContextSink(" + id + ")"));
 }
Пример #23
0
 void IDynamicMessageSink.ProcessMessageStart(IMessage replyMsg, bool bCliSide, bool bAsync)
 {
     CallSeq.Add("<-> " + _name + " DynamicSink Start " + replyMsg.Properties["__MethodName"] + " client:" + bCliSide);
 }