Skip to content

Commit 4562cb7

Browse files
committed
Try to fix highlighting
1 parent 5a342bf commit 4562cb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/frameworks/orleans.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ The name provided to the Orleans resource is for diagnostic purposes. For most a
4343

4444
:::code language="csharp" source="snippets/orleans/OrleansAppHost/Program.cs" range="12":::
4545

46-
The Orleans resource builder, `orleans` in the preceding example, offers methods to configure your Orleans resource. The simplest Orleans services only need a cluster membership resource:
46+
The Orleans resource builder, `orleans` in the preceding example, offers methods to configure your Orleans resource. In the following example, the Orleans resource is configured with clustering and grain storage using the `WithClustering` and `WithGrainStorage` methods respectively:
4747

48-
:::code language="csharp" source="snippets/orleans/OrleansAppHost/Program.cs" range="3-14" highlight="6-7,13-14":::
48+
:::code language="csharp" source="snippets/orleans/OrleansAppHost/Program.cs" range="3-14" highlight="4-5,11-12":::
4949

5050
This tells Orleans that any service referencing it will also need to reference the `clusteringTable` resource.
5151

@@ -81,7 +81,7 @@ By convention, .NET Aspire application include a project for defining default co
8181
To configure Orleans for OpenTelemetry in .NET Aspire, you will need to apply configuration to your service defaults project following the [Orleans observability](/dotnet/orleans/host/monitoring/) guide.
8282
In short, you will need to modify the `ConfigureOpenTelemetry` method to add the Orleans _meters_ and _tracing_ instruments. The following code snippet shows the _Extensions.cs_ file from a service defaults project which has been modified to include metrics and traces from Orleans.
8383

84-
:::code language="csharp" source="snippets/orleans/OrleansServiceDefaults/Extensions.cs" range="40-68" highlight="54,58-59":::
84+
:::code language="csharp" source="snippets/orleans/OrleansServiceDefaults/Extensions.cs" range="40-68" highlight="15,19-20":::
8585

8686
## Supported providers
8787

0 commit comments

Comments
 (0)