Ejemplo n.º 1
0
 public Task LoginOut(IdModel idModel)
 {
     return(Task.Run(() =>
     {
         Channel channel = ClientFindCreateChannel.CreateChannel(_Mname, "LoginOut").Result;
         var client = this._UserProxyClient(channel);
         var serverRes = client.LoginOut(idModel);
         channel.ShutdownAsync();   //关闭长连接
     }));
 }
Ejemplo n.º 2
0
 public async Task <AjaxResult> UpdatePwd(UserUpdatePwdEntity userUpdatePwdEntity)
 {
     return(await Task.Run <AjaxResult>(() =>
     {
         Channel channel = ClientFindCreateChannel.CreateChannel(_Mname, "UpdatePwd").Result;
         var client = this._UserProxyClient(channel);
         var serverRes = client.UpdatePwd(userUpdatePwdEntity);
         channel.ShutdownAsync();   //关闭长连接
         return serverRes;
     }));
 }
Ejemplo n.º 3
0
 public Task <MessageAlertDto> FindMessageByAlert(string msgNumber)
 {
     return(Task.Run(() =>
     {
         Channel channel = ClientFindCreateChannel.CreateChannel(_Mname, "FindMessageByAlert").Result;
         var client = this._messageProxyClient(channel);
         var serverRes = client.FindMessageByAlert(msgNumber);
         channel.ShutdownAsync();   //关闭长连接
         return serverRes;
     }));
 }
Ejemplo n.º 4
0
 public Task <AjaxResult> SetMenuByUser(List <B2B_USER_MENU> request)
 {
     return(Task.Run <AjaxResult>(() =>
     {
         Channel channel = ClientFindCreateChannel.CreateChannel(_Mname, "SetMenuByUser").Result;
         var client = this._ProxyClient(channel);
         var serverRes = client.SetMenuByUser(request);
         channel.ShutdownAsync();   //关闭长连接
         return serverRes;
     }));
 }
Ejemplo n.º 5
0
 public async Task <List <NameByIdDto> > FindIdListByNameContains(IdByNameContainsParams request)
 {
     return(await Task.Run(() =>
     {
         Channel channel = ClientFindCreateChannel.CreateChannel(_Mname, "FindIdListByNameContainsService").Result;
         var client = this._ProxyClient(channel);
         var serverRes = client.FindIdListByNameContains(request);
         channel.ShutdownAsync();   //关闭长连接
         return serverRes;
     }));
 }
Ejemplo n.º 6
0
 public async Task <List <M> > FindAll()
 {
     return(await Task.Run(() =>
     {
         Channel channel = ClientFindCreateChannel.CreateChannel(_Mname, "FindAllService").Result;
         var client = this._ProxyClient(channel);
         var serverRes = client.FindAll(new NullableParams());
         channel.ShutdownAsync();   //关闭长连接
         return serverRes;
     }));
 }
Ejemplo n.º 7
0
 public async Task <List <MenuByUserDto> > FindMenuByUser(IdModel request)
 {
     return(await Task.Run <List <MenuByUserDto> >(() =>
     {
         Channel channel = ClientFindCreateChannel.CreateChannel(_Mname, "FindMenuByUser").Result;
         var client = this._ProxyClient(channel);
         var serverRes = client.FindMenuByUser(request);
         channel.ShutdownAsync();   //关闭长连接
         return serverRes;
     }));
 }
Ejemplo n.º 8
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="getSelLookUpValuesParams"></param>
 /// <returns></returns>
 public Task <List <LookUpValuesByTypeDto> > GetLookUpValuesByType(List <LookUpValuesByTypeParams> requests)
 {
     return(Task.Run(() =>
     {
         Channel channel = ClientFindCreateChannel.CreateChannel(_Mname, "GetLookUpValuesByType").Result;
         var client = this._LookUpValuesProxyClient(channel);
         var serverRes = client.GetLookUpValuesByType(requests);
         channel.ShutdownAsync();   //关闭长连接
         return serverRes;
     }));
 }
Ejemplo n.º 9
0
 public async Task <AjaxResult> Remove(RemoveModel request)
 {
     return(await Task.Run <AjaxResult>(() =>
     {
         Channel channel = ClientFindCreateChannel.CreateChannel(_Mname, "RemoveService").Result;
         var client = this._ProxyClient(channel);
         var serverRes = client.Remove(request);
         channel.ShutdownAsync();   //关闭长连接
         return serverRes;
     }));
 }
