• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IHttpService类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IHttpService的典型用法代码示例。如果您正苦于以下问题:C# IHttpService类的具体用法?C# IHttpService怎么用?C# IHttpService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IHttpService类属于命名空间,在下文中一共展示了IHttpService类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: ProxyServerConnection

 internal ProxyServerConnection(IHttpService service, Endpoints endpoints)
 {
   _service = service;
   _endpoints = endpoints;
   _timer = new System.Timers.Timer();
   _timer.Elapsed += _timer_Elapsed;
 }
开发者ID:rneuber1,项目名称:InnovatorAdmin,代码行数:7,代码来源:ProxyServerConnection.cs


示例2: Subscribe

        public void Subscribe(IHttpService service, HttpMessagePipe pipe)
        {
            Ensure.NotNull(service, "service");
            Ensure.NotNull(pipe, "pipe");

            SubscribeCore(service, pipe);
        }
开发者ID:vishal-h,项目名称:EventStore-1,代码行数:7,代码来源:CommunicationController.cs


示例3: NetkanTransformer

 public NetkanTransformer(
     IHttpService http,
     IFileService fileService,
     IModuleService moduleService,
     string githubToken,
     bool prerelease
 )
 {
     _transformers = new List<ITransformer>
     {
         new MetaNetkanTransformer(http),
         new KerbalstuffTransformer(new KerbalstuffApi(http)),
         new GithubTransformer(new GithubApi(githubToken), prerelease),
         new HttpTransformer(),
         new JenkinsTransformer(),
         new InternalCkanTransformer(http, moduleService),
         new AvcTransformer(http, moduleService),
         new VersionEditTransformer(),
         new ForcedVTransformer(),
         new EpochTransformer(),
         new VersionedOverrideTransformer(),
         new DownloadSizeTransformer(http, fileService),
         new GeneratedByTransformer(),
         new OptimusPrimeTransformer(),
         new StripNetkanMetadataTransformer(),
         new PropertySortTransformer()
     };
 }
开发者ID:Wetmelon,项目名称:CKAN,代码行数:28,代码来源:NetkanTransformer.cs


示例4: SubscribeCore

        protected override void SubscribeCore(IHttpService service)
        {
            Ensure.NotNull(service, "service");

            service.RegisterAction(new ControllerAction("/stats", HttpMethod.Get, Codec.NoCodecs, SupportedCodecs), OnGetFreshStats);
            service.RegisterAction(new ControllerAction("/stats/{*statPath}", HttpMethod.Get, Codec.NoCodecs, SupportedCodecs), OnGetFreshStats);
        }
开发者ID:Kristinn-Stefansson,项目名称:EventStore,代码行数:7,代码来源:StatController.cs


示例5: GoogleReaderClientLogin

 public GoogleReaderClientLogin(string username, string password, IHttpService httpService, IUriBuilder urlBuilder)
 {
     Username = username;
     Password = password;
     _httpService = httpService;
     _urlBuilder = urlBuilder;
 }
开发者ID:aragorn55,项目名称:codeclimber,代码行数:7,代码来源:GoogleReaderClientLogin.cs


示例6: NetkanTransformer

 public NetkanTransformer(
     IHttpService http,
     IFileService fileService,
     IModuleService moduleService,
     string githubToken,
     bool prerelease
 )
 {
     _transformers = InjectVersionedOverrideTransformers(new List<ITransformer>
     {
         new MetaNetkanTransformer(http),
         new SpacedockTransformer(new SpacedockApi(http)),
         new GithubTransformer(new GithubApi(githubToken), prerelease),
         new HttpTransformer(),
         new JenkinsTransformer(http),
         new InternalCkanTransformer(http, moduleService),
         new AvcTransformer(http, moduleService),
         new VersionEditTransformer(),
         new ForcedVTransformer(),
         new EpochTransformer(),
         // This is the "default" VersionedOverrideTransformer for compatability with overrides that don't
         // specify a before or after property.
         new VersionedOverrideTransformer(before: new string[] { null }, after: new string[] { null }),
         new DownloadAttributeTransformer(http, fileService),
         new GeneratedByTransformer(),
         new OptimusPrimeTransformer(),
         new StripNetkanMetadataTransformer(),
         new PropertySortTransformer()
     });
 }
开发者ID:CliftonMarien,项目名称:CKAN,代码行数:30,代码来源:NetkanTransformer.cs


示例7: ArasHttpConnection

    public ArasHttpConnection(IHttpService service, string innovatorServerUrl)
    {
      _service = service;
      this.Compression = CompressionType.none;
      _factory = new ElementFactory(_context);

      if (innovatorServerUrl.EndsWith("Server/InnovatorServer.aspx", StringComparison.OrdinalIgnoreCase))
      {
        innovatorServerUrl = innovatorServerUrl.Substring(0, innovatorServerUrl.Length - 20);
      }
      else if (innovatorServerUrl.EndsWith("/Server", StringComparison.OrdinalIgnoreCase)
        || innovatorServerUrl.EndsWith("/Server/", StringComparison.OrdinalIgnoreCase))
      {
        innovatorServerUrl += (innovatorServerUrl.EndsWith("/") ? "" : "/");
      }
      else
      {
        innovatorServerUrl += (innovatorServerUrl.EndsWith("/") ? "" : "/") + "Server/";
      }

      this._innovatorServerBaseUrl = new Uri(innovatorServerUrl);
      this._innovatorServerUrl = new Uri(this._innovatorServerBaseUrl, "InnovatorServer.aspx");
      this._innovatorClientBin = new Uri(this._innovatorServerBaseUrl, "../Client/cbin/");

      _vaultConn = new ArasVaultConnection(this);
    }
开发者ID:rneuber1,项目名称:InnovatorAdmin,代码行数:26,代码来源:ArasHttpConnection.cs


示例8: SubscribeCore

 protected override void SubscribeCore(IHttpService service, HttpMessagePipe pipe)
 {
     _singleNodeWeb.RegisterControllerActions(service);
     _commonWeb.RegisterControllerActions(service);
     _singleNodeJs.RegisterControllerActions(service);
     RegisterRedirectAction(service, "", "/web/home.htm");
     RegisterRedirectAction(service, "/web", "/web/home.htm");
     RegisterRedirectAction(service, "/web/projections", "/web/projections.htm");
 }
开发者ID:xingxingone,项目名称:EventStore,代码行数:9,代码来源:WebSiteController.cs


示例9: SubscribeCore

 protected override void SubscribeCore(IHttpService service, HttpMessagePipe pipe)
 {
     service.RegisterControllerAction(new ControllerAction("/shutdown",
                                                           HttpMethod.Post,
                                                           SupportedCodecs,
                                                           SupportedCodecs,
                                                           DefaultResponseCodec),
                                      OnPostShutdown);
 }
开发者ID:robashton,项目名称:EventStore,代码行数:9,代码来源:AdminController.cs


示例10: SubscribeCore

 protected override void SubscribeCore(IHttpService service)
 {
     service.RegisterControllerAction(new ControllerAction("/admin/halt", HttpMethod.Post, Codec.NoCodecs, SupportedCodecs),
                                      OnPostHalt);
     service.RegisterControllerAction(new ControllerAction("/admin/shutdown", HttpMethod.Post, Codec.NoCodecs, SupportedCodecs), 
                                      OnPostShutdown);
     service.RegisterControllerAction(new ControllerAction("/admin/scavenge", HttpMethod.Post, Codec.NoCodecs, SupportedCodecs),
                                      OnPostScavenge);
 }
开发者ID:jjvdangelo,项目名称:EventStore,代码行数:9,代码来源:AdminController.cs


示例11: SubscribeCore

 protected override void SubscribeCore(IHttpService service, HttpMessagePipe pipe)
 {
     service.RegisterControllerAction(new ControllerAction("/streams/{stream}/event/{version}?resolve={resolve}",
                                                           HttpMethod.Get,
                                                           Codec.NoCodecs,
                                                           SupportedCodecs,
                                                           DefaultResponseCodec),
                                      OnGetRead);
 }
开发者ID:robashton,项目名称:EventStore,代码行数:9,代码来源:ReadEventDataController.cs


示例12: CkanValidator

 public CkanValidator(Metadata netkan, IHttpService downloader, IModuleService moduleService)
 {
     _validators = new List<IValidator>
     {
         new IsCkanModuleValidator(),
         new MatchingIdentifiersValidator(netkan.Identifier),
         new InstallsFilesValidator(downloader, moduleService)
     };
 }
开发者ID:CliftonMarien,项目名称:CKAN,代码行数:9,代码来源:CkanValidator.cs


示例13: SubscribeCore

 protected override void SubscribeCore(IHttpService service)
 {
     Register(service, "/subscriptions/{stream}/{subscription}", HttpMethod.Get, GetSubscriptionInfo, Codec.NoCodecs, DefaultCodecs);
     Register(service, "/subscriptions/{stream}", HttpMethod.Get, GetSubscriptionInfoForStream, Codec.NoCodecs, DefaultCodecs);
     Register(service, "/subscriptions", HttpMethod.Get, GetAllSubscriptionInfo, Codec.NoCodecs, DefaultCodecs);
     Register(service, "/subscriptions/{stream}/{subscription}", HttpMethod.Put, PutSubscription, DefaultCodecs, DefaultCodecs);
     Register(service, "/subscriptions/{stream}/{subscription}", HttpMethod.Post, PostSubscription, DefaultCodecs, DefaultCodecs);
     RegisterUrlBased(service, "/subscriptions/{stream}/{subscription}", HttpMethod.Delete, DeleteSubscription);
     RegisterUrlBased(service, "/subscriptions/{stream}/{subscription}/replayParked", HttpMethod.Post, ReplayParkedMessages);
 }
开发者ID:rikace,项目名称:EventStore,代码行数:10,代码来源:PersistentSubscriptionController.cs


