Skip to content

Commit

Permalink
Remove obsoleted with error API. Fixes #99
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanFeldman committed Nov 12, 2019
1 parent db5b2cf commit 76567bd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ namespace Microsoft.Azure.ServiceBus
public class static AzureStorageAttachmentConfigurationExtensions
{
public static Microsoft.Azure.ServiceBus.AzureStorageAttachmentConfiguration WithBlobSasUri(this Microsoft.Azure.ServiceBus.AzureStorageAttachmentConfiguration azureStorageAttachmentConfiguration, string messagePropertyToIdentifySasUri = "$attachment.sas.uri", System.Nullable<System.TimeSpan> sasTokenValidationTime = null) { }
[System.ObsoleteAttribute("Will be removed in version 6. Use replacement API \'.WithBlobSasUri()\' instead.", true)]
public static Microsoft.Azure.ServiceBus.AzureStorageAttachmentConfiguration WithSasUri(this Microsoft.Azure.ServiceBus.AzureStorageAttachmentConfiguration azureStorageAttachmentConfiguration, string messagePropertyToIdentifySasUri = "$attachment.sas.uri", System.Nullable<System.TimeSpan> sasTokenValidationTime = null) { }
}
public class static AzureStorageAttachmentExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,6 @@ public static class AzureStorageAttachmentConfigurationExtensions
internal const string DefaultMessagePropertyToIdentitySasUri = "$attachment.sas.uri";
internal static TimeSpan DefaultSasTokenValidationTime = TimeSpan.FromDays(7);

/// <summary>
/// Adds blob SAS URI configuration.
/// </summary>
/// <param name="azureStorageAttachmentConfiguration"></param>
/// <param name="messagePropertyToIdentifySasUri">The <see cref="Message"/> user property used for SAS uri.</param>
/// <param name="sasTokenValidationTime">The time SAS uri is valid for.</param>
/// <returns></returns>
[Obsolete("Will be removed in version 6. Use replacement API '." + nameof(WithBlobSasUri) + "()' instead.", true)]
public static AzureStorageAttachmentConfiguration WithSasUri(
this AzureStorageAttachmentConfiguration azureStorageAttachmentConfiguration,
string messagePropertyToIdentifySasUri = DefaultMessagePropertyToIdentitySasUri,
TimeSpan? sasTokenValidationTime = null)
=> throw new Exception("Deprecated with error. See documentation for all configuration options.");

/// <summary>
/// Adds blob SAS URI configuration.
/// </summary>
Expand Down

0 comments on commit 76567bd

Please sign in to comment.