@@ -146,19 +146,19 @@ The following code samples require these additional libraries:
146146
1471471 . Initialize a ` DefaultAzureCredential ` object to pick up your app's managed identity:
148148
149- :::code language="csharp" source="./snippets/semantic-kernel/IdentityExamples .cs" id="tokenCredential":::
149+ :::code language="csharp" source="./snippets/hosted-app-db-auth/Program.cs .cs" id="tokenCredential":::
150150
1511511 . Initialize an ` IMemoryStore ` object for your vector database, then use it to build an ` ISemanticTextMemory ` :
152152
153- :::code language="csharp" source="./snippets/semantic-kernel/IdentityExamples .cs" id="aiStore":::
153+ :::code language="csharp" source="./snippets/hosted-app-db-auth/Program.cs .cs" id="aiStore":::
154154
1551551 . Build a ` Kernel ` object, then import the ` ISemanticTextMemory ` object using the ` TextMemoryPlugin ` :
156156
157- :::code language="csharp" source="./snippets/semantic-kernel/IdentityExamples .cs" id="addMemory":::
157+ :::code language="csharp" source="./snippets/hosted-app-db-auth/Program.cs .cs" id="addMemory":::
158158
1591591 . Use the ` Kernel ` object to invoke a prompt that includes memory recall:
160160
161- :::code language="csharp" source="./snippets/semantic-kernel/IdentityExamples .cs" id="useMemory":::
161+ :::code language="csharp" source="./snippets/hosted-app-db-auth/Program.cs .cs" id="useMemory":::
162162
163163## Use Key Vault to store connection secrets
164164
@@ -227,23 +227,23 @@ These code samples use a Redis database, but you can apply them to any vector da
227227
2282281. Initialize a `DefaultAzureCredential` object to pick up your app's managed identity:
229229
230- :::code language="csharp" source="./snippets/semantic-kernel/IdentityExamples .cs" id="tokenCredential":::
230+ :::code language="csharp" source="./snippets/hosted-app-db-auth/Program.cs .cs" id="tokenCredential":::
231231
2322321. Add Key Vault when building your configuration, this will map your Key Vault secrets to the `IConfigurationRoot` object:
233233
234- :::code language="csharp" source="./snippets/semantic-kernel/IdentityExamples .cs" id="vaultConfig":::
234+ :::code language="csharp" source="./snippets/hosted-app-db-auth/Program.cs .cs" id="vaultConfig":::
235235
2362361. Use your vector database connection string from Key Vault to initialize an `IMemoryStore` object, and then use it to build an `ISemanticTextMemory`:
237237
238- :::code language="csharp" source="./snippets/semantic-kernel/IdentityExamples .cs" id="redisStore":::
238+ :::code language="csharp" source="./snippets/hosted-app-db-auth/Program.cs .cs" id="redisStore":::
239239
2402401. Build a `Kernel` object, then import the `ISemanticTextMemory` object using the `TextMemoryPlugin`:
241241
242- :::code language="csharp" source="./snippets/semantic-kernel/IdentityExamples .cs" id="addMemory":::
242+ :::code language="csharp" source="./snippets/hosted-app-db-auth/Program.cs .cs" id="addMemory":::
243243
2442441. Use the `Kernel` object to invoke a prompt that includes memory recall:
245245
246- :::code language="csharp" source="./snippets/semantic-kernel/IdentityExamples .cs" id="useMemory":::
246+ :::code language="csharp" source="./snippets/hosted-app-db-auth/Program.cs .cs" id="useMemory":::
247247
248248## Use application settings to store connection secrets
249249
@@ -294,19 +294,19 @@ These code samples use a Redis database, but you can apply them to any vector da
294294
2952951 . Add environment variables when building your configuration, this will map your connection strings to the ` IConfigurationRoot ` object:
296296
297- :::code language="csharp" source="./snippets/semantic-kernel/IdentityExamples .cs" id="appSettingsConfig":::
297+ :::code language="csharp" source="./snippets/hosted-app-db-auth/Program.cs .cs" id="appSettingsConfig":::
298298
2992991 . Use your vector database connection string from app settings to initialize an ` IMemoryStore ` object, and then use it to build an ` ISemanticTextMemory ` :
300300
301- :::code language="csharp" source="./snippets/semantic-kernel/IdentityExamples .cs" id="redisStore":::
301+ :::code language="csharp" source="./snippets/hosted-app-db-auth/Program.cs .cs" id="redisStore":::
302302
3033031 . Build a ` Kernel ` object, then import the ` ISemanticTextMemory ` object using the ` TextMemoryPlugin ` :
304304
305- :::code language="csharp" source="./snippets/semantic-kernel/IdentityExamples .cs" id="addMemory":::
305+ :::code language="csharp" source="./snippets/hosted-app-db-auth/Program.cs .cs" id="addMemory":::
306306
3073071 . Use the ` Kernel ` object to invoke a prompt that includes memory recall:
308308
309- :::code language="csharp" source="./snippets/semantic-kernel/IdentityExamples .cs" id="useMemory":::
309+ :::code language="csharp" source="./snippets/hosted-app-db-auth/Program.cs .cs" id="useMemory":::
310310
311311## Related content
312312
0 commit comments