InventoryScanRequest
What to scan and how hard. Targets holds raw specifiers - single addresses, CIDR blocks, inclusive ranges - which IScanTargetExpander turns into concrete addresses.
public sealed record InventoryScanRequest : IEquatable<InventoryScanRequest>
1. Constructors
1.1. InventoryScanRequest(IReadOnlyCollection<string>, IReadOnlyCollection<Port>, TimeSpan, int, bool)
What to scan and how hard. Targets holds raw specifiers - single addresses, CIDR blocks, inclusive ranges - which IScanTargetExpander turns into concrete addresses.
public InventoryScanRequest(IReadOnlyCollection<string> Targets, IReadOnlyCollection<Port> TcpPorts, TimeSpan ProbeTimeout, int MaxConcurrency, bool ResolveHostNames)
| Name | Type | Description |
|---|---|---|
Targets |
IReadOnlyCollection<string> |
Raw target specifiers, e.g. |
TcpPorts |
IReadOnlyCollection<Port> |
Ports to TCP-probe on every address. |
ProbeTimeout |
TimeSpan |
Per-probe timeout. |
MaxConcurrency |
int |
Addresses probed at once. |
ResolveHostNames |
bool |
Whether to reverse-resolve names for responding addresses. |
2. Properties
2.1. MaxConcurrency
Addresses probed at once.
public int MaxConcurrency { get; init; }
2.2. ProbeTimeout
Per-probe timeout.
public TimeSpan ProbeTimeout { get; init; }
2.3. ResolveHostNames
Whether to reverse-resolve names for responding addresses.
public bool ResolveHostNames { get; init; }
2.4. Targets
Raw target specifiers, e.g. 10.0.0.0/24 or 10.0.0.5-10.0.0.9.
public IReadOnlyCollection<string> Targets { get; init; }
2.5. TcpPorts
Ports to TCP-probe on every address.
public IReadOnlyCollection<Port> TcpPorts { get; init; }
3. Methods
3.1. ForTargets(string[])
Request over targets using every value from InventoryScanDefaults.
public static InventoryScanRequest ForTargets(params string[] targets)
| Name | Type | Description |
|---|---|---|
targets |
string[] |
Raw target specifiers. |
Returns: InventoryScanRequest
4. Operators
4.1. operator !=(InventoryScanRequest, InventoryScanRequest)
public static bool operator !=(InventoryScanRequest left, InventoryScanRequest right)
| Name | Type | Description |
|---|---|---|
left |
InventoryScanRequest |
|
right |
InventoryScanRequest |
Returns: bool
4.2. operator ==(InventoryScanRequest, InventoryScanRequest)
public static bool operator ==(InventoryScanRequest left, InventoryScanRequest right)
| Name | Type | Description |
|---|---|---|
left |
InventoryScanRequest |
|
right |
InventoryScanRequest |
Returns: bool