Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanFeldman committed Apr 17, 2018
2 parents e128416 + 61d3bf8 commit 95aa2a0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Lines starting with '#' are comments.
# Each line is a file pattern followed by one or more owners.

# These owners will be the default owners for everything in the repo.
* @tomkerkhove
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ var provider = new PlainTextConnectionStringProvider("connectionString");
var config = new AzureStorageAttachmentConfiguration(provider);
```

#### Additional providers

* [ServiceBus.AttachmentPlugin.KeyVaultProvider](https://www.nuget.org/packages?q=ServiceBus.AttachmentPlugin.KeyVaultProvider)

## Who's trusting this add-in in production

![Codit](https://github.com/SeanFeldman/ServiceBus.AttachmentPlugin/blob/master/images/using/Codit.png)
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 @@ -30,13 +30,13 @@ public AzureStorageAttachment(AzureStorageAttachmentConfiguration configuration)

public override async Task<Message> BeforeMessageSend(Message message)
{
await InitializeClient().ConfigureAwait(false);

if (!configuration.MessageMaxSizeReachedCriteria(message))
{
return message;
}

await InitializeClient().ConfigureAwait(false);

var container = client.GetContainerReference(configuration.ContainerName);
await container.CreateIfNotExistsAsync().ConfigureAwait(false);
var blob = container.GetBlockBlobReference(Guid.NewGuid().ToString());
Expand Down

0 comments on commit 95aa2a0

Please sign in to comment.