{"id":16932016,"url":"https://github.com/catcherwong/demos","last_synced_at":"2025-04-05T21:11:28.201Z","repository":{"id":43612756,"uuid":"49808517","full_name":"catcherwong/Demos","owner":"catcherwong","description":":100:Some demos for learning","archived":false,"fork":false,"pushed_at":"2019-03-23T14:23:08.000Z","size":107141,"stargazers_count":271,"open_issues_count":0,"forks_count":328,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-03-29T20:09:40.919Z","etag":null,"topics":["aspnet-core","demo","nancy","nancyfx"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/catcherwong.png","metadata":{"files":{"readme":"README-zh.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-17T08:04:48.000Z","updated_at":"2025-02-18T06:21:51.000Z","dependencies_parsed_at":"2022-09-12T10:31:21.452Z","dependency_job_id":null,"html_url":"https://github.com/catcherwong/Demos","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catcherwong%2FDemos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catcherwong%2FDemos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catcherwong%2FDemos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catcherwong%2FDemos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catcherwong","download_url":"https://codeload.github.com/catcherwong/Demos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399887,"owners_count":20932880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aspnet-core","demo","nancy","nancyfx"],"created_at":"2024-10-13T20:45:17.844Z","updated_at":"2025-04-05T21:11:28.157Z","avatar_url":"https://github.com/catcherwong.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[English](./README.md)\n\n# Demos\n\n这个repository主要包含我博客中的一些案例以及平时写的一些demo.\n\n博客主要是两个地方一个是[**博客园** ](https://www.cnblogs.com/catcher1994) ，另一个是 [**c-sharpcorner**](http://www.c-sharpcorner.com/members/catcher-wong)   \n\n## 简单介绍\n\n### Nancy相关的demo\n\n\n| Name | Description | Url/Lang  |\n|--------- |------------- |---------|\n| [NancyDemoForFormsauthentication](https://github.com/catcherwong/Demos/tree/master/src/NancyDemoForFormsauthentication) |  在Nancy(1.x)中如何使用Forms认证 |[Url/Chinese](http://www.cnblogs.com/catcher1994/p/5195387.html)\n| [NancyDemoForModelBinding](https://github.com/catcherwong/Demos/tree/master/src/NancyDemoForModelBinding) |  在Nancy(1.x)中如何使用模型绑定 |[Url/Chinese](http://www.cnblogs.com/catcher1994/p/5181663.html)\n| [NancyDemoWithHostingAspnet](https://github.com/catcherwong/Demos/tree/master/src/NancyDemoWithHostingAspnet) |  寄宿于ASP.NET的一个demo  |[Url/Chinese](http://www.cnblogs.com/catcher1994/p/5145173.html)\n| [NancyDemoWithOwin](https://github.com/catcherwong/Demos/tree/master/src/NancyDemoWithOwin) |  寄宿于Owin的3个demo   |[Url/Chinese](http://www.cnblogs.com/catcher1994/p/5154913.html)\n| [NancyDemoWithSelfHosting](https://github.com/catcherwong/Demos/tree/master/src/NancyDemoWithSelfHosting) |  基于TopSelf的自宿主Demo和基于Nancy提供的自宿主Demo |[Url/Chinese](http://www.cnblogs.com/catcher1994/p/5155082.html)\n    \n### ASP.NET Core Demo\n\n\n| Name | Description | Url/Lang  |\n|--------- |------------- |---------|\n| [ASPNETCoreAPIAuthorizedDemo](https://github.com/catcherwong/Demos/tree/master/src/ASPNETCoreAPIAuthorizedDemo) |  asp.net core web api 授权的demo |[Url/Chinese](http://www.cnblogs.com/catcher1994/p/6021046.html)\n| [JWTTokenDemo](https://github.com/catcherwong/Demos/tree/master/src/JWTTokenDemo) |   使用ASP.NET Core预览版写的基于jwt的demo |[Url/Chinese](http://www.cnblogs.com/catcher1994/p/6057484.html)\n| [JwtTokenDemo2](https://github.com/catcherwong/Demos/tree/master/src/JwtTokenDemo2) |  基于JWTTokenDemo的改进，加多了refresh_token的处理，使用的是ASP.NET Core 2.0 预览版         |[Url/English](http://www.c-sharpcorner.com/article/handle-refresh-token-using-asp-net-core-2-0-and-json-web-token/)\n| [RedisDemo](https://github.com/catcherwong/Demos/tree/master/src/RedisDemo) |  在.NET Core下面使用Redis的案例   |[Url/Chinese](http://www.cnblogs.com/catcher1994/p/5934931.html)\n| [LocalDataCachingDemo](https://github.com/catcherwong/Demos/tree/master/src/LocalDataCachingDemo) |   使用SQLite做本地缓存  |[Url/Chinese](http://www.cnblogs.com/catcher1994/p/7635133.html)\n| [MenuSolution](https://github.com/catcherwong/Demos/tree/master/src/MenuSolutions) |  菜单处理方案  |[Url/English](http://www.c-sharpcorner.com/article/solutions-for-menu-in-asp-net-core/)\n| [RPDemo](https://github.com/catcherwong/Demos/tree/master/src/RPDemo) |  Razore Pages 的小案例  |[Url/English](http://www.c-sharpcorner.com/article/building-a-simple-web-app-using-razor-pages/)\n| [MonoDemo](https://github.com/catcherwong/Demos/tree/master/src/MonoDemo) |  基于.NET Framework和Mono的ASP.NET Core 案例    |[Url/English](http://www.c-sharpcorner.com/article/running-asp-net-core-2-0-via-mono/)\n| [CachingAOPDemo](https://github.com/catcherwong/Demos/tree/master/src/CachingAOPDemo) |  缓存拦截 |[Url/Chinese](http://www.cnblogs.com/catcher1994/p/7788890.html)\n| [APIGatewayDemo](https://github.com/catcherwong/Demos/tree/master/src/APIGatewayDemo) |  API网关的案例 |[Url/English](http://www.c-sharpcorner.com/article/building-api-gateway-using-ocelot-in-asp-net-core/)      \n|[DIDemo](https://github.com/catcherwong/Demos/tree/master/src/DIDemo) | 使用微软自带的DI注册一个接口，多种实现  |[Url/Chinese](http://www.cnblogs.com/catcher1994/p/handle-multi-implementations-with-same-interface-in-dotnet-core.html)  \n| [RedisBatchRemoveSolution](https://github.com/catcherwong/Demos/tree/master/src/RedisBatchRemoveSolution) |  Redis缓存批量删除. |[Url/Chinese](http://www.cnblogs.com/catcher1994/p/8469366.html)  \n| [CachingSerializer](https://github.com/catcherwong/Demos/tree/master/src/CachingSerializer) |  使用分布式缓存(Redis和Memcached)时的序列化问题. |[Url/Chinese](https://www.cnblogs.com/catcher1994/p/8543711.html)  \n| [ResponseCachingDemo](https://github.com/catcherwong/Demos/tree/master/src/ResponseCachingDemo) | 在ASP.NET Core中使用ResponseCaching |[Url/Chinese](http://www.cnblogs.com/catcher1994/p/responsecaching.html)  \n| [CircuitBreakerDemo](https://github.com/catcherwong/Demos/tree/master/src/CircuitBreakerDemo) | 在ASP.NET Core中使用熔断机制. |[Url/Chinese](http://www.cnblogs.com/catcher1994/p/8975192.html)  \n| [OptionsDemo](https://github.com/catcherwong/Demos/tree/master/src/OptionsDemo) | ASP.NET Core 中使用Options |[Url/Chinese](https://www.cnblogs.com/catcher1994/p/9190978.html)  \n| [HttpClientFactoryDemo](https://github.com/catcherwong/Demos/tree/master/src/HttpClientFactoryDemo) | 用HttpClientFactory实现熔断降级. |[Url/Chinese](https://www.cnblogs.com/catcher1994/p/9349618.html)  \n| [SteeltoeWithHttpClientFactory](https://github.com/catcherwong/Demos/tree/master/src/SteeltoeWithHttpClientFactory) | 结合Steeltoe和HttpClientFactory完成服务发现. |[Url/Chinese](https://www.cnblogs.com/catcher1994/p/9381735.html)  \n| [RefitClientApi](https://github.com/catcherwong/Demos/tree/master/src/CallAPIsDemo/RefitClientApi) |  Refit在 ASP.NET Core中的实践.  |[Url/Chinese](https://www.cnblogs.com/catcher1994/p/9501387.html)  \n| [WebApiClientDemo](https://github.com/catcherwong/Demos/tree/master/src/CallAPIsDemo/WebApiClientDemo) |  WebApiClient的简单用法.  |[Url/English](https://www.c-sharpcorner.com/article/using-webapiclient-to-call-rest-apis-in-net-core/)  \n| [WebApiClientApi](https://github.com/catcherwong/Demos/tree/master/src/CallAPIsDemo/WebApiClientApi) | WebApiClient结合HttpClientFactory.  |[Url/English](https://www.c-sharpcorner.com/article/combine-webapiclient-with-httpclientfactory-to-call-rest-apis/)  \n\n### Xamarin Demo\n\n\n| Name | Description | Url/Lang  |\n|--------- |------------- |---------|\n| [Catcher.AndroidDemo](https://github.com/catcherwong/Demos/tree/master/src/Catcher.AndroidDemo) |  用Xamarin写的安卓案例 |[Url/Chinese](http://www.cnblogs.com/catcher1994/category/819314.html)\n| [Catcher.MvvmCrossDemo](https://github.com/catcherwong/Demos/tree/master/src/Catcher.MvvmCrossDemo) |  用MvvmCross框架写的部分案列 |[Url/Chinese](http://www.cnblogs.com/catcher1994/category/819314.html)\n\n### Other\n\n\n| Name | Description | Url/Lang  |\n|--------- |------------- |---------|\n| [Catcher.Unit.Demo](https://github.com/catcherwong/Demos/tree/master/src/Catcher.Unit.Demo) |  单元测试的简单案例 |[Url/Chinese](http://www.cnblogs.com/catcher1994/p/5498530.html)\n| [RoundRobinDemo](https://github.com/catcherwong/Demos/tree/master/src/RoundRobinDemo) |  负载均衡-轮询算法 |[Url/Chinese](http://www.cnblogs.com/catcher1994/p/simple_roundrobin.html)\n| [WeightedRoundRobinDemo](https://github.com/catcherwong/Demos/tree/master/src/WeightedRoundRobinDemo) |  负载均衡-加权轮询算法 |[Url/Chinese](http://www.cnblogs.com/catcher1994/p/weighted-round-robin.html)\n| [RedisLockDemo](https://github.com/catcherwong/Demos/tree/master/src/RedisLockDemo) | Redis分布式锁 |[Url/English](https://www.c-sharpcorner.com/article/creating-distributed-lock-with-redis-in-net-core/)\n| [ObjectPoolDemo](https://github.com/catcherwong/Demos/tree/master/src/ObjectPoolDemo) | Microsoft.Extensions.ObjectPool的简单用法.  |[Url/Chinese](https://www.cnblogs.com/catcher1994/p/9666944.html)\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatcherwong%2Fdemos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatcherwong%2Fdemos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatcherwong%2Fdemos/lists"}