Skip to content

Instantly share code, notes, and snippets.

View beachwalker's full-sized avatar

Thomas Stegemann beachwalker

View GitHub Profile
@Horusiath
Horusiath / Example.cs
Last active March 29, 2022 09:38
Typed actor refs snipped for Akka.NET
using System;
namespace Akka.Testing
{
public interface IMyMessage { }
public sealed class MessageA : IMyMessage { }
public sealed class MessageB : IMyMessage { }
public class MyActor : Actor<IMyMessage>
{
@asmorger
asmorger / CaliburnAutofacApplication.cs
Last active November 11, 2016 15:36
Caliburn.Micro Application Bootstrapper to replace the default DI container with Autofac
namespace MyApplication.CustomBootstrapper
{
public abstract class CaliburnAutofacApplication : CaliburnApplication
{
protected IContainer Container;
private readonly ContainerBuilder _builder;
private FrameAdapter _rootFrame;
protected CaliburnAutofacApplication()
{
@canton7
canton7 / ValidatingScreen.cs
Last active May 30, 2020 22:28
Caliburn Micro Validations
using Caliburn.Micro;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ValidationTest
{
@dbuksbaum
dbuksbaum / EventAggregatorExtensions.cs
Created August 19, 2011 15:58
Caliburn.Micro Event Aggregator Extensions
public static class EventAggregatorExtensions
{
public static void Subscribe(this IEventAggregator eventAggregator, params IHandle[] handlers)
{
Subscribe(eventAggregator, (IEnumerable<IHandle>)handlers);
}
public static void Subscribe(this IEventAggregator eventAggregator, IEnumerable<IHandle> handlers)
{
foreach(var handler in handlers)