This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ActorScope(typeof(ActorScopeInstaller))] | |
public class TestActor : IActor | |
{ | |
public Task ReceiveAsync(IContext context) | |
{ | |
switch (context.Message) | |
{ | |
case Started _: | |
var scopeContext = context as ActorScopeContext; | |
var pid = scopeContext.Spawn<SomeActor>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ActorContainerNext : WindsorContainer | |
{ | |
private readonly ConcurrentDictionary<Type, PID> singletons = new ConcurrentDictionary<Type, PID>(); | |
public ActorContainerNext(IWindsorContainer parent = null) | |
{ | |
Parent = parent; | |
Register(ContainerComponents().ToArray()); | |
} |