Skip to content

Commit

Permalink
Bump NServiceBus.AmazonSQS
Browse files Browse the repository at this point in the history
  • Loading branch information
kentdr committed Aug 25, 2023
1 parent 797b599 commit 627ffb7
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 12 deletions.
3 changes: 3 additions & 0 deletions src/NServiceBus.AwsLambda.SQS/FodyWeavers.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<Obsolete HideObsoleteMembers="never" />
</Weavers>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
Expand All @@ -9,7 +9,8 @@
<ItemGroup>
<PackageReference Include="Amazon.Lambda.Core" Version="[2.1.0, 3.0.0)" />
<PackageReference Include="Amazon.Lambda.SQSEvents" Version="[2.1.0, 3.0.0)" />
<PackageReference Include="NServiceBus.AmazonSQS" Version="[6.1.1, 7.0.0)" />
<PackageReference Include="NServiceBus.AmazonSQS" Version="7.0.0-alpha.1" />
<PackageReference Include="Obsolete.Fody" Version="5.3.0" PrivateAssets="All"/>
<PackageReference Include="Particular.Packaging" Version="3.0.0" PrivateAssets="All" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using NServiceBus;
using Transport;

sealed class ServerlessTransport : TransportDefinition
sealed partial class ServerlessTransport : TransportDefinition
{
// HINT: This constant is defined in NServiceBus but is not exposed
const string MainReceiverId = "Main";
Expand All @@ -31,15 +31,6 @@ public override async Task<TransportInfrastructure> Initialize(HostSettings host

}

#pragma warning disable CS0672 // Member overrides obsolete member
#pragma warning disable CS0618 // Type or member is obsolete

public override string ToTransportAddress(QueueAddress address) => BaseTransport.ToTransportAddress(address);

#pragma warning restore CS0618 // Type or member is obsolete
#pragma warning restore CS0672 // Member overrides obsolete member


public override IReadOnlyCollection<TransportTransactionMode> GetSupportedTransactionModes() => supportedTransactionModes;

readonly TransportTransactionMode[] supportedTransactionModes =
Expand Down
17 changes: 17 additions & 0 deletions src/NServiceBus.AwsLambda.SQS/obsoletes-v2.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace NServiceBus.AwsLambda.SQS.TransportWrapper
{
using System;
using NServiceBus.Transport;

sealed partial class ServerlessTransport
{
#pragma warning disable CS0672 // Member overrides obsolete member

[ObsoleteEx(Message = "Inject the ITransportAddressResolver type to access the address translation mechanism at runtime. See the NServiceBus version 8 upgrade guide for further details.",
TreatAsErrorFromVersion = "2",
RemoveInVersion = "3")]
public override string ToTransportAddress(QueueAddress address) => throw new NotImplementedException();

#pragma warning restore CS0672 // Member overrides obsolete member
}
}

0 comments on commit 627ffb7

Please sign in to comment.