Ejemplo n.º 10
0
 public async Task <M> FindById(IdModel request)
 {
     return(await Task.Run <M>(() =>
     {
         Channel channel = ClientFindCreateChannel.CreateChannel(_Mname, "FindByIdService").Result;
         var client = this._ProxyClient(channel);
         var serverRes = client.FindById(request);
         channel.ShutdownAsync();   //关闭长连接
         return serverRes;
     }));
 }
Ejemplo n.º 11
0
 public async Task <CurrentUserEntity> UserLogin(LoginEntity loginEntity)
 {
     return(await Task.Run <CurrentUserEntity>(() =>
     {
         Channel channel = ClientFindCreateChannel.CreateChannel(_Mname, "UserLogin").Result;
         var client = this._UserProxyClient(channel);
         var serverRes = client.UserLogin(loginEntity);
         channel.ShutdownAsync();   //关闭长连接
         return serverRes;
     }));
 }
Ejemplo n.º 12
0
 public async Task <M> FindByEntity(Dictionary <string, string> request)
 {
     return(await Task.Run(() =>
     {
         Channel channel = ClientFindCreateChannel.CreateChannel(_Mname, "FindByEntityService").Result;
         var client = this._ProxyClient(channel);
         var serverRes = client.FindByEntity(request);
         channel.ShutdownAsync();   //关闭长连接
         return serverRes;
     }));
 }
Ejemplo n.º 13
0
 public async Task <AjaxResult> ModifyRangeDic(string jsonArray)
 {
     return(await Task.Run <AjaxResult>(() =>
     {
         Channel channel = ClientFindCreateChannel.CreateChannel(_Mname, "ModifyRangeDicService").Result;
         var client = this._ProxyClient(channel);
         var serverRes = client.ModifyRangeDic(jsonArray);
         channel.ShutdownAsync();   //关闭长连接
         return serverRes;
     }));
 }
Ejemplo n.º 14
0
 public async Task <AjaxResult> ModifyDic(Dictionary <string, string> request)
 {
     return(await Task.Run <AjaxResult>(() =>
     {
         Channel channel = ClientFindCreateChannel.CreateChannel(_Mname, "ModifyDicService").Result;
         var client = this._ProxyClient(channel);
         var serverRes = client.ModifyDic(request);
         channel.ShutdownAsync();   //关闭长连接
         return serverRes;
     }));
 }
Ejemplo n.º 15
0
 public async Task <string> ValidAdd_Modify(M request)
 {
     return(await Task.Run(() =>
     {
         Channel channel = ClientFindCreateChannel.CreateChannel(_Mname, "ValidAdd_ModifyService").Result;
         var client = this._ProxyClient(channel);
         var serverRes = client.ValidAdd_Modify(request);
         channel.ShutdownAsync();   //关闭长连接
         return serverRes;
     }));
 }
Ejemplo n.º 16
0
 public Task <List <UserMenuResDto> > GetUserMenus(UserMenuReq request)
 {
     return(Task.Run <List <UserMenuResDto> >(() =>
     {
         Channel channel = ClientFindCreateChannel.CreateChannel(_Mname, "GetUserMenus").Result;
         var client = this._MenuProxyClient(channel);
         var serverRes = client.GetUserMenus(request);
         channel.ShutdownAsync();   //关闭长连接
         return serverRes;
     }));
 }
Ejemplo n.º 17
0
        public async Task <PageResult <QPD> > GetCQueryListByPage(QPP queryParams)
        {
            return(await Task.Run <PageResult <QPD> >(() =>
            {
                Channel channel = ClientFindCreateChannel.CreateChannel(_Mname, "CQueryPageService").Result;
                var client = this._ProxyClient(channel);

                var serverRes = client.GetCQueryListByPage(queryParams);
                channel.ShutdownAsync();   //关闭长连接
                return serverRes;
            }));
        }
Ejemplo n.º 18
0
 /// <summary>
 /// 获取消息编号最大值
 /// </summary>
 /// <returns></returns>
 public Task <string> GetMaxMessagesNumber()
 {
     return(Task.Run(() =>
     {
         Channel channel = ClientFindCreateChannel.CreateChannel(_Mname, "GetMaxMessagesNumber").Result;
         var client = this._messageProxyClient(channel);
         NullableParams nullableParams = null;
         var serverRes = client.GetMaxMessagesNumber(nullableParams);
         channel.ShutdownAsync();   //关闭长连接
         return serverRes;
     }));
 }