Exemplo n.º 1
0
        public virtual ChatStructure SendChat(ChatStructure cs)
        {
            BSyncResult <ChatStructure> asyncResult = new BSyncResult <ChatStructure>();

            SendChat(cs, BAsyncResultHelper.ToDelegate <ChatStructure>(asyncResult));
            return(asyncResult.GetResult());
        }
Exemplo n.º 2
0
        public virtual void SendChat(ChatStructure cs, BAsyncResult <ChatStructure> asyncResult)
        {
            BRequest_ClientIF_sendChat req = new BRequest_ClientIF_sendChat();

            req.csValue = cs;
            transport.sendMethod(req, asyncResult);
        }
Exemplo n.º 3
0
        // 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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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);
        }
Exemplo n.º 6
0
 public ChatStructure(ChatStructure rhs)
 {
     this.msgValue        = rhs.msgValue;
     this.sentAtValue     = rhs.sentAtValue;
     this.receivedAtValue = rhs.receivedAtValue;
 }
Exemplo n.º 7
0
		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);
		}
Exemplo n.º 8
0
		public virtual ChatStructure SendChat(ChatStructure cs) {
			throw new NotImplementedException();
		}
Exemplo n.º 9
0
		public virtual Task<ChatStructure> SendChatAsync(ChatStructure cs){
			return BTaskConstants<ChatStructure>.NotImplemented;
		}
Exemplo n.º 10
0
		public ChatStructure(ChatStructure rhs)
		{
			this.msgValue = rhs.msgValue;
			this.sentAtValue = rhs.sentAtValue;
			this.receivedAtValue = rhs.receivedAtValue;
		}		
Exemplo n.º 11
0
		// 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;
		}
Exemplo n.º 12
0
		public virtual void SendChat(ChatStructure cs, BAsyncResult<ChatStructure> asyncResult) {
			BRequest_ClientIF_sendChat req = new BRequest_ClientIF_sendChat();			
			req.csValue = cs;
			transport.sendMethod(req, asyncResult);
		}
Exemplo n.º 13
0
		public virtual ChatStructure SendChat(ChatStructure cs) {
			BSyncResult<ChatStructure> asyncResult = new BSyncResult<ChatStructure>();			
			SendChat(cs, BAsyncResultHelper.ToDelegate<ChatStructure>(asyncResult));
			return asyncResult.GetResult();			
		}