2025-02-06 16:58:13 +01:00
|
|
|
|
using Autofac;
|
2025-02-05 18:38:29 +01:00
|
|
|
|
|
|
|
|
|
|
namespace SetupInfrastructure
|
2025-01-24 18:04:35 +01:00
|
|
|
|
{
|
2025-02-06 16:58:13 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// SETUP APPLICATION USER NAMED sathumper
|
|
|
|
|
|
///
|
|
|
|
|
|
/// This should be handled on the Postgresql db server with a superadmin or similar.
|
|
|
|
|
|
///
|
|
|
|
|
|
/// Execute SQL CreateRole.txt
|
|
|
|
|
|
///
|
|
|
|
|
|
/// After that is executed it is time for running this main program
|
|
|
|
|
|
/// Remember to use the newly created sathumper
|
|
|
|
|
|
/// "ConnectionStrings": {
|
|
|
|
|
|
/// "ptdb": "Host=192.168.1.57;Port=5432;Database=ptdb01;User Id=sathumper;Password=<secret>;"
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
internal class Program
|
|
|
|
|
|
{
|
|
|
|
|
|
static async Task Main(string[] args)
|
|
|
|
|
|
{
|
|
|
|
|
|
var container = new Startup().ConfigureContainer();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
container.Resolve
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-02-05 18:38:29 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-01-24 18:04:35 +01:00
|
|
|
|
}
|