Git Product home page Git Product logo

demos's Introduction

中文版

Demos

This repository mainly contains some demos that you can find in my blogs.

Both in cnblogs and c-sharpcorner

Introduce

Nancy Demo

Name Description Url/Lang
NancyDemoForFormsauthentication how to use forms authentication in Nancy(1.x) Url/Chinese
NancyDemoForModelBinding how to use model binding in Nancy(1.x) Url/Chinese
NancyDemoWithHostingAspnet movies demo hosting by asp.net Url/Chinese
NancyDemoWithOwin three demos using owin Url/Chinese
NancyDemoWithSelfHosting one is using TopSelf to host , the other one is using Nancy.Hosting.Self to host. Url/Chinese

ASP.NET Core Demo

Name Description Url/Lang
ASPNETCoreAPIAuthorizedDemo asp.net core web api authorized demo Url/Chinese
JWTTokenDemo how to use JSON Web Token in ASP.NET Core(pre) Url/Chinese
JwtTokenDemo2 handle refresh_token when using JSON Web Token in ASP.NET Core 2.0(pre) Url/English
RedisDemo A demo using redis in .net core Url/Chinese
LocalDataCachingDemo A demo using SQLite to store the caching item as the local caching. Url/Chinese
MenuSolution A demo shows some way to render menus. Url/English
RPDemo A demo using ASP.NET Core Razore Pages Url/English
MonoDemo A demo run ASP.NET Core in .NET Framework with mono. Url/English
CachingAOPDemo Two demos that show how to handle caching interceptor. Url/Chinese
APIGatewayDemo A demo shows how to use Ocelot as our API Gateway. Url/English
DIDemo Same interface multi impl . Url/Chinese
RedisBatchRemoveSolution Introduce batch remove cached item in Redis. Url/Chinese
CachingSerializer Introduce serialization of distributed caching(Redis and Memcached). Url/Chinese
ResponseCachingDemo Introduce ResponseCaching in ASP.NET Core. Url/Chinese
CircuitBreakerDemo Introduce CircuitBreaker in ASP.NET Core. Url/Chinese
OptionsDemo Introduce Options in ASP.NET Core. Url/Chinese
HttpClientFactoryDemo Polly Demo With HttpClientFactory. Url/Chinese
SteeltoeWithHttpClientFactory Steeltoe Demo With HttpClientFactory. Url/Chinese
RefitClientApi Introduce Refit in ASP.NET Core. Url/Chinese
WebApiClientDemo Usages of WebApiClient. Url/English
WebApiClientApi WebApiClient With HttpClientFactory. Url/English

Xamarin Demo

Name Description Url/Lang
Catcher.AndroidDemo Android demo using Xamarin Url/Chinese
Catcher.MvvmCrossDemo Demos using MvvmCross framework Url/Chinese

Other

Name Description Url/Lang
Catcher.Unit.Demo A unittest demo Url/Chinese
RoundRobinDemo Load Balancing - Round Robin Url/Chinese
WeightedRoundRobinDemo Load Balancing - Weighted Round Robin Url/Chinese
RedisLockDemo Redis Lock Url/English
ObjectPoolDemo Usages of Microsoft.Extensions.ObjectPool. Url/Chinese

demos's People

Contributors

catcherwong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

demos's Issues

System.Exception: Unable to start Ocelot

I m new to Ocelot, so i tried to replicate the same code as you did. I added configuration.json file along with changes to be done at startup and program.cs end.
when i try to run the server, it throws the following error -
Unhandled Exception: System.Exception: Unable to start Ocelot, errors are: When not using service discovery DownstreamHostAndPorts must be set and not empty or Ocelot cannot find your service!,When not using service discovery DownstreamHostAndPorts must be set and not empty or Ocelot cannot find your service! at Ocelot.Middleware.OcelotMiddlewareExtensions.ThrowToStopOcelotStarting(Response config) at Ocelot.Middleware.OcelotMiddlewareExtensions.CreateConfiguration(IApplicationBuilder builder) at Ocelot.Middleware.OcelotMiddlewareExtensions.UseOcelot(IApplicationBuilder builder, OcelotPipelineConfiguration pipelineConfiguration) at Ocelot.Middleware.OcelotMiddlewareExtensions.UseOcelot(IApplicationBuilder builder) at OcelotIntegration.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env) in D:\OcelotIntegrator\OcelotIntegration\Startup.cs:line 51 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location where exception was thrown --- at System.Threading.ThreadPoolWorkQueue.Dispatch() Hosting environment: Development Content root path: D:\OcelotIntegrator\OcelotIntegration Now listening on: http://localhost:9000 Application started. Press Ctrl+C to shut down.

After this log, server automatically shuts down.
Any Help on above would be highly appreciated, Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.