This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Program.cs | |
app.UseMiddleware<PersistedQueryNotFoundIsNotAnError.ResponseBodyLoggingMiddleware>(); | |
... | |
builder.RegisterPersistedQueryNotFoundLogHandling(); | |
using Microsoft.ApplicationInsights.DataContracts; | |
using Microsoft.ApplicationInsights.Extensibility; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class User | |
{ | |
public string ConcurrencyToken { get; internal set; } | |
public Email? Email { get; internal set; } | |
public Name Name { get; internal set; } | |
} | |
public record Email | |
{ | |
private Email(string value) { Value = value; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
Console.WriteLine($"Enter 'accounts' to see a list of all current balances\nEnter 'log' to see the transaction log\nEnter a transfer command on format 'from -> to: amount' to make a transaction:"); | |
Console.WriteLine(); | |
while (true) | |
{ | |
Console.Write("> "); | |
var command = Console.ReadLine(); | |
if(command == "accounts") | |
{ |