예제 #1
0
        public virtual void Doit(int value, BAsyncResult <int> asyncResult)
        {
            BRequest_RemoteWithAuthentication_doit req = new BRequest_RemoteWithAuthentication_doit();

            req.valueValue = value;
            transport.sendMethod(req, asyncResult);
        }
예제 #2
0
        // checkpoint byps.gen.cs.GenRemoteStub:133
        public async Task <int> DoitAsync(int value)
        {
            BRequest_RemoteWithAuthentication_doit req = new BRequest_RemoteWithAuthentication_doit();

            req.valueValue = value;
            Task <int> task = Task <int> .Factory.FromAsync(transport.BeginSend <int>, transport.EndSend <int>, req, null);

            return(await task);
        }
예제 #3
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BRequest_RemoteWithAuthentication_doit obj = (BRequest_RemoteWithAuthentication_doit)obj1;
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putInt(obj.valueValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.sessValue, false, null);
        }
예제 #4
0
        public override Object read(Object obj1, BInput bin1, long version)
        {
            BInputBin bin = (BInputBin)bin1;
            BRequest_RemoteWithAuthentication_doit obj = (BRequest_RemoteWithAuthentication_doit)(obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_RemoteWithAuthentication_doit()));

            BBufferBin bbuf = bin.bbuf;

            // checkpoint byps.gen.cs.PrintContext:449
            obj.valueValue = bbuf.getInt();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.sessValue = (byps.test.api.auth.SessionInfo)bin.readObj(false, null);

            return(obj);
        }
		// checkpoint byps.gen.cs.GenRemoteStub:133
		public async Task<int> DoitAsync(int value){
			BRequest_RemoteWithAuthentication_doit req = new BRequest_RemoteWithAuthentication_doit();			
			req.valueValue = value;
			Task<int> task = Task<int>.Factory.FromAsync(transport.BeginSend<int>, transport.EndSend<int>, req, null);
			return await task;
		}
		public virtual void Doit(int value, BAsyncResult<int> asyncResult) {
			BRequest_RemoteWithAuthentication_doit req = new BRequest_RemoteWithAuthentication_doit();			
			req.valueValue = value;
			transport.sendMethod(req, asyncResult);
		}