You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a full example of how to use the publishers above using a Minimal API setup (SwaggerUI enabled) with a single endpoint called `POST /data` that accepts a simple request body `{ "a": "string", "b": "string", "c": "string" }` which publishes the request to an EventHub and a ServiceBus topic
90
79
91
80
```csharp
81
+
usingAtc.Azure.Messaging.EventHub;
82
+
usingAtc.Azure.Messaging.ServiceBus;
83
+
92
84
varbuilder=WebApplication.CreateBuilder(args);
93
85
builder.Services.AddEndpointsApiExplorer();
94
86
builder.Services.AddSwaggerGen();
@@ -111,6 +103,11 @@ app.MapPost(
111
103
112
104
app.Run();
113
105
106
+
#pragmawarningdisable MA0048 // File name must match type name
107
+
#pragmawarningdisable SA1649 // File name should match first type name
108
+
#pragmawarningdisable MA0047 // Declare types in namespaces
109
+
#pragmawarningdisable S3903 // Types should be defined in named namespaces
0 commit comments