// checkpoint byps.gen.cs.GenRemoteStub:133 public async Task<byps.test.api.auth.SessionInfo> LoginAsync(String userName, String userPwd){ BRequest_RemoteWithAuthentication_login req = new BRequest_RemoteWithAuthentication_login(); req.userNameValue = userName; req.userPwdValue = userPwd; Task<byps.test.api.auth.SessionInfo> task = Task<byps.test.api.auth.SessionInfo>.Factory.FromAsync(transport.BeginSend<byps.test.api.auth.SessionInfo>, transport.EndSend<byps.test.api.auth.SessionInfo>, req, null); return await task; }
public virtual void Login(String userName, String userPwd, BAsyncResult <byps.test.api.auth.SessionInfo> asyncResult) { BRequest_RemoteWithAuthentication_login req = new BRequest_RemoteWithAuthentication_login(); req.userNameValue = userName; req.userPwdValue = userPwd; transport.sendMethod(req, asyncResult); }
// checkpoint byps.gen.cs.GenRemoteStub:133 public async Task <byps.test.api.auth.SessionInfo> LoginAsync(String userName, String userPwd) { BRequest_RemoteWithAuthentication_login req = new BRequest_RemoteWithAuthentication_login(); req.userNameValue = userName; req.userPwdValue = userPwd; Task <byps.test.api.auth.SessionInfo> task = Task <byps.test.api.auth.SessionInfo> .Factory.FromAsync(transport.BeginSend <byps.test.api.auth.SessionInfo>, transport.EndSend <byps.test.api.auth.SessionInfo>, req, null); return(await task); }
public override void write(Object obj1, BOutput bout1, long version) { BRequest_RemoteWithAuthentication_login obj = (BRequest_RemoteWithAuthentication_login)obj1; BOutputBin bout = (BOutputBin)bout1; BBufferBin bbuf = bout.bbuf; // checkpoint byps.gen.cs.PrintContext:494 bbuf.putString(obj.userNameValue); // checkpoint byps.gen.cs.PrintContext:494 bbuf.putString(obj.userPwdValue); // checkpoint byps.gen.cs.PrintContext:494 bout.writeObj(obj.sessValue, false, null); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; BRequest_RemoteWithAuthentication_login obj = (BRequest_RemoteWithAuthentication_login)(obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_RemoteWithAuthentication_login())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.userNameValue = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.userPwdValue = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.sessValue = (byps.test.api.auth.SessionInfo)bin.readObj(false, null); return(obj); }
public virtual void Login(String userName, String userPwd, BAsyncResult<byps.test.api.auth.SessionInfo> asyncResult) { BRequest_RemoteWithAuthentication_login req = new BRequest_RemoteWithAuthentication_login(); req.userNameValue = userName; req.userPwdValue = userPwd; transport.sendMethod(req, asyncResult); }