Skip to content

Instantly share code, notes, and snippets.

@mikewiegand
mikewiegand / Grain1.cs
Last active August 29, 2015 14:02
Grain callback POC
using Callback.GrainInterfaces;
using Orleans;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Callback.GrainCollection
{
[Reentrant]
public class Grain1 : Orleans.GrainBase, IGrain1
{
static void Main(string[] args)
{
// The Orleans silo environment is initialized in its own app domain in order to more
// closely emulate the distributed situation, when the client and the server cannot
// pass data via shared memory.
AppDomain hostDomain = AppDomain.CreateDomain("OrleansHost", null, new AppDomainSetup
{
AppDomainInitializer = InitSilo,
AppDomainInitializerArguments = args,