File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/Atc.Azure.Messaging/EventHub Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1+ using System . Diagnostics . CodeAnalysis ;
12using Atc . Azure . Options . Authorization ;
23using Atc . Azure . Options . Environment ;
34using Atc . Azure . Options . EventHub ;
78
89namespace Atc . Azure . Messaging . EventHub ;
910
10- #pragma warning disable CA2000 // Dispose objects before losing scope
11-
11+ [ SuppressMessage (
12+ "Reliability" ,
13+ "CA2000:Dispose objects before losing scope" ,
14+ Justification = "EventHubPublisher is responsible for disposing EventHubProducerClient" ) ]
1215public class EventHubCredentialsPublisherFactory : IEventHubPublisherFactory
1316{
1417 private readonly string fullyQualifiedNamespace ;
@@ -26,7 +29,7 @@ public EventHubCredentialsPublisherFactory(
2629 environmentOptions ,
2730 clientCredentialOptions ) ;
2831 }
29-
32+
3033 public IEventHubPublisher Create ( string eventHubName )
3134 => new EventHubPublisher (
3235 new EventHubProducerClient (
You can’t perform that action at this time.
0 commit comments