public UserLoginActor(ClusterNodeContext clusterContext, ActorBoundChannelRef channel, IPEndPoint clientRemoteEndPoint) { _logger = LogManager.GetLogger($"UserLoginActor({clientRemoteEndPoint})"); _clusterContext = clusterContext; _channel = channel; _isInternalAccess = clientRemoteEndPoint.Address == IPAddress.None; }
void IActorBoundChannelObserver.ChannelOpen(IActorBoundChannel channel, object tag) { _channel = (ActorBoundChannelRef)channel; if (_id.StartsWith("bot") == false) { _eventObserver.Channel = new AkkaReceiverNotificationChannel(((ActorBoundChannelRef)channel).CastToIActorRef()); } }
public BotActor(ClusterNodeContext clusterContext, string name, string roomName, Type patternType) { _log = LogManager.GetLogger($"Bot({name})"); _clusterContext = clusterContext; _channel = Context.InterfacedActorOf(() => new ActorBoundDummyChannel()).Cast <ActorBoundChannelRef>(); Self.Tell(new StartMessage { UserId = name, RoomName = roomName, PatternType = patternType }); }
public UserLoginActor(ClusterNodeContext clusterContext, ActorBoundChannelRef channel, EndPoint clientRemoteEndPoint) { _logger = LogManager.GetLogger($"UserLoginActor({clientRemoteEndPoint})"); _clusterContext = clusterContext; _channel = channel; }
void IActorBoundChannelObserver.ChannelClose(IActorBoundChannel channel, object tag) { _channel = null; }
public UserLoginActor(IActorRef actorBoundChannel) { _actorBoundChannel = actorBoundChannel.Cast <ActorBoundChannelRef>().WithRequestWaiter(this); }
public Greeter(ActorBoundChannelRef channel, IPEndPoint clientRemoteEndPoint) { _logger = LogManager.GetLogger($"Greeter({clientRemoteEndPoint})"); _helloGenerator = new HelloGenerator(who => $"Hello {who}!"); }
public EntryActor(ActorBoundChannelRef channel) { _channel = channel; }
void IActorBoundChannelObserver.ChannelOpen(IActorBoundChannel channel, object tag) { _channel = (ActorBoundChannelRef)channel; }
public UserActor(ActorBoundChannelRef channel, string id) { _logger = LogManager.GetLogger($"UserActor({id})"); _channel = channel; _id = id; }
public EntryActor(EntryActorEnvironment environment, ActorBoundChannelRef channel) { _environment = environment; _channel = channel.WithRequestWaiter(this); }