From 1c0205717b987d699acbaba7ca6d2088f1bd9f45 Mon Sep 17 00:00:00 2001 From: RogerHowellDfE <96429508+RogerHowellDfE@users.noreply.github.com> Date: Wed, 7 Aug 2024 15:53:01 +0100 Subject: [PATCH] Add language to the readme.md code blocks (allows syntax highlighting). --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e8f71ed..f8bc5db 100644 --- a/README.md +++ b/README.md @@ -11,13 +11,13 @@ The dependencies can be used in isolation or registered as a whole under a singl In order to use the default search services it is possible to register all dependencies listed under the default composition root, in one registration, as follows: -``` +```csharp builder.Services.AddDefaultCognitiveSearchServices(builder.Configuration); ``` Alternatively, the registrations can be configured in the consuming application's IOC container, with a typical registration configured similar to the following: -``` +```csharp services.TryAddSingleton(); services.TryAddSingleton(); services.TryAddSingleton(); @@ -62,7 +62,7 @@ services.AddHttpClient("GeoLocationHttpClient", config => Typical dependency injection and search request would look something like the following, -``` +```csharp public sealed class CognitiveSearchServiceAdapter : ISearchServiceAdapter where TSearchResult : class { private readonly ISearchService _cognitiveSearchService;