Skip to content

Commit

Permalink
Switch to the new version of Azure Storage library. Fixes #116
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanFeldman committed Nov 12, 2019
1 parent 1a52fa6 commit db5b2cf
Show file tree
Hide file tree
Showing 15 changed files with 35 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Microsoft.Azure.ServiceBus
public class AzureStorageAttachmentConfiguration
{
public AzureStorageAttachmentConfiguration(string connectionString, string containerName = "attachments", string messagePropertyToIdentifyAttachmentBlob = "$attachment.blob", System.Func<Microsoft.Azure.ServiceBus.Message, bool> messageMaxSizeReachedCriteria = null) { }
public AzureStorageAttachmentConfiguration(Microsoft.WindowsAzure.Storage.Auth.StorageCredentials storageCredentials, string blobEndpoint, string containerName = "attachments", string messagePropertyToIdentifyAttachmentBlob = "$attachment.blob", System.Func<Microsoft.Azure.ServiceBus.Message, bool> messageMaxSizeReachedCriteria = null) { }
public AzureStorageAttachmentConfiguration(Microsoft.Azure.Storage.Auth.StorageCredentials storageCredentials, string blobEndpoint, string containerName = "attachments", string messagePropertyToIdentifyAttachmentBlob = "$attachment.blob", System.Func<Microsoft.Azure.ServiceBus.Message, bool> messageMaxSizeReachedCriteria = null) { }
public AzureStorageAttachmentConfiguration(Microsoft.Azure.ServiceBus.IProvideStorageConnectionString connectionStringProvider, string containerName = "attachments", string messagePropertyToIdentifyAttachmentBlob = "$attachment.blob", System.Func<Microsoft.Azure.ServiceBus.Message, bool> messageMaxSizeReachedCriteria = null) { }
}
public class static AzureStorageAttachmentConfigurationExtensions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System;
using System.Threading.Tasks;
using Microsoft.Azure.ServiceBus;
using Microsoft.WindowsAzure.Storage.Auth;
using Microsoft.Azure.Storage.Auth;
using Xunit;

public class AzureStorageAttachmentConfigurationTests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Azure.ServiceBus;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Blob;
using Microsoft.Azure.Storage;
using Microsoft.Azure.Storage.Blob;

public class AzureStorageEmulatorFixture
{
Expand Down
18 changes: 11 additions & 7 deletions src/ServiceBus.AttachmentPlugin.Tests/DocoUpdater.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
using MarkdownSnippets;
using Xunit;

public class DocoUpdater
namespace ServiceBus.AttachmentPlugin.Tests
{
[Fact]
public void Run()
using MarkdownSnippets;
using Xunit;

public class DocoUpdater
{
new DirectoryMarkdownProcessor(GitRepoDirectoryFinder.FindForFilePath()).Run();
[Fact]
public void Run()
{
new DirectoryMarkdownProcessor(GitRepoDirectoryFinder.FindForFilePath()).Run();
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

<ItemGroup>
<PackageReference Include="MarkdownSnippets" Version="16.5.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.0-beta2-build3683" />
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceBus.AttachmentPlugin.Tests/Snippets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Threading.Tasks;
using Microsoft.Azure.ServiceBus;
using Microsoft.Azure.ServiceBus.Core;
using Microsoft.WindowsAzure.Storage.Auth;
using Microsoft.Azure.Storage.Auth;
using Newtonsoft.Json;

class Snippets
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

namespace ServiceBus.AttachmentPlugin.Tests
namespace ServiceBus.AttachmentPlugin.Tests
{
using System;
using System.Text;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Threading.Tasks;
using Microsoft.Azure.ServiceBus;
using Microsoft.Azure.ServiceBus.Core;
using Microsoft.WindowsAzure.Storage.Auth;
using Microsoft.Azure.Storage.Auth;
using Xunit;

public class When_registering_plugin : IClassFixture<AzureStorageEmulatorFixture>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
using System.Text;
using System.Threading.Tasks;
using Microsoft.Azure.ServiceBus;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Auth;
using Microsoft.Azure.Storage;
using Microsoft.Azure.Storage.Auth;
using Microsoft.Azure.Storage.Blob;
using Xunit;

public class When_sending_message_using_connection_string : IClassFixture<AzureStorageEmulatorFixture>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
using System.Text;
using System.Threading.Tasks;
using Microsoft.Azure.ServiceBus;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Auth;
using Microsoft.Azure.Storage;
using Microsoft.Azure.Storage.Auth;
using Microsoft.Azure.Storage.Blob;
using Xunit;

public class When_sending_message_using_container_sas : IClassFixture<AzureStorageEmulatorFixture>
Expand Down
4 changes: 2 additions & 2 deletions src/ServiceBus.AttachmentPlugin/AzureStorageAttachment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
using System.Threading.Tasks;
using Microsoft.Azure.ServiceBus;
using Microsoft.Azure.ServiceBus.Core;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Blob;
using Microsoft.Azure.Storage;
using Microsoft.Azure.Storage.Blob;

class AzureStorageAttachment : ServiceBusPlugin
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
namespace Microsoft.Azure.ServiceBus
{
using System;
using WindowsAzure.Storage;
using WindowsAzure.Storage.Auth;
using Storage;
using Storage.Auth;

/// <summary>Runtime configuration for Azure Storage Attachment plugin.</summary>
public class AzureStorageAttachmentConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
using System.Threading.Tasks;
using Microsoft.Azure.ServiceBus;
using Microsoft.Azure.ServiceBus.Core;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Blob;
using Microsoft.Azure.Storage;
using Microsoft.Azure.Storage.Blob;

class ReceiveOnlyAzureStorageAttachment : ServiceBusPlugin
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>Microsoft Azure ServiceBus attachment plugin</Description>
<Version>5.1.0</Version>
<Version>6.0.0-preview01</Version>
<Authors>Sean Feldman</Authors>
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
<PackageTags>Azure;Service Bus;ServiceBus;.NET;AMQP;IoT;Queue;Topic;Attachment;Plugin</PackageTags>
Expand All @@ -26,7 +26,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Azure.ServiceBus" Version="2.0.0" />
<PackageReference Include="WindowsAzure.Storage" Version="8.5.0" />
<PackageReference Include="Microsoft.Azure.Storage.Blob" Version="11.1.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-19367-01" PrivateAssets="All" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/ServiceBus.AttachmentPlugin/TokenGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace ServiceBus.AttachmentPlugin
{
using System;
using Microsoft.WindowsAzure.Storage.Blob;
using Microsoft.Azure.Storage.Blob;

static class TokenGenerator
{
Expand Down

0 comments on commit db5b2cf

Please sign in to comment.