Beispiel #1
0
        public ClientApplicationVersion GetLatestVersionFromServer()
        {
            Log.Info("Getting last client appliation version from server.");
            ClientApplicationVersion latestVersion = null;
            var userService = ServiceFactory.GetClientApplicationService();
            var request     = new GetLastClientAppVersionsRequest()
            {
                Username = PrintingApp.UserCredential.UserName,
                Password = PrintingApp.UserCredential.Password,
            };
            var response = userService.GetLastClientAppVersions(request);

            if (response.ResultType == ResultTypes.Ok && response.ClientApplicationVersions != null)
            {
                latestVersion = response.ClientApplicationVersions.FirstOrDefault(v => v.ApplicationIdentifier == PrintingApp.ApplicationIdentifier);
            }

            return(latestVersion);
        }
 public GetLastClientAppVersionsResponse GetLastClientAppVersions(GetLastClientAppVersionsRequest request)
 {
     return(MessageProcessor.Process(request, new GetLastClientAppVersionOp()));
 }