public DetailsPageViewModel(IDialogService dialogService, IAPIWrapper<Show> apiWrapper) { _dialogService = dialogService; _apiWrapper = apiWrapper; InitCommands(); InitViewState(); InitData(); }
public SearchPageViewModel(IAPIWrapper<Show> apiWrapper, IDialogService dialogService, IPageNavigationService navigationService) { _apiWrapper = apiWrapper; _dialogService = dialogService; _navigationService = navigationService; InitViewState(); InitCollections(); InitCommands(); }
private static Session session = new Session(); // Instantiate singleton here public static IAPISession RenewSession(this IAPIWrapper wrapper) { // implementation details }
// This is an extension method for the IAPISession GetCurrentSession method // the this keyword before the first parameter makes this an extension method public static IAPISession GetCurrentSession(this IAPIWrapper wrapper) { // implementation details // use session here }