Skip to content

Instantly share code, notes, and snippets.

View rikbosch's full-sized avatar

Rik rikbosch

View GitHub Profile
@rikbosch
rikbosch / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../notification-elements/notification-alert.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../paper-toast/paper-toast.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-item/paper-item.html">
<link rel="import" href="../paper-input/paper-input.html">
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Disable-UAC
Enable-RemoteDesktop
choco install TelnetClient -source windowsfeatures
choco install webpicommandline
public static class OrleansRuntimeDiagnosticsConfigurationExtensions
{
public static ClusterConfiguration UseDiagnostics(this ClusterConfiguration config)
{
config.Globals.RegisterBootstrapProvider<OrleansRuntimeDiagnosticsBootstrapper>(nameof(OrleansRuntimeDiagnosticsBootstrapper));
return config;
}
}
@rikbosch
rikbosch / OrleansSiloHostCommunicationListener.cs
Last active November 3, 2017 09:35
OrleansCommunicationListener 2.0.0-beta1
internal class OrleansSiloHostCommunicationListener : ICommunicationListener
{
private readonly ISiloHost _host;
public OrleansSiloHostCommunicationListener(StatelessService service, Action<ISiloHostBuilder> app)
{
var builder = new SiloHostBuilder();
//configure
app(builder);
@rikbosch
rikbosch / StreamStoreWithPolicyWrapper.cs
Created January 7, 2019 13:35
StreamStoreWithPolicyWrapper.cs
public class StreamStoreWithPolicyWrapper : IStreamStore
{
private readonly IStreamStore _inner;
private readonly IAsyncPolicy _policy;
private readonly string _contextPrefix;
public StreamStoreWithPolicyWrapper(IOptions<StreamStoreWithPolicyWrapperSettings> config, IStreamStore inner, IReadOnlyPolicyRegistry<string> policyRegistry)
{
_inner = inner;
@rikbosch
rikbosch / AdoNetJsonStorageProvider.cs
Created April 26, 2019 08:29
AdoNetJsonStorageProvider for Orleans, allowing custom jsonserializer settings
using System;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using Orleans;
using Orleans.Providers;
using Orleans.Runtime;
using Orleans.Serialization;
@rikbosch
rikbosch / ClaimsPrincipalSerializer.cs
Created March 19, 2020 12:13
Orleans ClaimsPrincipal Serializer
[Serializable]
public class SerializableClaimsPrincipal
{
public List<SerializableClaimsIdentity> Identities { get; set; }
}
[Serializable]
public class SerializableClaimsIdentity
{
public string AuthenticationType { get; set; }