protected override void InitializeTarget() { try { _distributor = new LogEntryDistributor(Port, IPAddressStartsWith, MaxConnectedClients, ClientTimeOut); _enabled = true; } catch(Exception) { _enabled = false; if (ThrowExceptionIfSetupFails) throw; } }
protected override void InitializeTarget() { try { _distributor = new LogEntryDistributor(Port, IPAddressStartsWith, MaxConnectedClients, ClientTimeOut); _enabled = true; } catch (Exception) { _enabled = false; if (ThrowExceptionIfSetupFails) { throw; } } }