Skip to content

Commit d416d92

Browse files
Merge pull request MarimerLLC#1872 from danielmartind/ios_bug
MarimerLLC#1630 Fix DataPortal Exception on IOS Project Tracker
2 parents a34210f + 7d044d7 commit d416d92

File tree

1 file changed

+22
-25
lines changed
  • Samples/ProjectTracker/ProjectTracker.Ui.Xamarin/ProjectTracker.Ui.Xamarin

1 file changed

+22
-25
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,46 @@
1-
using Csla.Configuration;
2-
using ProjectTracker.Library;
3-
using System;
4-
using System.Collections.Generic;
5-
using System.Linq;
6-
using System.Text;
1+
using System;
72
using System.Threading.Tasks;
3+
using Csla.Configuration;
4+
using ProjectTracker.Library;
85
using Xamarin.Forms;
96

107
namespace ProjectTracker.Ui.Xamarin
118
{
12-
public partial class App : Application
13-
{
9+
public partial class App : Application
10+
{
1411
public static Page RootPage { get; private set; }
1512

16-
public App ()
17-
{
18-
InitializeComponent();
19-
13+
public App()
14+
{
15+
InitializeComponent();
16+
Csla.DataPortalClient.HttpProxy.UseTextSerialization = true;
2017
CslaConfiguration.Configure()
2118
.DataPortal()
22-
.DefaultProxy(typeof(Csla.DataPortalClient.HttpProxy),
23-
"https://ptrackerserver.azurewebsites.net/api/dataportal");
19+
.DefaultProxy(typeof(Csla.DataPortalClient.HttpProxy),
20+
"https://ptrackerserver.azurewebsites.net/api/dataportaltext");
2421

2522
Library.Security.PTPrincipal.Logout();
2623

2724
MainPage = new NavigationPage(new XamarinFormsUi.Views.Dashboard());
2825
RootPage = MainPage;
2926
}
3027

31-
protected override async void OnStart ()
32-
{
28+
protected override async void OnStart()
29+
{
3330
await Library.Security.PTPrincipal.LoginAsync("manager", "manager");
3431

3532
await RoleList.CacheListAsync();
3633
}
3734

38-
protected override void OnSleep ()
39-
{
40-
// Handle when your app sleeps
41-
}
35+
protected override void OnSleep()
36+
{
37+
// Handle when your app sleeps
38+
}
4239

43-
protected override void OnResume ()
44-
{
45-
// Handle when your app resumes
46-
}
40+
protected override void OnResume()
41+
{
42+
// Handle when your app resumes
43+
}
4744

4845
public static async Task NavigateTo(Type page)
4946
{
@@ -62,4 +59,4 @@ private static async Task NavigateTo(Page page)
6259
await RootPage.Navigation.PushAsync(page);
6360
}
6461
}
65-
}
62+
}

0 commit comments

Comments
 (0)