Skip to content

Instantly share code, notes, and snippets.

@adeelnasir
Created June 11, 2018 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adeelnasir/bf6e675280dbbf7cab541b0909b2493b to your computer and use it in GitHub Desktop.
Save adeelnasir/bf6e675280dbbf7cab541b0909b2493b to your computer and use it in GitHub Desktop.
/// <summary>
/// Represents a redirection lookup.
/// </summary>
public class Redirect
{
/// <summary>
/// Default Constructor.
/// </summary>
public Redirect()
{
}
/// <summary>
/// Constructor with Params.
/// </summary>
/// <param name="startIp">Start IP of the range</param>
/// <param name="endIp">End IP of the range</param>
/// <param name="redirectName">To be redirected to</param>
public Redirect(string startIp, string endIp, string redirectName)
: this()
{
this.StartIp = startIp;
this.EndIp = endIp;
this.RedirectName = redirectName;
}
/// <summary>
/// PK.
/// </summary>
public Guid RegistrationId
{
get; set;
}
/// <summary>
/// Starting IP of the range.
/// </summary>
public string StartIp
{
get; set;
}
/// <summary>
/// Ending IP of the range.
/// </summary>
public string EndIp
{
get; set;
}
/// <summary>
/// Redirect Name for Authentication.
/// </summary>
public string RedirectName
{
get; set;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment