Skip to content

Instantly share code, notes, and snippets.

@dsarfati
dsarfati / AppInsightsLogger.cs
Last active November 22, 2017 08:55
Orleans Application Insights Logger
using System;
using System.Collections.Generic;
using System.Reflection;
using Microsoft.ApplicationInsights;
using Microsoft.ApplicationInsights.Channel;
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.Extensions.Logging;
using Orleans.Runtime;
using Zapic.Service.Interfaces;
@dsarfati
dsarfati / carthage-xcodebuild.ZjOLaT.log
Created July 11, 2017 15:10
NotificationBanner 1.4.0 Carthage Failure
/usr/bin/xcrun xcodebuild -workspace /Users/daniel/Dev/ExampleFramework/Carthage/Checkouts/MarqueeLabel/MarqueeLabel.xcworkspace -scheme MarqueeLabel -configuration Release -derivedDataPath /Users/daniel/Library/Caches/org.carthage.CarthageKit/DerivedData/MarqueeLabel/3.1.0 -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build (launched in /Users/daniel/Dev/ExampleFramework/Carthage/Checkouts/MarqueeLabel)User defaults from command line:
IDEDerivedDataPathOverride = /Users/daniel/Library/Caches/org.carthage.CarthageKit/DerivedData/MarqueeLabel/3.1.0
Build settings from command line:
BITCODE_GENERATION_MODE = bitcode
CARTHAGE = YES
CODE_SIGN_IDENTITY =
CODE_SIGNING_REQUIRED = NO
ONLY_ACTIVE_ARCH = NO
SDKROOT = iphoneos10.3
@dsarfati
dsarfati / Cluster-Clean Shut Down.log
Created April 25, 2016 23:02
Orleans SQL Membership Table Errors
[2016-04-25 22:57:45.387 GMT 1 INFO 100404 Silo 169.254.22.7:0] Silo starting with GC settings: ServerGC=False GCLatencyMode=Interactive
[2016-04-25 22:57:45.391 GMT 1 WARNING 100405 Silo 169.254.22.7:0] Note: Silo not running with ServerGC turned on or with GCLatencyMode.Batch enabled - recommend checking app config : <configuration>-<runtime>-<gcServer enabled="true"> and <configuration>-<runtime>-<gcConcurrent enabled="false"/>
[2016-04-25 22:57:45.391 GMT 1 WARNING 100405 Silo 169.254.22.7:0] Note: ServerGC only kicks in on multi-core systems (settings enabling ServerGC have no effect on single-core machines).
[2016-04-25 22:57:45.392 GMT 1 INFO 100403 Silo 169.254.22.7:0] -------------- Initializing Secondary silo on host DRACOCLUSTER-1 MachineName DRACOCLUSTER-1 at 169.254.22.7:0, gen 199321065 --------------
[2016-04-25 22:57:45.425 GMT 1 INFO 100415 Silo 169.254.22.7:0] Starting silo DRACOCLUSTER-1 with runtime Version='1.2.0.0 (Release).' .NET version='4.0.30319.42000
@dsarfati
dsarfati / ClusterSingleton.cs
Created April 5, 2016 16:49
Orleans Cluster Singleton
public static class GrainExtensions
{
public static T GetGrain<T>(this IGrainFactory grainFactory) where T : IGrainWithSingletonKey
{
return grainFactory.GetGrain<T>(Guid.Empty);
}
}
/// <summary>
/// Marker interface for cluster level singleton
@dsarfati
dsarfati / Akka PubSub Extensions.md
Last active February 18, 2016 16:51
Akka Pub/Sub Extensions

Simple helper classes that allow Akka Actors to publish and subscribe to a DistributedPubSub system by automatically determining the "topic" name from the class name.