Example #1
0
 public UserLoginActor(ClusterNodeContext clusterContext, ActorBoundChannelRef channel, IPEndPoint clientRemoteEndPoint)
 {
     _logger           = LogManager.GetLogger($"UserLoginActor({clientRemoteEndPoint})");
     _clusterContext   = clusterContext;
     _channel          = channel;
     _isInternalAccess = clientRemoteEndPoint.Address == IPAddress.None;
 }
Example #2
0
 void IActorBoundChannelObserver.ChannelOpen(IActorBoundChannel channel, object tag)
 {
     _channel = (ActorBoundChannelRef)channel;
     if (_id.StartsWith("bot") == false)
     {
         _eventObserver.Channel = new AkkaReceiverNotificationChannel(((ActorBoundChannelRef)channel).CastToIActorRef());
     }
 }
Example #3
0
        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
            });
        }
Example #4
0
 public UserLoginActor(ClusterNodeContext clusterContext, ActorBoundChannelRef channel, EndPoint clientRemoteEndPoint)
 {
     _logger         = LogManager.GetLogger($"UserLoginActor({clientRemoteEndPoint})");
     _clusterContext = clusterContext;
     _channel        = channel;
 }
Example #5
0
 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;
 }
Example #9
0
 void IActorBoundChannelObserver.ChannelOpen(IActorBoundChannel channel, object tag)
 {
     _channel = (ActorBoundChannelRef)channel;
 }
Example #10
0
 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);
 }