示例#1
0
        public virtual void Notify(NotifyInfo notifyInfo, BAsyncResult <Object> asyncResult)
        {
            BRequest_FileSystemNotify_notify req = new BRequest_FileSystemNotify_notify();

            req.notifyInfoValue = notifyInfo;
            transport.sendMethod(req, asyncResult);
        }
示例#2
0
        public virtual void Notify(NotifyInfo notifyInfo)
        {
            BSyncResult <Object> asyncResult = new BSyncResult <Object>();

            Notify(notifyInfo, BAsyncResultHelper.ToDelegate <Object>(asyncResult));
            asyncResult.GetResult();
        }
示例#3
0
        // checkpoint byps.gen.cs.GenRemoteStub:133
        public async Task NotifyAsync(NotifyInfo notifyInfo)
        {
            BRequest_FileSystemNotify_notify req = new BRequest_FileSystemNotify_notify();

            req.notifyInfoValue = notifyInfo;
            Task <Object> task = Task <Object> .Factory.FromAsync(transport.BeginSend <Object>, transport.EndSend <Object>, req, null);

            await task;
        }
        public override void write(Object obj1, BOutput bout1, long version)
        {
            NotifyInfo obj  = (NotifyInfo)obj1;
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.Error);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.ExtraInfo);
            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putInt(obj.Id);
        }
        public override Object read(Object obj1, BInput bin1, long version)
        {
            BInputBin  bin = (BInputBin)bin1;
            NotifyInfo obj = (NotifyInfo)(obj1 != null ? obj1 : bin.onObjectCreated(new NotifyInfo()));

            BBufferBin bbuf = bin.bbuf;

            // checkpoint byps.gen.cs.PrintContext:449
            obj.Error = bbuf.getString();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.ExtraInfo = bbuf.getString();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Id = bbuf.getInt();

            return(obj);
        }
        public virtual async void Notify(NotifyInfo notifyInfo, BAsyncResult <Object> asyncResult)
        {
            Object    __byps__ret       = default(Object);
            Exception __byps__ex        = null;
            bool      __byps__callAsync = false;

            try {
                Notify(notifyInfo);
            }
            catch (NotImplementedException) { __byps__callAsync = true; }
            catch (Exception e) { __byps__ex = e; }
            if (__byps__callAsync)
            {
                try {
                    await NotifyAsync(notifyInfo);
                }
                catch (NotImplementedException) { __byps__ex = new BException(BExceptionC.UNSUPPORTED_METHOD, ""); }
            }
示例#7
0
 public NotifyInfo(NotifyInfo rhs)
 {
     this.idValue        = rhs.idValue;
     this.extraInfoValue = rhs.extraInfoValue;
     this.errorValue     = rhs.errorValue;
 }
 public virtual void Notify(NotifyInfo notifyInfo)
 {
     throw new NotImplementedException();
 }