mirror of https://github.com/dapr/quickstarts.git
Removed Swagger support and Updated the missing steps in README.
Signed-off-by: Arash Rohani <arash.rohani@gmail.com>
This commit is contained in:
parent
e2012ef513
commit
363bcffe5b
|
@ -163,10 +163,28 @@ dotnet build
|
|||
|
||||
3. Run the C# subscriber app with Dapr:
|
||||
|
||||
<!-- STEP
|
||||
name: Run csharp subscriber
|
||||
expected_stdout_lines:
|
||||
- "You're up and running! Both Dapr and your app logs will appear here."
|
||||
- '== APP == A: Message on A'
|
||||
- '== APP == B: Message on B'
|
||||
- '== APP == C: Message on C'
|
||||
- "Exited Dapr successfully"
|
||||
- "Exited App successfully"
|
||||
expected_stderr_lines:
|
||||
output_match_mode: substring
|
||||
working_dir: ./csharp-subscriber
|
||||
background: true
|
||||
sleep: 10
|
||||
-->
|
||||
|
||||
```bash
|
||||
dapr run --app-id csharp-subscriber --app-port 5009 dotnet run csharp-subscriber.csproj
|
||||
```
|
||||
|
||||
<!-- END_STEP -->
|
||||
|
||||
### Run the React front end with Dapr
|
||||
|
||||
Now, run the React front end with Dapr. The front end will publish different kinds of messages that subscribers will pick up.
|
||||
|
@ -482,10 +500,20 @@ kubectl logs --selector app=python-subscriber -c python-subscriber
|
|||
|
||||
<!-- END_STEP -->
|
||||
|
||||
<!-- STEP
|
||||
name: Deploy Csharp App
|
||||
expected_stdout_lines:
|
||||
- "A: Message on A"
|
||||
- "B: Message on B"
|
||||
- "C: Message on C"
|
||||
-->
|
||||
|
||||
```bash
|
||||
kubectl logs --selector app=csharp-subscriber -c csharp-subscriber
|
||||
```
|
||||
|
||||
<!-- END_STEP -->
|
||||
|
||||
4. Note that the Node.js subscriber receives messages of type "A" and "B", while the Python subscriber receives messages of type "A" and "C" and the C# subscriber receives messages of type "A" and "B" and "C".
|
||||
|
||||
### Cleanup
|
||||
|
|
|
@ -2,19 +2,12 @@ using Dapr;
|
|||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
// Add services to the container.
|
||||
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
|
||||
builder.Services.AddEndpointsApiExplorer();
|
||||
builder.Services.AddSwaggerGen();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI();
|
||||
}
|
||||
|
||||
// Dapr configurations
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.14.0" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
|
||||
<PackageReference Include="Dapr.AspNetCore" Version="1.7.0" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.14.0" />
|
||||
<PackageReference Include="Dapr.AspNetCore" Version="1.7.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
Loading…
Reference in New Issue