Example #1
0
        public virtual void RegisterNotifyService(String token, FileSystemNotify service, BAsyncResult <Object> asyncResult)
        {
            BRequest_DispatcherService_registerNotifyService req = new BRequest_DispatcherService_registerNotifyService();

            req.tokenValue   = token;
            req.serviceValue = service;
            transport.sendMethod(req, asyncResult);
        }
Example #2
0
        // checkpoint byps.gen.cs.GenRemoteStub:133
        public async Task RegisterNotifyServiceAsync(String token, FileSystemNotify service)
        {
            BRequest_DispatcherService_registerNotifyService req = new BRequest_DispatcherService_registerNotifyService();

            req.tokenValue   = token;
            req.serviceValue = service;
            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)
        {
            BRequest_DispatcherService_registerNotifyService obj = (BRequest_DispatcherService_registerNotifyService)obj1;
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putString(obj.tokenValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.serviceValue, false, null);
        }
        public override Object read(Object obj1, BInput bin1, long version)
        {
            BInputBin bin = (BInputBin)bin1;
            BRequest_DispatcherService_registerNotifyService obj = (BRequest_DispatcherService_registerNotifyService)(obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_DispatcherService_registerNotifyService()));

            BBufferBin bbuf = bin.bbuf;

            // checkpoint byps.gen.cs.PrintContext:449
            obj.tokenValue = bbuf.getString();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.serviceValue = (com.wilutions.jsfs.FileSystemNotify)bin.readObj(false, null);

            return(obj);
        }
		// checkpoint byps.gen.cs.GenRemoteStub:133
		public async Task RegisterNotifyServiceAsync(String token, FileSystemNotify service){
			BRequest_DispatcherService_registerNotifyService req = new BRequest_DispatcherService_registerNotifyService();			
			req.tokenValue = token;
			req.serviceValue = service;
			Task<Object> task = Task<Object>.Factory.FromAsync(transport.BeginSend<Object>, transport.EndSend<Object>, req, null);
			await task;
		}
		public virtual void RegisterNotifyService(String token, FileSystemNotify service, BAsyncResult<Object> asyncResult) {
			BRequest_DispatcherService_registerNotifyService req = new BRequest_DispatcherService_registerNotifyService();			
			req.tokenValue = token;
			req.serviceValue = service;
			transport.sendMethod(req, asyncResult);
		}