예제 #1
0
 public RoleExistsReply RoleExists(RoleExistsRequest request)
 {
     try
     {
         RoleExistsReply response = new RoleExistsReply();
         response.RoleExists = _roles.RoleExists(request.RoleName);
         response.Status     = ActionStatus.OK;
         return(response);
     }
     catch (Exception ex)
     {
         throw ex.NewFault();
     }
 }
예제 #2
0
 public override bool RoleExists(string roleName)
 {
     //using (_log.NewTrace())
     {
         try
         {
             WcfClientUtils.VerifyParameter("roleName", roleName);
             RoleExistsRequest request = new RoleExistsRequest();
             request.RoleName = roleName;
             request.ServiceSessionToken = _authenticationKey;
             return _appService.RoleExists(request).RoleExists;
         }
         catch (Exception ex)
         {
             throw WcfUtils.Extract(ex);
         }
     }
 }