コード例 #1
0
        private static ServerStamp TryGetMatchResult(Match match, LogEntry logEntry)
        {
            ServerStamp result = null;

            if (match.Success)
            {
                var serverName = new ServerName(match.Groups[1].Value.ToUpperInvariant());
                result = new ServerStamp()
                {
                    ServerName = serverName, Timestamp = logEntry.Timestamp
                };
            }
            return(result);
        }
コード例 #2
0
 public WurmServerInfo(string name, string webStatsUrl, ServerGroup serverGroup)
 {
     if (name == null)
     {
         throw new ArgumentNullException(nameof(name));
     }
     if (webStatsUrl == null)
     {
         throw new ArgumentNullException(nameof(webStatsUrl));
     }
     ServerName  = new ServerName(name);
     WebStatsUrl = webStatsUrl;
     ServerGroup = serverGroup;
 }