internal static GeoReplication DeserializeGeoReplication(XElement element) { GeoReplicationStatusType status = default; DateTimeOffset lastSyncTime = default; if (element.Element("Status") is XElement statusElement) { status = new GeoReplicationStatusType(statusElement.Value); } if (element.Element("LastSyncTime") is XElement lastSyncTimeElement) { lastSyncTime = lastSyncTimeElement.GetDateTimeOffsetValue("R"); } return(new GeoReplication(status, lastSyncTime)); }
internal GeoReplication(GeoReplicationStatusType status, DateTimeOffset lastSyncTime) { Status = status; LastSyncTime = lastSyncTime; }