Mohammad Taghavi
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
19 additions and
6 deletions
-
samples/dapr/orders/orders.csproj
-
samples/dapr/products/products.csproj
-
samples/dapr/store/store.csproj
-
samples/dapr/tye.yaml
-
src/Microsoft.Tye.Extensions/Dapr/DaprExtension.cs
|
|
|
@ -5,7 +5,7 @@ |
|
|
|
</PropertyGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
<PackageReference Include="Dapr.AspNetCore" Version="0.6.0-preview01" /> |
|
|
|
<PackageReference Include="Dapr.AspNetCore" Version="0.8.0-preview01" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
</Project> |
|
|
|
|
|
|
|
@ -5,7 +5,7 @@ |
|
|
|
</PropertyGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
<PackageReference Include="Dapr.AspNetCore" Version="0.6.0-preview01" /> |
|
|
|
<PackageReference Include="Dapr.AspNetCore" Version="0.8.0-preview01" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
</Project> |
|
|
|
|
|
|
|
@ -5,7 +5,7 @@ |
|
|
|
</PropertyGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
<PackageReference Include="Dapr.AspNetCore" Version="0.6.0-preview01" /> |
|
|
|
<PackageReference Include="Dapr.AspNetCore" Version="0.8.0-preview01" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
</Project> |
|
|
|
|
|
|
|
@ -16,7 +16,9 @@ extensions: |
|
|
|
# a file on disk when running locally at `./components/myconfig.yaml` |
|
|
|
# |
|
|
|
# config: myconfig |
|
|
|
|
|
|
|
|
|
|
|
# components-path configures the components path of the dapr sidecard |
|
|
|
components-path: "./components/" |
|
|
|
services: |
|
|
|
- name: orders |
|
|
|
project: orders/orders.csproj |
|
|
|
@ -32,4 +34,11 @@ services: |
|
|
|
- name: redis |
|
|
|
image: redis |
|
|
|
bindings: |
|
|
|
- port: 6379 |
|
|
|
- port: 6379 |
|
|
|
# To ensure that your are running a dapr placement container with the right binding port. |
|
|
|
# (50005 as HostPort) |
|
|
|
- name: placement |
|
|
|
image: daprio/dapr |
|
|
|
args: ./placement |
|
|
|
bindings: |
|
|
|
- port: 50005 |
|
|
|
|
|
|
|
@ -31,7 +31,7 @@ namespace Microsoft.Tye.Extensions.Dapr |
|
|
|
} |
|
|
|
|
|
|
|
// See https://github.com/dotnet/tye/issues/260
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Currently the pub-sub pattern does not work when you have multiple replicas. Each
|
|
|
|
// daprd instance expects that it has a single application to talk to. So if you're using
|
|
|
|
// pub-sub this means that you'll won't get some messages.
|
|
|
|
@ -71,6 +71,10 @@ namespace Microsoft.Tye.Extensions.Dapr |
|
|
|
proxy.Args += $" -log-level {logLevel}"; |
|
|
|
} |
|
|
|
|
|
|
|
if (config.Data.TryGetValue("components-path", out obj) && obj?.ToString() is string componentsPath) |
|
|
|
{ |
|
|
|
proxy.Args += $" -components-path {componentsPath}"; |
|
|
|
} |
|
|
|
// Add dapr proxy as a service available to everyone.
|
|
|
|
proxy.Dependencies.UnionWith(context.Application.Services.Select(s => s.Name)); |
|
|
|
|
|
|
|
|