private static string GetInclusionSqlText(PaymentSystem system, Inclusions inclusion) { var path = Path.Combine(BasePath, "SQL", "Inclusions", system.ToString(), $"{inclusion.Description()}.sql"); var sql = File.ReadAllText(path); return(UpdateTableAndSchemaNames(sql)); }
private static string GetSqlText(PaymentSystem system, Script script) { var scriptPath = Path.Combine(BasePath, "SQL", system.ToString(), $"{script.ToString()}.sql"); var fileSql = File.ReadAllText(scriptPath); var sql = UpdateTableAndSchemaNames(fileSql); var result = new StringBuilder(); result.AppendLine(); result.AppendLine(); result.Append(sql); return(result.ToString()); }
protected WorkerBase(PaymentSystem paymentSystem, string workerName = null) { WorkerName = workerName ?? GetType().Name; PaymentSystem = paymentSystem; _logger = Log.Logger.ForContext("WalletEx", $"{paymentSystem.ToString()}.{workerName}"); }