Esempio n. 1
0
 /// <summary>
 /// Create a new SharedKeyPipelinePolicy
 /// </summary>
 /// <param name="credentials">SharedKeyCredentials to authenticate requests.</param>
 public StorageSharedKeyPipelinePolicy(StorageSharedKeyCredential credentials)
 => _credentials = credentials;
 /// <summary>
 /// Get an authentication policy to sign Storage requests.
 /// </summary>
 /// <param name="credential">Credential to use.</param>
 /// <returns>An authentication policy.</returns>
 public static HttpPipelinePolicy AsPolicy(this StorageSharedKeyCredential credential) =>
 public string GetSas(StorageSharedKeyCredential credential, string message)
 {
     return(ComputeSasSignature(credential, message));
 }