{"id":20348705,"url":"https://github.com/jevonsflash/servicehostbuilder","last_synced_at":"2025-10-24T11:56:37.897Z","repository":{"id":154374662,"uuid":"486478360","full_name":"jevonsflash/ServiceHostBuilder","owner":"jevonsflash","description":"Initialize App with a pipeline builder","archived":false,"fork":false,"pushed_at":"2022-04-28T07:42:33.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T16:17:27.153Z","etag":null,"topics":[],"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/jevonsflash.png","metadata":{"files":{"readme":"README.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-28T06:47:42.000Z","updated_at":"2022-04-28T06:54:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"167a24b0-cdda-49ec-8de1-a4d8a7d5b4f2","html_url":"https://github.com/jevonsflash/ServiceHostBuilder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jevonsflash/ServiceHostBuilder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jevonsflash%2FServiceHostBuilder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jevonsflash%2FServiceHostBuilder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jevonsflash%2FServiceHostBuilder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jevonsflash%2FServiceHostBuilder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jevonsflash","download_url":"https://codeload.github.com/jevonsflash/ServiceHostBuilder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jevonsflash%2FServiceHostBuilder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270989164,"owners_count":24680688,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-14T22:21:48.206Z","updated_at":"2025-10-07T15:39:50.359Z","avatar_url":"https://github.com/jevonsflash.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 中间件管道模型测试\n\n## 说明\n\n目标是搭建一个管道模型，利用Ioc容器注入领域对象，构造一些列的Use扩展方法实现应用程序可伸缩可配置。\n\n用这个管道模型搭建一个冲咖啡的程序，给自己冲一杯咖啡。\n\n```\nvar containerBuilder = new WindsorContainer();\nvar hostBuilder = new CoffieeServiceHostBuilder(containerBuilder)\n                  .UseMilk(50) \n                  .UseSuggar();\nusing (var host = hostBuilder.Build())\n{\n    host.Run();\n}\n```\n\n![image](https://user-images.githubusercontent.com/11273359/165701356-3feb0774-dbb2-4a9c-92fc-d1014dc941fc.png)\n\n\n\n当你不想放糖和牛奶时，只需要注释掉这两行就行\n```\n.UseMilk(50) \n.UseSuggar();\n```\n\n## 运行\n\n```cd ServiceHostBuilder.Sample```\n\n```dotnet run```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjevonsflash%2Fservicehostbuilder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjevonsflash%2Fservicehostbuilder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjevonsflash%2Fservicehostbuilder/lists"}