Skip to content

Instantly share code, notes, and snippets.

Claudio Bernasconi claudiobernasconi

Block or report user

Report or block claudiobernasconi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@claudiobernasconi
claudiobernasconi / app.html
Created Mar 12, 2017
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.
View app.html
<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 Dec 13, 2016
App.config consisting of Akka.Net HOCON configuration and log4net logger configuration.
View App.config
<?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 Dec 13, 2016
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.
View JobCoordinatorActor.cs
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;
You can’t perform that action at this time.