Skip to content

Commit 6ea92a3

Browse files
committed
Use warning suppressions in code
1 parent 2766d6f commit 6ea92a3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/ServiceControl.Transports.ASBS/ASBSTransportCustomization.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ protected override AzureServiceBusTransport CreateTransport(TransportSettings tr
2929
//For all other cases use the connection string to determine which topology to use
3030
if (connectionSettings.TopicName != null)
3131
{
32+
#pragma warning disable CS0618 // Type or member is obsolete
3233
selectedTopology = TopicTopology.MigrateFromNamedSingleTopic(connectionSettings.TopicName);
34+
#pragma warning restore CS0618 // Type or member is obsolete
3335
}
3436
else
3537
{
@@ -59,7 +61,9 @@ protected override void AddTransportForPrimaryCore(IServiceCollection services,
5961
{
6062
//Bundle name provided -> use migration topology
6163
//Need to explicitly specific events to be published on the single topic
64+
#pragma warning disable CS0618 // Type or member is obsolete
6265
selectedTopology = TopicTopology.FromOptions(new MigrationTopologyOptions
66+
#pragma warning restore CS0618 // Type or member is obsolete
6367
{
6468
TopicToPublishTo = connectionSettings.TopicName,
6569
TopicToSubscribeOn = connectionSettings.TopicName,

src/ServiceControl.Transports.ASBS/ServiceControl.Transports.ASBS.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<PropertyGroup>
44
<TargetFramework>net8.0</TargetFramework>
55
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
6-
<NoWarn>CS0618</NoWarn>
76
</PropertyGroup>
87

98
<ItemGroup>
@@ -16,7 +15,7 @@
1615
<PackageReference Include="Azure.Monitor.Query" />
1716
<PackageReference Include="Azure.ResourceManager.ServiceBus" />
1817
<PackageReference Include="NServiceBus.CustomChecks" />
19-
<PackageReference Include="NServiceBus.Transport.AzureServiceBus"/>
18+
<PackageReference Include="NServiceBus.Transport.AzureServiceBus" />
2019
</ItemGroup>
2120

2221
<ItemGroup>

0 commit comments

Comments
 (0)