Exemple #1
0
 public CreateController()
 {
     if (_srv == null)
     {
         _srv = new dbService();
     }
 }
Exemple #2
0
        void Initialize()
        {
#if DEBUG
            Constants.Host = "192.168.1.81";
            Constants.Port = 59764;
#else
            Constants.Host = "panitbox.com";
            Constants.Port = 80;
#endif
            appDb            = new AppDb();
            Constants.DBName = "AppDb" + Settings.LoggedInUserId + ".db3";
            dbs = new dbService(GetLocalFilePath(Constants.DBName), appDb.InitTables, appDb.dbLog);


            //string mastersDbPath = GetLocalFilePath("masters.db3");
            //mastersDb = new SQLiteAsyncConnection(mastersDbPath);
            //mastersSyncDb = mastersDb.GetConnection();
        }
Exemple #3
0
 public WebhookController()
 {
     bot        = new Api("438518161:AAG5xVKFbV4uLf_6CtbyocQhbBv7hHLyL5A");
     _dbService = new dbService();
 }
Exemple #4
0
 public void InitTables(dbService db)
 {
     dbService.Db.CreateTablesAsync(types: new Type[] {
         typeof(JobInfo)
     }).ConfigureAwait(false);
 }