コード例 #1
0
        public ClearPaymentBackgroundTask()
        {
#if !DEBUG
            HockeyClient.Current.Configure(ServiceConstants.HOCKEY_APP_WINDOWS_ID);
#endif

            HockeyClient.Current.TrackEvent("BackgroundTask");

            var sqliteConnectionCreator = new DatabaseManager(new WindowsSqliteConnectionFactory(),
                new MvxWindowsCommonFileStore());
            var notificationService = new NotificationService();

            var accountRepository = new AccountRepository(new AccountDataAccess(sqliteConnectionCreator),
                notificationService);

            paymentManager = new PaymentManager(
                new PaymentRepository(new PaymentDataAccess(sqliteConnectionCreator),
                    new RecurringPaymentDataAccess(sqliteConnectionCreator),
                    accountRepository,
                    new CategoryRepository(new CategoryDataAccess(sqliteConnectionCreator), notificationService),
                    notificationService),
                accountRepository,
                null);
        }
コード例 #2
0
 public void Init()
 {
     connectionCreator = new DatabaseManager(new WindowsSqliteConnectionFactory(),
         new MvxWindowsCommonFileStore());
 }