/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <string> > GetCommencementYearsAsync(this IYears operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetCommencementYearsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { Advancement = new Advancement(this); AgingRecords = new AgingRecords(this); AgingReports = new AgingReports(this); Applications = new Applications(this); Buildings = new Buildings(this); Bursar = new Bursar(this); CaoApps = new CaoApps(this); CertifiedStudents = new CertifiedStudents(this); Countries = new Countries(this); EducationModuleHolds = new EducationModuleHolds(this); EfcaQueueRecords = new EfcaQueueRecords(this); Email = new Email(this); Events = new Events(this); Explorers = new Explorers(this); HostOptions = new HostOptions(this); Hosts = new Hosts(this); Matches = new Matches(this); OrientationReservations = new OrientationReservations(this); ParentTypes = new ParentTypes(this); Person = new Person(this); PostCertificationDeadlines = new PostCertificationDeadlines(this); ProgramsOfInterest = new ProgramsOfInterest(this); ProgramsOfStudy = new ProgramsOfStudy(this); RateTable = new RateTable(this); Registration = new Registration(this); RegistrationAppointments = new RegistrationAppointments(this); ReportAccess = new ReportAccess(this); Salutations = new Salutations(this); SessionCodes = new SessionCodes(this); SessionDates = new SessionDates(this); SpecialFeeCodes = new SpecialFeeCodes(this); States = new States(this); Student = new Student(this); Suffixes = new Suffixes(this); Terms = new Terms(this); Trainings = new Trainings(this); UscDepartments = new UscDepartments(this); UscLocations = new UscLocations(this); UscSchools = new UscSchools(this); WebAdmitApplications = new WebAdmitApplications(this); Years = new Years(this); BaseUri = new System.Uri("http://oweb7-vm.usc.edu:80/PeApi"); SerializationSettings = new JsonSerializerSettings { Formatting = Newtonsoft.Json.Formatting.Indented, DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; DeserializationSettings = new JsonSerializerSettings { DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; CustomInitialize(); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> public static IList <string> GetCommencementYears(this IYears operations) { return(operations.GetCommencementYearsAsync().GetAwaiter().GetResult()); }