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));
        }
Esempio n. 2
0
 internal GeoReplication(GeoReplicationStatusType status, DateTimeOffset lastSyncTime)
 {
     Status       = status;
     LastSyncTime = lastSyncTime;
 }