Skip to content

Instantly share code, notes, and snippets.

🌞
building

Reuben Bond ReubenBond

🌞
building
Block or report user

Report or block ReubenBond

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
@ReubenBond
ReubenBond / ObjectTask.cs
Created Nov 5, 2015
ObjectTask: movified version of ValueTask for use in generated dispatchers
View ObjectTask.cs
public struct ObjectTask : IEquatable<ObjectTask>
{
private static object GetResult<TResult>(Task typedTask)
{
return ((Task<TResult>)typedTask).GetAwaiter().GetResult();
}
private static object GetResult(Task untypedTask)
{
untypedTask?.GetAwaiter().GetResult();
View Program.cs
namespace TestAzureSilo
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Net;
using Orleans;
using Orleans.Runtime;
@ReubenBond
ReubenBond / SerializationCodeGenerator.cs
Created Oct 16, 2015
Orleans IL-based Serializer generator (WIP)
View SerializationCodeGenerator.cs
namespace Orleans.CodeGeneration
{
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Reflection.Emit;
using System.Runtime.Serialization;
@ReubenBond
ReubenBond / Program.cs
Created Jul 6, 2015
Orleans with client/server/interfaces/implementations in a single file. https://github.com/dotnet/orleans/pull/528
View Program.cs
namespace RosleansSilo
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Threading.Tasks;
using Orleans;
@ReubenBond
ReubenBond / Firewall.cs
Created Jun 22, 2015
Snippet to open firewall ports in Windows.
View Firewall.cs
// NOTE: Add a COM reference to NetFwTypeLib
namespace Site.Setup
{
using System;
using System.Linq;
using NetFwTypeLib;
/// <summary>
@ReubenBond
ReubenBond / TransactionExtensions.cs
Last active Apr 30, 2017
Taking part in Service Fabric transactions
View TransactionExtensions.cs
using System;
using System.Collections.Concurrent;
using System.Fabric.Replication;
using System.Reflection;
using System.Reflection.Emit;
using Microsoft.ServiceFabric.Data;
internal static class TransactionExtensions
{
@ReubenBond
ReubenBond / ChatRoomGrain.cs
Created May 14, 2015
ChatRoomGrain snippet
View ChatRoomGrain.cs
"Don't expect this to compile - it's just a snippet"
/// <summary>
/// The chat room grain.
/// </summary>
[StorageProvider(ProviderName = "chats")]
[Reentrant]
@ReubenBond
ReubenBond / ClusterManifestTemplate.xml
Last active Apr 16, 2019
Speedy Service Fabric Dev Cluster Upgrades
View ClusterManifestTemplate.xml
<?xml version="1.0" encoding="utf-8"?>
<!--
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
The settings used within this ClusterManifest are expressly for use only
within a developer single-box environment. Any use of these settings outside
of that environment are highly likely to produce incorrect, and misperforming
@ReubenBond
ReubenBond / WorkerRole.cs
Created Feb 26, 2015
Orleans: modifying internal provider config
View WorkerRole.cs
namespace Orleans.Azure.Silos
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Reflection;
using Microsoft.WindowsAzure;
You can’t perform that action at this time.