Beispiel #1
0
        public CopyRequest(string targetResourceId, string targetResourceRegion, CopyAuthorizationResult copyAuthorization)
        {
            if (targetResourceId == null)
            {
                throw new ArgumentNullException(nameof(targetResourceId));
            }
            if (targetResourceRegion == null)
            {
                throw new ArgumentNullException(nameof(targetResourceRegion));
            }
            if (copyAuthorization == null)
            {
                throw new ArgumentNullException(nameof(copyAuthorization));
            }

            TargetResourceId     = targetResourceId;
            TargetResourceRegion = targetResourceRegion;
            CopyAuthorization    = copyAuthorization;
        }
Beispiel #2
0
 internal CopyAuthorization(CopyAuthorizationResult copyAuth, string resourceId, string region)
     : this(copyAuth.ModelId, copyAuth.AccessToken, copyAuth.ExpirationDateTimeTicks, resourceId, region)
 {
 }