예제 #1
0
 private Task InitNavigation()
 {
     return(CoreUtility.ExecuteFunction <Task>("InitNavigation", delegate()
     {
         var navigationService = ViewModelLocator.Resolve <INavigationService>();
         return navigationService.InitializeAsync();
     }));
 }
예제 #2
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));
 }
예제 #3
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));
 }