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
| using SixLabors.ImageSharp; | |
| using SixLabors.ImageSharp.Advanced; | |
| using SixLabors.ImageSharp.PixelFormats; | |
| using System.ComponentModel; | |
| using System.Globalization; | |
| using System.Runtime.CompilerServices; | |
| using System.Runtime.InteropServices; | |
| using System.Windows; | |
| using System.Windows.Media; | |
| using System.Windows.Media.Imaging; |
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
| using System; | |
| using System.Collections.Concurrent; | |
| using System.Threading; | |
| public static class CancellationTokenExtensions | |
| { | |
| private static readonly ConcurrentDictionary<CancellationToken, string> _reasons = new(); | |
| private static readonly ConcurrentDictionary<CancellationToken, CancellationTokenSource> _sources = new(); | |
| // Method to create a CancellationToken with a reason |
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 abstract record PersonDto : BaseDto | |
| { | |
| protected PersonDto() { } | |
| public string Firstname { get; init; } | |
| public string Lastname { get; init; } | |
| public string FullName => $"{Firstname} {Lastname}"; |