示例14: SubscribeCore

        protected override void SubscribeCore(IHttpService service)
        {
            _clusterNodeWeb.RegisterControllerActions(service);
            RegisterRedirectAction(service, "", "/web/home.htm");
            RegisterRedirectAction(service, "/web", "/web/home.htm");

            service.RegisterAction(
                new ControllerAction("/sys/subsystems", HttpMethod.Get, Codec.NoCodecs, new ICodec[] { Codec.Json }),
                OnListNodeSubsystems);
        }
开发者ID:MariuszTrybus,项目名称:EventStore,代码行数:10,代码来源:ClusterWebUIController.cs


示例15: RegisterControllerActions

 public void RegisterControllerActions(IHttpService service)
 {
     var pattern = _localWebRootPath + "/{*remaining_path}";
     _logger.Trace("Binding MiniWeb to {0}", pattern);
     service.RegisterAction(new ControllerAction(pattern,
                                                           HttpMethod.Get,
                                                           Codec.NoCodecs,
                                                           new ICodec[] { Codec.ManualEncoding }),
                                      OnStaticContent);
 }
开发者ID:MariuszTrybus,项目名称:EventStore,代码行数:10,代码来源:MiniWeb.cs


示例16: GetRatingWithCache

 public RatingResult GetRatingWithCache(string imdbId, IHttpService httpService, IFileSystem fileSystem)
 {
     RatingResult result = AttemptReadFromCache(imdbId, fileSystem);
     if (result == null)
     {
         result = base.GetRatingFromApi(imdbId, httpService);
         WriteResultToCache(imdbId, result, fileSystem);
     }
     return result;
 }
开发者ID:Jamedjo,项目名称:Raticon,代码行数:10,代码来源:RatingService.cs


示例17: SubscribeCore

        protected override void SubscribeCore(IHttpService service, HttpMessagePipe pipe)
        {
            Ensure.NotNull(service, "service");
            Ensure.NotNull(pipe, "pipe");

            service.RegisterControllerAction(new ControllerAction("/stats/{*statPath}",
                                                                  HttpMethod.Get,
                                                                  Codec.NoCodecs,
                                                                  SupportedCodecs,
                                                                  DefaultResponseCodec),
                                             OnGetFreshStats);
        }
开发者ID:jpierson,项目名称:EventStore,代码行数:12,代码来源:StatController.cs


示例18: Subscribe

        public void Subscribe(IHttpService service, HttpMessagePipe pipe)
        {
            Ensure.NotNull(service, "service");
            Ensure.NotNull(pipe, "pipe");

            service.RegisterControllerAction(new ControllerAction("/ping", 
                                                                  HttpMethod.Get,
                                                                  Codec.NoCodecs,
                                                                  SupportedCodecs,
                                                                  DefaultResponseCodec), 
                                             OnGetPing);
        }
开发者ID:vishal-h,项目名称:EventStore-1,代码行数:12,代码来源:PingController.cs


示例19: DataClient

		public DataClient (IMapperService mapperService, 
			IConnectivityService connectivityService,
			ISerializerService serializerService,
			IHttpService httpService,
			IAppConfig appConfig)
		{
			_mapperService = mapperService.ThrowIfNull ("mapperService");
			_connectivityService = connectivityService.ThrowIfNull ("connectivityService");
			_serializerService = serializerService.ThrowIfNull ("serializerService");
			_httpService = httpService.ThrowIfNull ("httpService");
			_appConfig = appConfig.ThrowIfNull ("appConfig");
		}
开发者ID:james-alt,项目名称:demos,代码行数:12,代码来源:DataClient.cs


示例20: SubscribeCore

 protected override void SubscribeCore(IHttpService service)
 {
     Register(service, "/test1", Test1Handler);
     Register(service, "/test-anonymous", TestAnonymousHandler);
     Register(service, "/test-encoding/{a}?b={b}", TestEncodingHandler);
     Register(service, "/test-encoding-reserved-%20?b={b}", (manager, match) => TestEncodingHandler(manager, match, "%20"));
     Register(service, "/test-encoding-reserved-%24?b={b}", (manager, match) => TestEncodingHandler(manager, match, "%24"));
     Register(service, "/test-encoding-reserved-%25?b={b}", (manager, match) => TestEncodingHandler(manager, match, "%25"));
     Register(service, "/test-encoding-reserved- ?b={b}", (manager, match) => TestEncodingHandler(manager, match, " "));
     Register(service, "/test-encoding-reserved-$?b={b}", (manager, match) => TestEncodingHandler(manager, match, "$"));
     Register(service, "/test-encoding-reserved-%?b={b}", (manager, match) => TestEncodingHandler(manager, match, "%"));
 }
开发者ID:kijanawoodard,项目名称:EventStore,代码行数:12,代码来源:TestController.cs



注:本文中的IHttpService类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IHttpSession类代码示例发布时间:2022-05-24
下一篇:
C# IHttpServer类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap