-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #281 from Particular/release-4.0
Release 4.0
- Loading branch information
Showing
178 changed files
with
1,509 additions
and
4,037 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
assembly-versioning-scheme: Major | ||
next-version: 3.0 | ||
next-version: 4.0 | ||
branches: | ||
develop: | ||
tag: alpha | ||
release: | ||
tag: beta | ||
tag: rc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
...stsHolder/App_Packages/NSB.AcceptanceTests/ConfigureEndpointAcceptanceTestingTransport.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
using System; | ||
using System.IO; | ||
using System.Threading.Tasks; | ||
using NServiceBus; | ||
using NServiceBus.AcceptanceTesting.Support; | ||
using NUnit.Framework; | ||
|
||
public class ConfigureEndpointAcceptanceTestingTransport : IConfigureEndpointTestExecution | ||
{ | ||
public ConfigureEndpointAcceptanceTestingTransport(bool useNativePubSub, bool useNativeDelayedDelivery) | ||
{ | ||
this.useNativePubSub = useNativePubSub; | ||
this.useNativeDelayedDelivery = useNativeDelayedDelivery; | ||
} | ||
|
||
public Task Cleanup() | ||
{ | ||
if (Directory.Exists(storageDir)) | ||
{ | ||
Directory.Delete(storageDir, true); | ||
} | ||
|
||
return Task.FromResult(0); | ||
} | ||
|
||
public Task Configure(string endpointName, EndpointConfiguration configuration, RunSettings settings, PublisherMetadata publisherMetadata) | ||
{ | ||
var testRunId = TestContext.CurrentContext.Test.ID; | ||
|
||
string tempDir; | ||
|
||
if (Environment.OSVersion.Platform == PlatformID.Win32NT) | ||
{ | ||
//can't use bin dir since that will be too long on the build agents | ||
tempDir = @"c:\temp"; | ||
} | ||
else | ||
{ | ||
tempDir = Path.GetTempPath(); | ||
} | ||
|
||
storageDir = Path.Combine(tempDir, testRunId); | ||
|
||
var transportConfig = configuration.UseTransport<AcceptanceTestingTransport>() | ||
.StorageDirectory(storageDir) | ||
.UseNativePubSub(useNativePubSub) | ||
.UseNativeDelayedDelivery(useNativeDelayedDelivery); | ||
|
||
if (!useNativePubSub) | ||
{ | ||
//apply publisher registrations required for message driven pub/sub | ||
var routingConfig = transportConfig.Routing(); | ||
foreach (var publisherMetadataPublisher in publisherMetadata.Publishers) | ||
{ | ||
foreach (var @event in publisherMetadataPublisher.Events) | ||
{ | ||
routingConfig.RegisterPublisher(@event, publisherMetadataPublisher.PublisherName); | ||
} | ||
} | ||
} | ||
|
||
return Task.FromResult(0); | ||
} | ||
|
||
readonly bool useNativePubSub; | ||
readonly bool useNativeDelayedDelivery; | ||
|
||
string storageDir; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.