This file contains 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 EventStorageBootStrap | |
{ | |
public static void BootStrap() | |
{ | |
... | |
var eventStore = Wireup.Init() | |
... | |
.UsingNewtonsoftJsonSerialization(new VersionedEventSerializationBinder()) | |
... | |
.Build(); |
This file contains 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
<Application x:Class="WpfApp1.App" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:local="clr-namespace:WpfApp1" | |
StartupUri="MainWindow.xaml"> | |
<Application.Resources> | |
<!-- base colors --> | |
<SolidColorBrush x:Key="buttonBackground" Color="#ff00ff"></SolidColorBrush> | |
<!-- base button style --> |
This file contains 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 Microsoft.EntityFrameworkCore; | |
namespace GlobalValueConverterSample | |
{ | |
public class AppDbContext : DbContext | |
{ | |
public AppDbContext(DbContextOptions<AppDbContext> options) | |
: base(options) | |
{ |
This file contains 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 static class StringExtensions | |
{ | |
/// <summary> | |
/// Converts characters above ASCII to their ASCII equivalents. For example, | |
/// accents are removed from accented characters. | |
/// </summary> | |
/// <param name="input"> The string of characters to fold </param> | |
/// <param name="length"> The length of the folded return string </param> | |
/// <returns> length of output </returns> | |
public static string FoldToASCII(this string input, int? length = null) |