Use this website to interact with the Time Bot
7 | 8 | 9 | -------------------------------------------------------------------------------- /15-computer-vision/C-Sharp/image-analysis/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "CognitiveServicesEndpoint": "YOUR_COGNITIVE_SERVICES_ENDPOINT", 3 | "CognitiveServiceKey": "YOUR_COGNITIVE_SERVICES_KEY" 4 | } -------------------------------------------------------------------------------- /15-computer-vision/C-Sharp/image-analysis/image-analysis.csproj: -------------------------------------------------------------------------------- 1 |11 | 12 | 13 | | 14 |15 | 16 | 17 | | 18 |
13 | Request ID: @Model.RequestId
14 |
19 | Swapping to the Development environment displays detailed information about the error that occurred. 20 |
21 |22 | The Development environment shouldn't be enabled for deployed applications. 23 | It can result in displaying sensitive information from exceptions to end users. 24 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 25 | and restarting the app. 26 |
27 | -------------------------------------------------------------------------------- /22-Create-a-search-solution/C-Sharp/margies-travel/Pages/Error.cshtml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Diagnostics; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore.Mvc; 7 | using Microsoft.AspNetCore.Mvc.RazorPages; 8 | using Microsoft.Extensions.Logging; 9 | 10 | namespace search_client.Pages 11 | { 12 | [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] 13 | public class ErrorModel : PageModel 14 | { 15 | public string RequestId { get; set; } 16 | 17 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 18 | 19 | private readonly ILoggerUse this page to detail your site's privacy policy.
9 | -------------------------------------------------------------------------------- /22-Create-a-search-solution/C-Sharp/margies-travel/Pages/Privacy.cshtml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Mvc; 6 | using Microsoft.AspNetCore.Mvc.RazorPages; 7 | using Microsoft.Extensions.Logging; 8 | 9 | namespace search_client.Pages 10 | { 11 | public class PrivacyModel : PageModel 12 | { 13 | private readonly ILoggerEnter a search term
12 | 16 |For all your travel needs!
5 |