初始化CRICS

This commit is contained in:
2025-12-11 09:17:16 +08:00
commit 83247ec0a2
2735 changed files with 787765 additions and 0 deletions

46
Domain/SearchHost.cs Normal file
View File

@@ -0,0 +1,46 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Domain
{
public delegate void SearchHostResultHandler(SearchHost host);
public class SearchHost
{
public string IP { get; set; }
public string SubnetMask { get; set; }
public string Gateway { get; set; }
public int Port { get; set; }
public string MAC { get; set; }
public string HostNumber { get; set; }
public bool Registered { get; set; }
public string Version { get; set; }
public string ConfigVersion { get; set; }
public override int GetHashCode()
{
return this.IP.GetHashCode() ^ this.MAC.GetHashCode();
}
public override bool Equals(object obj)
{
var o = obj as SearchHost;
if (o == null)
{
return false;
}
return o.IP == this.IP && o.MAC == this.MAC;
}
}
}