mirror of
https://github.com/LANCommander/LANCommander.Interposer.git
synced 2026-08-01 03:08:17 -04:00
- Publishes NuGet package with .NET bindings - Allows direct injection - Allows for event subscription - Adds callbacks to main Interposer DLL
24 lines
724 B
C#
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;
|
|
}
|
|
}
|
|
}
|