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 record MyCommand([property: Identity] Guid Id, string SomeValue); | |
| [AttributeUsage(AttributeTargets.Method)] | |
| public class MyAttribute: Attribute { | |
| public MyAttribute(string something) => Something = something; | |
| public string Something {get;} | |
| } | |
| public static class MyCommandHandler { |
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 Marten; | |
| using Marten.Events.Projections; | |
| using Microsoft.Extensions.Configuration; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using Microsoft.Extensions.Hosting; | |
| var builder = Host.CreateApplicationBuilder(); | |
| builder.Services.AddMarten(opt => { | |
| opt.Connection(builder.Configuration.GetConnectionString("Marten") ?? "Host=localhost; Port=5433; User Id=postgres; Password=pgsql"); | |
| opt.Projections.Add<WorkByDayProjection>(ProjectionLifecycle.Inline); |
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 Marten; | |
| using Marten.Events.Daemon.Resiliency; | |
| using Marten.Events.Projections; | |
| using Marten.Schema; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using Microsoft.Extensions.Hosting; | |
| var builder = Host.CreateApplicationBuilder(); | |
| builder.Services.AddMarten(opts => |
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 Marten; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using Microsoft.Extensions.Hosting; | |
| using Microsoft.Extensions.Logging; | |
| using Wolverine; | |
| var builder = Host.CreateDefaultBuilder(); | |
| builder.UseWolverine(); |
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 Marten; | |
| using Oakton; | |
| using Wolverine; | |
| using Wolverine.Http; | |
| using Wolverine.Marten; | |
| var builder = WebApplication.CreateBuilder(args); | |
| builder.Host.UseWolverine(); | |
| builder.Host.ApplyOaktonExtensions(); |
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 FillSpace : IDynamicComponent<int> | |
| { | |
| private readonly Func<TextSpanDescriptor, TextSpanDescriptor> _styler; | |
| private readonly char _delimiter; | |
| public FillSpace(Func<TextSpanDescriptor, TextSpanDescriptor> styler, char delimiter = '.') | |
| { | |
| _styler = styler; | |
| _delimiter = delimiter; | |
| } |
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 Markdig; | |
| using Markdig.Syntax; | |
| using Markdig.Syntax.Inlines; | |
| using QuestPDF.Fluent; | |
| using QuestPDF.Helpers; | |
| using QuestPDF.Infrastructure; | |
| namespace PdfExperiments; | |
| public enum BlockType |
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 PdfExperiments; | |
| using QuestPDF.Fluent; | |
| using QuestPDF.Helpers; | |
| using QuestPDF.Previewer; | |
| Document.Create(doc => | |
| { | |
| doc.Page(page => | |
| { | |
| page.Size(PageSizes.Letter); |
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 Markdig; | |
| using Markdig.Syntax; | |
| using Markdig.Syntax.Inlines; | |
| using QuestPDF.Fluent; | |
| using QuestPDF.Helpers; | |
| using QuestPDF.Infrastructure; | |
| namespace PdfExperiments; | |
| public record MarkdownBlockStyle(Func<IContainer, IContainer>? ItemStyle, |
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 QuestPDF.Elements; | |
| using QuestPDF.Infrastructure; | |
| using QuestPDF.Fluent; | |
| using QuestPDF.Helpers; | |
| using QuestPDF.Previewer; | |
| Document.Create(doc => | |
| { | |
| doc.Page(page => | |
| { |
NewerOlder