IFirewallRules
Interface in Oadm.Sdk.Network · Oadm.Sdk.dll
The host firewall as far as plugins may change it. Offered by the server only where it manages the firewall (Windows, running as the installed service, see ICorePluginContext.Firewall); null elsewhere, so a plugin never touches the firewall in tests or development runs. Linux and macOS are not changed.
public interface IFirewallRulesMethods
Section titled “Methods”CloseAsync
Section titled “CloseAsync”Task CloseAsync(FirewallRule rule, CancellationToken ct)Removes the rule; a missing rule is not an error.
OpenAsync
Section titled “OpenAsync”Task OpenAsync(FirewallRule rule, CancellationToken ct)Adds (or replaces) the inbound allow rule. Throws when the firewall refused it.