private void UpdateApplications(Subscription subscription)
 {
     if((subscription != null) && (subscription.Items != null))
     {
         foreach (SubscriptionItem item in subscription.Items)
         {
             ApGetApplicationRequest request = new ApGetApplicationRequest(Settings.Credentials);
             request.ApplicationId = item.ApplicationId;
             ApGetApplicationResponse response = EndPoints.ApDashboardService.GetApplication(request);
             item.Application = response.Application;
         }
     }
 }
Beispiel #2
0
        public ApGetApplicationResponse GetApplication(ApGetApplicationRequest request)
        {
            Log.Debug(this, "GetApplication()");

            try
            {
                Authenticate(request);
                ApGetApplicationResponse response = new ApGetApplicationResponse();
                response.Application = FindApplication(request.ApplicationId);
                return response;
            }
            catch (Exception e)
            {
                Log.Error(this, e);
                throw e;
            }
        }
 private Application GetApplication(int applicationId)
 {
     ApGetApplicationRequest request = new ApGetApplicationRequest(Credentials);
     request.ApplicationId = applicationId;
     ApGetApplicationResponse response = EndPoints.ApDashboardService.GetApplication(request);
     return response.Application;
 }