/// <summary> /// The initialize request handler. /// </summary> /// <param name="hostType"> /// The host type. /// </param> private void InitializeHandler(string hostType) { var httpClient = new HttpClient(new WebRequestHandler { ReadWriteTimeout = 10 * 1000 }) { // Specify request level timeout which decides maximum time taht can be spent on // download/upload files.. Timeout = TimeSpan .FromMinutes( 60) }; var requestHandler = new AdminRequestHandler(httpClient, hostType); this.InitializeRoutes(requestHandler); }
/// <summary> /// The initialize account modules or routes. /// </summary> /// <param name="handler"> /// The handler. /// </param> private void InitializeRoutes(AdminRequestHandler handler) { User = new UserRoute(handler); Survey = new SurveyRoute(handler); Project = new ProjectRoute(handler); Email = new EmailRoute(handler); Common = new CommonRoute(handler); Questionnaire = new QuestionnaireRoute(handler); Media = new MediaRoute(handler); Panel = new PanelRoute(handler); Panellist = new PanellistRoute(handler); ProfileElement = new ProfileElementRoute(handler); GeoLocation = new GeoLocationRoute(handler); GeoFence = new GeoFencingRoute(handler); Sample = new SampleRoute(handler); Theme = new ThemeRoute(handler); Scheduler = new SchedulerRoute(handler); Notification = new NotificationRoute(handler); }