public void SetUpstreamServerByGuid(object g, IUpdateServer wsus) { // If the object is a database null, it's the local server if (g is DBNull) _UpstreamServer = "Local"; else { try { _UpstreamServer = wsus.GetDownstreamServer((Guid) g).FullDomainName; } catch (Exception e) { _UpstreamServer = e.Message + ", GUID: " + g.ToString(); } } }