LANCommander.Interposer/LANCommander.Interposer.NET/Events/DnsEventArgs.cs
Pat Hartl 2318fdf611 Add .NET bindings
- Publishes NuGet package with .NET bindings
- Allows direct injection
- Allows for event subscription
- Adds callbacks to main Interposer DLL
2026-05-29 23:31:06 -05:00

24 lines
724 B
C#

using System;
namespace LANCommander.Interposer.Events
{
/// <summary>
/// Data for DNS resolution events (getaddrinfo, gethostbyname, GetAddrInfoEx).
/// </summary>
public sealed class DnsEventArgs : EventArgs
{
/// <summary>The original hostname being resolved.</summary>
public string Hostname { get; }
/// <summary>
/// The redirected hostname. Same as <see cref="Hostname"/> if no redirect was applied.
/// </summary>
public string RedirectedHostname { get; }
internal DnsEventArgs(string hostname, string redirectedHostname)
{
Hostname = hostname;
RedirectedHostname = redirectedHostname;
}
}
}