Changed Register port into Xamarin App
This commit is contained in:
parent
7b7c68d85c
commit
e4589b5be2
@ -2,6 +2,9 @@
|
|||||||
{
|
{
|
||||||
public class GlobalSetting
|
public class GlobalSetting
|
||||||
{
|
{
|
||||||
|
public const string AzureTag = "Azure";
|
||||||
|
public const string MockTag = "Mock";
|
||||||
|
|
||||||
private string _baseEndpoint;
|
private string _baseEndpoint;
|
||||||
private static readonly GlobalSetting _instance = new GlobalSetting();
|
private static readonly GlobalSetting _instance = new GlobalSetting();
|
||||||
|
|
||||||
@ -48,7 +51,7 @@
|
|||||||
|
|
||||||
private void UpdateEndpoint(string baseEndpoint)
|
private void UpdateEndpoint(string baseEndpoint)
|
||||||
{
|
{
|
||||||
RegisterWebsite = string.Format("{0}/Account/Register", baseEndpoint);
|
RegisterWebsite = string.Format("{0}:5105/Account/Register", baseEndpoint);
|
||||||
CatalogEndpoint = string.Format("{0}:5101", baseEndpoint);
|
CatalogEndpoint = string.Format("{0}:5101", baseEndpoint);
|
||||||
OrdersEndpoint = string.Format("{0}:5102", baseEndpoint);
|
OrdersEndpoint = string.Format("{0}:5102", baseEndpoint);
|
||||||
BasketEndpoint = string.Format("{0}:5103", baseEndpoint);
|
BasketEndpoint = string.Format("{0}:5103", baseEndpoint);
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
using eShopOnContainers.Core.ViewModels;
|
using eShopOnContainers.Core.Helpers;
|
||||||
|
using eShopOnContainers.Core.ViewModels;
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@ -17,6 +18,8 @@ namespace eShopOnContainers.Core.Views
|
|||||||
|
|
||||||
protected override async void OnAppearing()
|
protected override async void OnAppearing()
|
||||||
{
|
{
|
||||||
|
GlobalSetting.Instance.BaseEndpoint = Settings.UrlBase;
|
||||||
|
|
||||||
var content = this.Content;
|
var content = this.Content;
|
||||||
this.Content = null;
|
this.Content = null;
|
||||||
this.Content = content;
|
this.Content = content;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user