Esempio n. 1
0
 public UserProfileController(IOptions <TripViewerConfiguration> EnvVars)
 {
     _envvars   = EnvVars.Value ?? throw new ArgumentNullException(nameof(EnvVars));
     _up        = new UserStore(_envvars.USERPROFILE_API_ENDPOINT);
     _wcfclient = new NewQuoteServiceClient(NewQuoteServiceClient.EndpointConfiguration.BasicHttpBinding_INewQuoteService,
                                            new System.ServiceModel.EndpointAddress($"{_envvars.WCF_ENDPOINT}/NewQuoteService.svc"));
 }
Esempio n. 2
0
        public IActionResult Index()
        {
            TripViewerConfiguration tv = new TripViewerConfiguration();

            tv.USER_ROOT_URL      = Configuration.GetValue <string>("USER_ROOT_URL");
            tv.USER_JAVA_ROOT_URL = Configuration.GetValue <string>("USER_JAVA_ROOT_URL");
            tv.TRIPS_ROOT_URL     = Configuration.GetValue <string>("TRIPS_ROOT_URL");
            tv.POI_ROOT_URL       = Configuration.GetValue <string>("POI_ROOT_URL");
            return(View(tv));
        }
 public UserProfileController(IOptions <TripViewerConfiguration> EnvVars)
 {
     _envvars = EnvVars.Value ?? throw new ArgumentNullException(nameof(EnvVars));
 }