Skip to content

Instantly share code, notes, and snippets.

View claudiobernasconi's full-sized avatar

Claudio Bernasconi claudiobernasconi

View GitHub Profile
@claudiobernasconi
claudiobernasconi / app.html
Created March 12, 2017 19:41
This gist demonstrates how the router.navigation property in the navigation.ts view does not work as expected when the router property type on the app.ts viewModel is set to any.
<template>
<require from="bootstrap/css/bootstrap.css"></require>
<require from="./header"></require>
<require from="./navigation"></require>
<div style="margin-top: 60px;">
<navigation></navigation>
<div id="master" style="margin-left:250px;padding-left:10px;border-left: 1px solid #000000;">
<div class="alert alert-success" role="alert"><b>Well done!</b> You successfully read this important alert message.</div>
<header></header>
<router-view></router-view>
@claudiobernasconi
claudiobernasconi / App.config
Last active December 13, 2016 13:26
App.config consisting of Akka.Net HOCON configuration and log4net logger configuration.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="akka" type="Akka.Configuration.Hocon.AkkaConfigurationSection, Akka" />
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<log4net>
<root>
<level value="DEBUG" />
<appender-ref ref="Prototype"/>
@claudiobernasconi
claudiobernasconi / JobCoordinatorActor.cs
Last active December 13, 2016 10:02
This Akka.Net Actor implementation works fine in a non-clustered environment. If I enable clustering using a clustered round-robin-pool router on a single node I start getting dead letters after a short period of time which eventually stops executing jobs.
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using Akka.Actor;
using Akka.DI.Core;
using Akka.Routing;
using Prototype.Common.Messages;
using Prototype.Messages;
using Prototype.Shared.Logger;