private bool ShouldReconfigureConnection(IFpgaConnectionConfig config) { var oldReceiverConfig = _config as IFpgaConnectionConfig; return(config.IpAddress != oldReceiverConfig.IpAddress || config.Port != oldReceiverConfig.Port); }
private IActorRef CreateConnectionChild(IFpgaConnectionConfig config, IActorRef framingActor) { _endPoint = new IPEndPoint(IPAddress.Parse(config.IpAddress), config.Port); _retryConnectionTimeout = config.RetryConnectionTimeout; var actor = Context.ActorOf(FpgaConnectionActor.GetProps(_endPoint, _retryConnectionTimeout, framingActor)); Context.Watch(actor); return(actor); }