예제 #1
0
 private Task InitNavigation()
 {
     return(CoreUtility.ExecuteFunction <Task>("InitNavigation", delegate()
     {
         var navigationService = ViewModelLocator.Resolve <INavigationService>();
         return navigationService.InitializeAsync();
     }));
 }
예제 #2
0
 protected override async void OnStart()
 {
     await CoreUtility.ExecuteMethodAsync("OnStart", async delegate()
     {
         base.OnStart();
         await InitNavigation();
         base.OnResume();
     });
 }
예제 #3
0
 private void InitApp()
 {
     CoreUtility.ExecuteMethod("InitApp", delegate()
     {
         Container.Track = new CoreTrack();
         ViewModelLocator.RegisterDependencies(UseMockServices);
         Container.SGApp = new SGApp();
     });
 }
예제 #4
0
 protected virtual Task <T> ExecuteThrowingFunctionAsync <T>(string name, Func <Task <T> > method)
 {
     return(CoreUtility.ExecuteFunctionAsync <T>(string.Format("{0}.{1}", this.TrackPrefix, name), method, delegate(Exception ex) { throw ex; }));
 }
예제 #5
0
 protected virtual Task <T> ExecuteFunctionAsync <T>(string name, Func <Task <T> > method, Action <Exception> onError = null)
 {
     return(CoreUtility.ExecuteFunctionAsync <T>(string.Format("{0}.{1}", this.TrackPrefix, name), method, onError));
 }
예제 #6
0
 protected virtual T ExecuteThrowingFunction <T>(string name, Func <T> method, bool supressMethodLogging = false)
 {
     return(CoreUtility.ExecuteFunction <T>(string.Format("{0}.{1}", this.TrackPrefix, name), method, delegate(Exception ex) { throw ex; }, supressMethodLogging));
 }
예제 #7
0
 protected virtual T ExecuteFunction <T>(string name, Func <T> method, Action <Exception> onError = null, bool supressMethodLogging = false)
 {
     return(CoreUtility.ExecuteFunction <T>(string.Format("{0}.{1}", this.TrackPrefix, name), method, onError, supressMethodLogging));
 }
예제 #8
0
 protected virtual void ExecuteMethod(string name, Action method, Action <Exception> onError = null, bool supressMethodLogging = false)
 {
     CoreUtility.ExecuteMethod(string.Format("{0}.{1}", this.TrackPrefix, name), method, onError, supressMethodLogging);
 }