15 | @Movie.Genre 16 |
17 |You are not authorized to access this resource.
13 | } 14 |Sorry, there's nothing at this address.
21 |No data to display
25 | } 26 | else 27 | { 28 |
24 | Request ID: @Model.RequestId
25 |
30 | Swapping to the Development environment displays detailed information about the error that occurred. 31 |
32 |33 | The Development environment shouldn't be enabled for deployed applications. 34 | It can result in displaying sensitive information from exceptions to end users. 35 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 36 | and restarting the app. 37 |
38 |No Data to show...
10 | } 11 | else 12 | 13 | { 14 || Image | 20 |Title | 21 |Genre | 22 |Language | 23 |Action | 24 |
|---|
|
34 | |
36 | 37 | @movie.Title 38 | | 39 |@movie.Genre | 40 |@movie.Language | 41 |
42 | |
44 |
@movie.Overview
26 |Loading...
49 | } -------------------------------------------------------------------------------- /BlazorWasmGraphQL.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.0.31919.166 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorWasmGraphQL.Server", "BlazorWasmGraphQL\Server\BlazorWasmGraphQL.Server.csproj", "{B5E7711A-5960-4A82-A9BC-0EC5FA03B688}" 7 | EndProject 8 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorWasmGraphQL.Client", "BlazorWasmGraphQL\Client\BlazorWasmGraphQL.Client.csproj", "{87DB03B5-ED25-46DE-9541-75F17A618005}" 9 | EndProject 10 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorWasmGraphQL.Shared", "BlazorWasmGraphQL\Shared\BlazorWasmGraphQL.Shared.csproj", "{D276249E-1E3F-4B27-ADB2-53C1D70C161D}" 11 | EndProject 12 | Global 13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 14 | Debug|Any CPU = Debug|Any CPU 15 | Release|Any CPU = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 18 | {B5E7711A-5960-4A82-A9BC-0EC5FA03B688}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 19 | {B5E7711A-5960-4A82-A9BC-0EC5FA03B688}.Debug|Any CPU.Build.0 = Debug|Any CPU 20 | {B5E7711A-5960-4A82-A9BC-0EC5FA03B688}.Release|Any CPU.ActiveCfg = Release|Any CPU 21 | {B5E7711A-5960-4A82-A9BC-0EC5FA03B688}.Release|Any CPU.Build.0 = Release|Any CPU 22 | {87DB03B5-ED25-46DE-9541-75F17A618005}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 23 | {87DB03B5-ED25-46DE-9541-75F17A618005}.Debug|Any CPU.Build.0 = Debug|Any CPU 24 | {87DB03B5-ED25-46DE-9541-75F17A618005}.Release|Any CPU.ActiveCfg = Release|Any CPU 25 | {87DB03B5-ED25-46DE-9541-75F17A618005}.Release|Any CPU.Build.0 = Release|Any CPU 26 | {D276249E-1E3F-4B27-ADB2-53C1D70C161D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 27 | {D276249E-1E3F-4B27-ADB2-53C1D70C161D}.Debug|Any CPU.Build.0 = Debug|Any CPU 28 | {D276249E-1E3F-4B27-ADB2-53C1D70C161D}.Release|Any CPU.ActiveCfg = Release|Any CPU 29 | {D276249E-1E3F-4B27-ADB2-53C1D70C161D}.Release|Any CPU.Build.0 = Release|Any CPU 30 | EndGlobalSection 31 | GlobalSection(SolutionProperties) = preSolution 32 | HideSolutionNode = FALSE 33 | EndGlobalSection 34 | GlobalSection(ExtensibilityGlobals) = postSolution 35 | SolutionGuid = {A1E52D45-E40F-4333-B9E7-26450C8A2C7C} 36 | EndGlobalSection 37 | EndGlobal 38 | -------------------------------------------------------------------------------- /BlazorWasmGraphQL/Client/Shared/AppStateContainer.cs: -------------------------------------------------------------------------------- 1 | using BlazorWasmGraphQL.Client.GraphQLAPIClient; 2 | using BlazorWasmGraphQL.Server.Models; 3 | 4 | namespace BlazorWasmGraphQL.Client.Shared 5 | { 6 | public class AppStateContainer 7 | { 8 | private readonly MovieClient _movieClient; 9 | 10 | public AppStateContainer(MovieClient movieClient) 11 | { 12 | _movieClient = movieClient; 13 | } 14 | 15 | public ListLoading...
18 | } 19 | else 20 | { 21 || Title | 25 |Genre | 26 |Language | 27 |Duration (mins.) | 28 |Rating | 29 |Actions | 30 |
|---|---|---|---|---|---|
| @movie.Title | 39 |@movie.Genre | 40 |@movie.Language | 41 |@movie.Duration | 42 |@movie.Rating | 43 |44 | 45 | Edit 46 | 47 | 50 | | 51 |