public void UseProfileOnNIC(string profileName, string interfaceName) { var profiles = Store.Retrieve(); //If the supplied profile name is not found, DHCP is used instead. Profile target = (from p in profiles where p.Name.ToUpper() == profileName.ToUpper() select p).DefaultIfEmpty(Profile.DHCPDefault).First(); Applier.Apply(target, interfaceName); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private void applyTransaction(Transaction transaction) throws org.neo4j.internal.kernel.api.exceptions.TransactionFailureException private void ApplyTransaction(Transaction transaction) { // TODO you know... we could have just appended the transaction representation to the log // and the next startup of the store would do recovery where the transaction would have been // applied and all would have been well. using (Applier applier = CreateApplier()) { applier.Apply(transaction); } }
public void UseDefaultDHCP() { Applier.Apply(Profile.DHCPDefault, Settings.DefaultNIC); }