public DataLoadService(IDatabase database) { _db = database; var webApiExecutionContextType = new RSWebApiExecutionContextType(); webApiExecutionContextType.Current = (int)ExecutionContextTypes.Base; WebApiExecutionContext context = new WebApiExecutionContext( executionContextType: webApiExecutionContextType, baseWebApiUrl: Config.BaseWebApiUrl, baseFileUrl: string.Empty, connectionIdentifier: null); _webAPIDataService = new WebApiDataServiceRS(null, context); }
public DataUploadService(ILoggingService log, IDatabase database) { _log = log; _database = database; IWebApiExecutionContext context = new WebApiExecutionContext( executionContextType: new WebApiExecutionContextType(), baseWebApiUrl: Consts.BaseWebApiUrl, baseFileUrl: Consts.BaseFileUrl, connectionIdentifier: Consts.ConnectionIdentifier ); _webAPIDataService = new WebApiDataServiceBB(new LoggingService(), context); _asyncConnection = _database.GetAsyncConnection(); _connection = _database.GetConnection(); }