private WritableNetworkService( [Parameter(typeof(NetworkServiceOptions.NetworkServicePort))] int nsPort, IObserver <WritableNsMessage <T> > messageHandler, IIdentifierFactory idFactory, INameClient nameClient, WritableRemoteManagerFactory remoteManagerFactory) { IPAddress localAddress = NetworkUtils.LocalIPAddress; _remoteManager = remoteManagerFactory.GetInstance <WritableNsMessage <T> >(localAddress, nsPort); _messageHandler = messageHandler; _nameClient = nameClient; _connectionMap = new Dictionary <IIdentifier, IConnection <T> >(); Logger.Log(Level.Info, "Started network service"); }