コード例 #1
0
 public static void AddUser(User user)
 {
     using (var randomizerService = new RandomizerServiceClient(new BasicHttpBinding(), RemoteAddress))
     {
         randomizerService.AddUser(user);
         randomizerService.Close();
     }
 }
コード例 #2
0
 public static void ChangeUserDate(Guid userGuid)
 {
     using (var randomizerService =
                new RandomizerServiceClient(new BasicHttpBinding(), RemoteAddress))
     {
         randomizerService.ChangeUserDate(userGuid);
         randomizerService.Close();
     }
 }
コード例 #3
0
 public static List <Request> GetAllRequests(Guid userGuid)
 {
     using (var randomizerService = new RandomizerServiceClient(new BasicHttpBinding(), RemoteAddress))
     {
         var requests = randomizerService.GetAllRequests(userGuid);
         randomizerService.Close();
         return(requests.ToList());
     }
 }
コード例 #4
0
 public static void AddRequest(Guid userGuid, Request request)
 {
     using (var randomizerService =
                new RandomizerServiceClient(new BasicHttpBinding(), RemoteAddress))
     {
         randomizerService.AddRequest(userGuid, request);
         randomizerService.Close();
     }
 }
コード例 #5
0
 public static IEnumerable <User> GetAllUsers()
 {
     using (var randomizerService = new RandomizerServiceClient(new BasicHttpBinding(), RemoteAddress))
     {
         var users = randomizerService.GetAllUsers();
         randomizerService.Close();
         return(users);
     }
 }