GraphQL_NET5.zip

上传者: mzl87 | 上传时间: 2021-04-23 09:04:11 | 文件大小: 243KB | 文件类型: ZIP
本文介绍了两个.NET 5 Web服务。第一个GraphQlService支持使用GraphQL技术通过数据库(SQL Server)创建、检索、更新和删除(CRUD)操作。传输层安全性(TLS)保护消息在跨网络传输时不被读取,并且使用JSON Web令牌(JWT)进行用户身份验证和授权。第二种LoginService提供用户登录机制,并根据用户的凭证生成JWT

文件下载

资源详情

[{"title":"( 91 个子文件 243KB ) GraphQL_NET5.zip","children":[{"title":"ConsoleClient","children":[{"title":"Program.cs <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"ConsoleClient.csproj <span style='color:#111;'> 385B </span>","children":null,"spread":false}],"spread":true},{"title":"GraphQL_DotNet.sln <span style='color:#111;'> 8.16KB </span>","children":null,"spread":false},{"title":".vs","children":[{"title":"GraphQl","children":[{"title":"DesignTimeBuild","children":[{"title":".dtbcache.v2 <span style='color:#111;'> 305.74KB </span>","children":null,"spread":false}],"spread":true},{"title":"config","children":[{"title":"applicationhost.config <span style='color:#111;'> 76.59KB </span>","children":null,"spread":false},{"title":"debuggerConfiguration-fbf20c69-f806-4752-91b6-d5a10e738ff7.json <span style='color:#111;'> 152B </span>","children":null,"spread":false},{"title":"debuggerConfiguration-610d4019-48c1-405d-bd2b-ed2b863cf2e7.json <span style='color:#111;'> 152B </span>","children":null,"spread":false}],"spread":true},{"title":"v16","children":[{"title":"TestStore","children":[{"title":"0","children":[{"title":"testlog.manifest <span style='color:#111;'> 24B </span>","children":null,"spread":false},{"title":"000.testlog <span style='color:#111;'> 78.56KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".suo <span style='color:#111;'> 192.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"GraphQL_DotNet","children":[{"title":"DesignTimeBuild","children":[{"title":".dtbcache.v2 <span style='color:#111;'> 304.67KB </span>","children":null,"spread":false}],"spread":true},{"title":"config","children":[{"title":"debuggerConfiguration-fbf20c69-f806-4752-91b6-d5a10e738ff7.json <span style='color:#111;'> 152B </span>","children":null,"spread":false},{"title":"debuggerConfiguration-610d4019-48c1-405d-bd2b-ed2b863cf2e7.json <span style='color:#111;'> 152B </span>","children":null,"spread":false}],"spread":true},{"title":"v16","children":[{"title":"TestStore","children":[{"title":"0","children":[{"title":"testlog.manifest <span style='color:#111;'> 24B </span>","children":null,"spread":false},{"title":"000.testlog <span style='color:#111;'> 66.35KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".suo <span style='color:#111;'> 148.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"GraphQlProject_Cache_Person","children":[{"title":"DesignTimeBuild","children":[{"title":".dtbcache.v2 <span style='color:#111;'> 218.01KB </span>","children":null,"spread":false}],"spread":true},{"title":"config","children":[{"title":"applicationhost.config <span style='color:#111;'> 76.63KB </span>","children":null,"spread":false}],"spread":true},{"title":"v16","children":[{"title":".suo <span style='color:#111;'> 147.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"Model","children":[{"title":"PersonModelLib","children":[{"title":"StartupEx.cs <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false},{"title":"Data","children":[{"title":"GqlCache.cs <span style='color:#111;'> 163B </span>","children":null,"spread":false},{"title":"GraphQLDbContext.cs <span style='color:#111;'> 5.46KB </span>","children":null,"spread":false}],"spread":true},{"title":"PersonModelLib.csproj <span style='color:#111;'> 678B </span>","children":null,"spread":false},{"title":"Type","children":[{"title":"RelationType.cs <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"RoleType.cs <span style='color:#111;'> 321B </span>","children":null,"spread":false},{"title":"AffiliationInputType.cs <span style='color:#111;'> 392B </span>","children":null,"spread":false},{"title":"OrganizationType.cs <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false},{"title":"RoleInputType.cs <span style='color:#111;'> 321B </span>","children":null,"spread":false},{"title":"PersonInputType.cs <span style='color:#111;'> 648B </span>","children":null,"spread":false},{"title":"AffiliationType.cs <span style='color:#111;'> 5.74KB </span>","children":null,"spread":false},{"title":"PersonOutputType.cs <span style='color:#111;'> 295B </span>","children":null,"spread":false},{"title":"PersonType.cs <span style='color:#111;'> 3.92KB </span>","children":null,"spread":false},{"title":"RelationInputType.cs <span style='color:#111;'> 408B </span>","children":null,"spread":false}],"spread":true},{"title":"Query","children":[{"title":"OrganizationQuery.cs <span style='color:#111;'> 729B </span>","children":null,"spread":false},{"title":"PersonQuery.cs <span style='color:#111;'> 695B </span>","children":null,"spread":false},{"title":"PersonByIdQuery.cs <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"RootQuery.cs <span style='color:#111;'> 455B </span>","children":null,"spread":false}],"spread":true},{"title":"Mutation","children":[{"title":"PersonMutation.cs <span style='color:#111;'> 7.48KB </span>","children":null,"spread":false},{"title":"RootMutation.cs <span style='color:#111;'> 299B </span>","children":null,"spread":false}],"spread":true},{"title":"Models","children":[{"title":"Affiliation.cs <span style='color:#111;'> 507B </span>","children":null,"spread":false},{"title":"Person.cs <span style='color:#111;'> 708B </span>","children":null,"spread":false},{"title":"Role.cs <span style='color:#111;'> 457B </span>","children":null,"spread":false},{"title":"Relation.cs <span style='color:#111;'> 585B </span>","children":null,"spread":false},{"title":"Organization.cs <span style='color:#111;'> 514B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"Libs","children":[{"title":"JwtAuthLib","children":[{"title":"AuthorizeRolesAttribute.cs <span style='color:#111;'> 321B </span>","children":null,"spread":false},{"title":"JwtOptions.cs <span style='color:#111;'> 599B </span>","children":null,"spread":false},{"title":"JwtAuth.cs <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false},{"title":"JwtAuthLib.csproj <span style='color:#111;'> 810B </span>","children":null,"spread":false}],"spread":true},{"title":"RepoInterfaceLib","children":[{"title":"RepoInterface.cs <span style='color:#111;'> 444B </span>","children":null,"spread":false},{"title":"RepoInterfaceLib.csproj <span style='color:#111;'> 137B </span>","children":null,"spread":false},{"title":"RepoResponse.cs <span style='color:#111;'> 405B </span>","children":null,"spread":false}],"spread":true},{"title":"HttpClientLib","children":[{"title":"HttpClientLib.csproj <span style='color:#111;'> 239B </span>","children":null,"spread":false},{"title":"HttpClientWrapper.cs <span style='color:#111;'> 2.14KB </span>","children":null,"spread":false}],"spread":true},{"title":"JwtLoginLib","children":[{"title":"JwtLogin.cs <span style='color:#111;'> 643B </span>","children":null,"spread":false},{"title":"Authenticator.cs <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"User.cs <span style='color:#111;'> 590B </span>","children":null,"spread":false},{"title":"AuthenticationService.cs <span style='color:#111;'> 559B </span>","children":null,"spread":false},{"title":"UserDbContext.cs <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"JwtLoginLib.csproj <span style='color:#111;'> 953B </span>","children":null,"spread":false}],"spread":true},{"title":"GraphQlHelperLib","children":[{"title":"ObjectGraphTypeCached.cs <span style='color:#111;'> 2.41KB </span>","children":null,"spread":false},{"title":"ProvideUserContextEx.cs <span style='color:#111;'> 3.24KB </span>","children":null,"spread":false},{"title":"GqlControllerBase.cs <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"GraphQlHelperLib.csproj <span style='color:#111;'> 710B </span>","children":null,"spread":false},{"title":"GraphqlProcessor.cs <span style='color:#111;'> 2.91KB </span>","children":null,"spread":false}],"spread":true},{"title":"AsyncLockLib","children":[{"title":"AsyncLockLib.csproj <span style='color:#111;'> 137B </span>","children":null,"spread":false},{"title":"AsyncLock.cs <span style='color:#111;'> 1.75KB </span>","children":null,"spread":false}],"spread":true},{"title":"AuthRolesLib","children":[{"title":"AuthRolesLib.csproj <span style='color:#111;'> 137B </span>","children":null,"spread":false},{"title":"UserAuthRole.cs <span style='color:#111;'> 142B </span>","children":null,"spread":false}],"spread":true},{"title":"RepoLib","children":[{"title":"RepoLib.csproj <span style='color:#111;'> 365B </span>","children":null,"spread":false},{"title":"Repo.cs <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"queries-mutations-examples.txt <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false},{"title":"LoginService","children":[{"title":"LoginService.csproj.user <span style='color:#111;'> 617B </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 720B </span>","children":null,"spread":false},{"title":"appsettings.Development.json <span style='color:#111;'> 162B </span>","children":null,"spread":false},{"title":"Controllers","children":[{"title":"LoginController.cs <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"appsettings.json <span style='color:#111;'> 557B </span>","children":null,"spread":false},{"title":"LoginService.csproj <span style='color:#111;'> 426B </span>","children":null,"spread":false},{"title":"Startup.cs <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"launchSettings.json <span style='color:#111;'> 820B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"Tests","children":[{"title":"ServicesTest","children":[{"title":"ServicesTest.csproj <span style='color:#111;'> 853B </span>","children":null,"spread":false},{"title":"Tests.cs <span style='color:#111;'> 3.96KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"GraphQlService","children":[{"title":"Program.cs <span style='color:#111;'> 642B </span>","children":null,"spread":false},{"title":"appsettings.Development.json <span style='color:#111;'> 168B </span>","children":null,"spread":false},{"title":"GraphQlService.csproj.user <span style='color:#111;'> 399B </span>","children":null,"spread":false},{"title":"Controllers","children":[{"title":"PersonController.cs <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false},{"title":"GqlController.cs <span style='color:#111;'> 754B </span>","children":null,"spread":false}],"spread":true},{"title":"appsettings.json <span style='color:#111;'> 947B </span>","children":null,"spread":false},{"title":"Schema","children":[{"title":"RootSchema.cs <span style='color:#111;'> 488B </span>","children":null,"spread":false}],"spread":false},{"title":"GraphQlService.csproj <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"Startup.cs <span style='color:#111;'> 4.82KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"launchSettings.json <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明