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
<Project Sdk="Microsoft.NET.Sdk.Web"> | |
<PropertyGroup> | |
<TargetFramework>netcoreapp3.1</TargetFramework> | |
<AssemblyName>HtmlToPdfAws</AssemblyName> | |
<Rootnamespace>HtmlToPdfAws</Rootnamespace> | |
</PropertyGroup> | |
<ItemGroup> | |
<!-- native assets excluded as we are using lambda layers instead --> |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
/// <summary> | |
/// Repro for intermittent failure of TextEntity.CreateExtrusions | |
/// The issue also affects TextEntity.CreateSurfaces | |
/// | |
/// Expected Output: | |
/// - "ABCDEFGHIJKLMNOPQRSTUVWXYZ-0123456789" rendered on every line | |
/// | |
/// Actual Output: | |
/// - About 50% of the lines are truncated abd only print part of the string because the generated extrusion is null. | |
/// e.g. "ABCDEFGHIJ" |
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 System.Net; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Threading.Tasks; | |
using DinkToPdf; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Extensions.Http; | |
using Microsoft.Extensions.Logging; | |
using IPdfConverter = DinkToPdf.Contracts.IConverter; |
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
//Source: https://codeblog.jonskeet.uk/2011/08/22/optimization-and-generics-part-1-the-new-constraint/ | |
using System; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
#pragma warning disable 0169 | |
public class SmallClass { int x; } |