One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
In order to access a server hosted within a vm (guest), for development purposes from the host OS, which is restricted to same origin / localhost only requests, I set up a siple nginx reverse proxy to forward my requests.
public class MediatorPipeline<TRequest, TResponse> | |
: IRequestHandler<TRequest, TResponse> | |
where TRequest : IRequest<TResponse> | |
{ | |
private readonly IRequestHandler<TRequest, TResponse> _inner; | |
private readonly IEnumearble<IMessageValidator<TRequest>> _validators; | |
private readonly IMessageAuthorizer _authorizer; | |
private readonly IEnumerable<IPreRequestProcessor<TRequest>> _preProcessors; | |
private readonly IEnumerable<IPostRequestProcessor<TRequest, TResponse>> _postProcessors; | |
private readonly IEnumerable<IResponseProcessor<TResponse>> _responseProcessors; |
Instructions
Request: | |
Proxy to teamcity. Use a proxy in IIS and redirect "input" to "output". | |
Ideas: | |
http://jonalb.com/post/2010/10/23/TeamCity-On-Port-80-In-IIS.aspx | |
http://www.wrapcode.com/infrastructure/configure-reverse-proxy-with-url-rewrite-and-arr-for-iis/ | |
Solution: | |
- Create an empty site in IIS |
using Markdig; | |
using Markdig.Syntax; | |
using Markdig.Syntax.Inlines; | |
using QuestPDF.Fluent; | |
using QuestPDF.Helpers; | |
using QuestPDF.Infrastructure; | |
namespace PdfExperiments; | |
public enum BlockType |
// requires the `Akka` NuGet package to be installed in the query | |
int entitiesPerNodeFactor = 100; | |
List<string> nodes = Enumerable.Range(0, 10).Select(c => $"hostname-{c}").ToList(); | |
Dictionary<string, int> entityToNodeAllocations = nodes.ToDictionary(c => c, k => 0); | |
var entityIds = Enumerable.Range(0, nodes.Count * entitiesPerNodeFactor).Select(e => $"entity-{e}"); | |
foreach(var e in entityIds){ | |
var hashCode = MurmurHash.StringHash(e); |