public virtual ChatStructure SendChat(ChatStructure cs) { BSyncResult <ChatStructure> asyncResult = new BSyncResult <ChatStructure>(); SendChat(cs, BAsyncResultHelper.ToDelegate <ChatStructure>(asyncResult)); return(asyncResult.GetResult()); }
public virtual void SendChat(ChatStructure cs, BAsyncResult <ChatStructure> asyncResult) { BRequest_ClientIF_sendChat req = new BRequest_ClientIF_sendChat(); req.csValue = cs; transport.sendMethod(req, asyncResult); }
// checkpoint byps.gen.cs.GenRemoteStub:133 public async Task <ChatStructure> SendChatAsync(ChatStructure cs) { BRequest_ClientIF_sendChat req = new BRequest_ClientIF_sendChat(); req.csValue = cs; Task <ChatStructure> task = Task <ChatStructure> .Factory.FromAsync(transport.BeginSend <ChatStructure>, transport.EndSend <ChatStructure>, req, null); return(await task); }
public override void write(Object obj1, BOutput bout1, long version) { ChatStructure obj = (ChatStructure)obj1; BOutputBin bout = (BOutputBin)bout1; BBufferBin bbuf = bout.bbuf; // checkpoint byps.gen.cs.PrintContext:494 bbuf.putString(obj.Msg); // checkpoint byps.gen.cs.PrintContext:494 bbuf.putDouble(obj.ReceivedAt); // checkpoint byps.gen.cs.PrintContext:494 bbuf.putDouble(obj.SentAt); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; ChatStructure obj = (ChatStructure)(obj1 != null ? obj1 : bin.onObjectCreated(new ChatStructure())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.Msg = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.ReceivedAt = bbuf.getDouble(); // checkpoint byps.gen.cs.PrintContext:449 obj.SentAt = bbuf.getDouble(); return(obj); }
public ChatStructure(ChatStructure rhs) { this.msgValue = rhs.msgValue; this.sentAtValue = rhs.sentAtValue; this.receivedAtValue = rhs.receivedAtValue; }
public virtual async void SendChat(ChatStructure cs, BAsyncResult<ChatStructure> asyncResult) { ChatStructure __byps__ret = default(ChatStructure); Exception __byps__ex = null; bool __byps__callAsync = false; try { __byps__ret = SendChat(cs); } catch (NotImplementedException) { __byps__callAsync = true; } catch (Exception e) { __byps__ex = e; } if (__byps__callAsync) try { __byps__ret = await SendChatAsync(cs); } catch (NotImplementedException) { __byps__ex = new BException(BExceptionC.UNSUPPORTED_METHOD, ""); } catch (Exception e) { __byps__ex = e; } asyncResult(__byps__ret, __byps__ex); }
public virtual ChatStructure SendChat(ChatStructure cs) { throw new NotImplementedException(); }
public virtual Task<ChatStructure> SendChatAsync(ChatStructure cs){ return BTaskConstants<ChatStructure>.NotImplemented; }
public ChatStructure(ChatStructure rhs) { this.msgValue = rhs.msgValue; this.sentAtValue = rhs.sentAtValue; this.receivedAtValue = rhs.receivedAtValue; }
// checkpoint byps.gen.cs.GenRemoteStub:133 public async Task<ChatStructure> SendChatAsync(ChatStructure cs){ BRequest_ClientIF_sendChat req = new BRequest_ClientIF_sendChat(); req.csValue = cs; Task<ChatStructure> task = Task<ChatStructure>.Factory.FromAsync(transport.BeginSend<ChatStructure>, transport.EndSend<ChatStructure>, req, null); return await task; }
public virtual void SendChat(ChatStructure cs, BAsyncResult<ChatStructure> asyncResult) { BRequest_ClientIF_sendChat req = new BRequest_ClientIF_sendChat(); req.csValue = cs; transport.sendMethod(req, asyncResult); }
public virtual ChatStructure SendChat(ChatStructure cs) { BSyncResult<ChatStructure> asyncResult = new BSyncResult<ChatStructure>(); SendChat(cs, BAsyncResultHelper.ToDelegate<ChatStructure>(asyncResult)); return asyncResult.GetResult(); }