From 1f2d0650b7a8f3c852fbf0d6f17121736a7715a2 Mon Sep 17 00:00:00 2001 From: Ruben Bartelink Date: Wed, 28 Jul 2021 13:29:48 +0100 Subject: [PATCH] Minor fixes --- equinox-shipping/Watchdog/Infrastructure.fs | 2 +- equinox-web-csharp/Web/Controllers/TodosController.cs | 2 +- equinox-web-csharp/Web/Program.cs | 2 +- equinox-web/Web/Controllers/TodosController.fs | 2 +- equinox-web/Web/Program.fs | 2 +- equinox-web/Web/Startup.fs | 2 +- propulsion-summary-consumer/Program.fs | 2 +- propulsion-tracking-consumer/Program.fs | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/equinox-shipping/Watchdog/Infrastructure.fs b/equinox-shipping/Watchdog/Infrastructure.fs index ac1596c73..56b02dc51 100644 --- a/equinox-shipping/Watchdog/Infrastructure.fs +++ b/equinox-shipping/Watchdog/Infrastructure.fs @@ -27,7 +27,7 @@ type Logging() = .Destructure.FSharpTypes() .Enrich.FromLogContext() |> fun c -> if verbose = Some true then c.MinimumLevel.Debug() else c - |> fun c -> c.ConfigureChangeFeedProcessorLogging((changeFeedProcessorVerbose = Some true)) + |> fun c -> c.ConfigureChangeFeedProcessorLogging(verbose = (changeFeedProcessorVerbose = Some true)) |> fun c -> let t = "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj} {NewLine}{Exception}" c.WriteTo.Console(theme=Sinks.SystemConsole.Themes.AnsiConsoleTheme.Code, outputTemplate=t) diff --git a/equinox-web-csharp/Web/Controllers/TodosController.cs b/equinox-web-csharp/Web/Controllers/TodosController.cs index 3aadd8195..bf308c059 100755 --- a/equinox-web-csharp/Web/Controllers/TodosController.cs +++ b/equinox-web-csharp/Web/Controllers/TodosController.cs @@ -22,7 +22,7 @@ public class TodoView // Fulfills contract dictated by https://www.todobackend.com // To run: - // & dotnet run -f netcoreapp3.1 -p Web + // & dotnet run -p Web // https://www.todobackend.com/client/index.html?https://localhost:5001/todos // # NB Jet does now own, control or audit https://todobackend.com; it is a third party site; please satisfy yourself that this is a safe thing use in your environment before using it._ // See also similar backends used as references when implementing: diff --git a/equinox-web-csharp/Web/Program.cs b/equinox-web-csharp/Web/Program.cs index 5562eb490..0e6b47e0e 100755 --- a/equinox-web-csharp/Web/Program.cs +++ b/equinox-web-csharp/Web/Program.cs @@ -23,7 +23,7 @@ public static LoggerConfiguration Configure(this LoggerConfiguration c, string a } static class Program { - private const string AppName = "TodoApp"; + private const string AppName = "TodoBackendTemplate"; public static async Task Main(string[] argv) { diff --git a/equinox-web/Web/Controllers/TodosController.fs b/equinox-web/Web/Controllers/TodosController.fs index 69569eb3a..4afa79070 100644 --- a/equinox-web/Web/Controllers/TodosController.fs +++ b/equinox-web/Web/Controllers/TodosController.fs @@ -14,7 +14,7 @@ type GetByIdArgsTemplate = { id: int } // Fulfills contract dictated by https://www.todobackend.com // To run: -// & dotnet run -f netcoreapp3.1 -p Web +// & dotnet run -p Web // https://www.todobackend.com/client/index.html?https://localhost:5001/todos // # NB Jet does now own, control or audit https://todobackend.com; it is a third party site; please satisfy yourself that this is a safe thing use in your environment before using it._ // See also similar backends used as references when implementing: diff --git a/equinox-web/Web/Program.fs b/equinox-web/Web/Program.fs index 7af84c79f..ec89cf75a 100644 --- a/equinox-web/Web/Program.fs +++ b/equinox-web/Web/Program.fs @@ -25,7 +25,7 @@ let createWebHostBuilder args : IWebHostBuilder = .UseSerilog() .UseStartup() -let [] AppName = "TodoApp" +let [] AppName = "TodoBackendTemplate" [] let main argv = diff --git a/equinox-web/Web/Startup.fs b/equinox-web/Web/Startup.fs index c89abbaeb..a16c469fe 100644 --- a/equinox-web/Web/Startup.fs +++ b/equinox-web/Web/Startup.fs @@ -197,7 +197,7 @@ type Startup() = //#endif //#if cosmos - // AZURE COSMOSDB: Events are stored in an Azure CosmosDb Account (using the SQL API) + // AZURE COSMOSDB: Events are stored as items in a CosmosDb Container // Provisioning Steps: // 1) Set the 3x environment variables EQUINOX_COSMOS_CONNECTION, EQUINOX_COSMOS_DATABASE, EQUINOX_COSMOS_CONTAINER // 2) Provision a container using the following command sequence: diff --git a/propulsion-summary-consumer/Program.fs b/propulsion-summary-consumer/Program.fs index 95588d305..02d1fa37e 100644 --- a/propulsion-summary-consumer/Program.fs +++ b/propulsion-summary-consumer/Program.fs @@ -104,7 +104,7 @@ let [] AppName = "ConsumerTemplate" let start (args : Args.Arguments) = let context = args.Cosmos.Connect() |> Async.RunSynchronously |> CosmosStoreContext.create - let cache = Equinox.Cache (AppName, sizeMb = 10) // here rather than in Todo aggregate as it can be shared with other Aggregates + let cache = Equinox.Cache (AppName, sizeMb = 10) let service = TodoSummary.Cosmos.create (context, cache) let config = FsKafka.KafkaConsumerConfig.Create( diff --git a/propulsion-tracking-consumer/Program.fs b/propulsion-tracking-consumer/Program.fs index ee9217a35..15912c190 100644 --- a/propulsion-tracking-consumer/Program.fs +++ b/propulsion-tracking-consumer/Program.fs @@ -104,7 +104,7 @@ let [] AppName = "ConsumerTemplate" let start (args : Args.Arguments) = let context = args.Cosmos.Connect() |> Async.RunSynchronously |> CosmosStoreContext.create - let cache = Equinox.Cache (AppName, sizeMb = 10) // here rather than in SkuSummary aggregate as it can be shared with other Aggregates + let cache = Equinox.Cache (AppName, sizeMb = 10) let service = SkuSummary.Cosmos.create (context, cache) let config = FsKafka.KafkaConsumerConfig.Create(