Esempio n. 1
0
        internal BlobLeaseRequestConditions(BlobLeaseRequestConditions deepCopySource)
        {
            Argument.AssertNotNull(deepCopySource, nameof(deepCopySource));

            TagConditions = deepCopySource.TagConditions;

            // can't get to Azure.Core internals from here; copy it's values here

            // Azure.MatchConditions
            IfMatch     = deepCopySource.IfMatch;
            IfNoneMatch = deepCopySource.IfNoneMatch;

            // Azure.RequestConditions
            IfModifiedSince   = deepCopySource.IfModifiedSince;
            IfUnmodifiedSince = deepCopySource.IfUnmodifiedSince;
        }
Esempio n. 2
0
 /// <summary>
 /// Creates a deep copy of the given instance, if any.
 /// </summary>
 /// <param name="deepCopySource">Instance to deep copy.</param>
 /// <returns>The deep copy, or null.</returns>
 internal static BlobLeaseRequestConditions CloneOrDefault(BlobLeaseRequestConditions deepCopySource)
 {
     if (deepCopySource == default)
     {
         return(default);