Пример #1
0
 /// <summary>
 /// Sets the permissions for a queue SAS.
 /// </summary>
 /// <param name="permissions">
 /// <see cref="QueueSasPermissions"/> containing the allowed permissions.
 /// </param>
 public void SetPermissions(QueueSasPermissions permissions)
 {
     Permissions = permissions.ToPermissionsString();
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="QueueSasBuilder"/>
 /// class.
 /// </summary>
 /// <param name="permissions">
 /// The permissions associated with the shared access signature.
 /// The user is restricted to operations allowed by the permissions.
 /// This field must be omitted if it has been specified in an
 /// associated stored access policy.
 /// </param>
 /// <param name="expiresOn">
 /// The time at which the shared access signature becomes invalid.
 /// This field must be omitted if it has been specified in an
 /// associated stored access policy.
 /// </param>
 public QueueSasBuilder(QueueSasPermissions permissions, DateTimeOffset expiresOn)
 {
     ExpiresOn = expiresOn;
     SetPermissions(permissions);
 }