예제 #1
0
        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));
        }
예제 #2
0
 internal GeoReplication(GeoReplicationStatusType status, DateTimeOffset lastSyncTime)
 {
     Status       = status;
     LastSyncTime = lastSyncTime;
 }