public IConnectRequest CreateConnectRequest(string hostAppId, UniqueId hostAppInstanceId)
        {
            var obj = ConnectRequest.Rent();

            obj.ApplicationId         = hostAppId;
            obj.ApplicationInstanceId = hostAppInstanceId;
            return(obj);
        }
 public IPooledBuffer Serialize(IConnectRequest msg)
 {
     using (var obj = ConnectRequest.Rent())
     {
         obj.ApplicationId         = msg.ApplicationId;
         obj.ApplicationInstanceId = obj.ApplicationInstanceId.MergeFrom(msg.ApplicationInstanceId);
         return(obj.Serialize());
     }
 }
 public IConnectRequest DeserializeConnectRequest(IPooledBuffer msg)
 {
     using (var obj = ConnectRequest.Rent())
     {
         obj.MergeFrom(msg);
         return(_messageFactory.CreateConnectRequest(
                    obj.ApplicationId,
                    obj.ApplicationInstanceId.ConvertFromProtoStrict()));
     }
 }