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