コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the ApplicationList class.
        /// </summary>
        /// <param name="applicationListResult">
        /// Result of a REST call, containing list of applications.
        /// </param>
        internal ApplicationList(ApplicationListResult applicationListResult)
        {
            if (applicationListResult == null)
            {
                throw new ArgumentNullException("applicationListResult");
            }

            this.Applications = applicationListResult.Applications.Select(applicationResult => new ApplicationDetails(applicationResult));
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the ApplicationList class.
        /// </summary>
        /// <param name="applicationListResult">
        /// Result of a REST call, containing list of applications.
        /// </param>
        internal ApplicationList(ApplicationListResult applicationListResult)
        {
            if (applicationListResult == null)
            {
                throw new ArgumentNullException("applicationListResult");
            }

            this.Applications = applicationListResult.Applications.Select(applicationResult => new ApplicationDetails(applicationResult));
        }
コード例 #3
0
        /// <inheritdoc />
        public async Task <IEnumerable <ApplicationDetails> > ListCompletedApplicationsAsync(DateTime submittedAfterInUtc, DateTime submittedBeforeInUtc)
        {
            long submittedTimeBegin      = ConvertDateTimeToUnixEpoch(submittedAfterInUtc);
            long submittedTimeEnd        = ConvertDateTimeToUnixEpoch(submittedBeforeInUtc);
            ApplicationListResult result = await this.readProxy.ListCompletedApplicationsAsync(submittedTimeBegin.ToString(), submittedTimeEnd.ToString());

            ApplicationList applications = new ApplicationList(result);

            return(applications.Applications);
        }