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

C# IUrlRegistry类代码示例

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

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



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

示例1: SetUp

        public void SetUp()
        {
            graph = new FubuRegistry().BuildGraph();
            urls = MockRepository.GenerateMock<IUrlRegistry>();

            writer = new BehaviorGraphWriter(graph, urls, null);
        }
开发者ID:henninga,项目名称:fubumvc,代码行数:7,代码来源:BehaviorGraphWriterTester.cs


示例2: AuthenticationRequiredBehavior

 public AuthenticationRequiredBehavior(ISecurityContext securityContext, IUrlRegistry urlRegistry, IOutputWriter outputWriter)
     : base(PartialBehavior.Ignored)
 {
     _securityContext = securityContext;
     _urlRegistry = urlRegistry;
     _outputWriter = outputWriter;
 }
开发者ID:henninga,项目名称:FubuDate,代码行数:7,代码来源:AuthenticationRequiredBehavior.cs


示例3: ResourceAction

 public ResourceAction(ConnegActionFinder connegActionActionFinder, ActionCallMapper actionCallMapper, IUrlRegistry urlRegistry, ICurrentHttpRequest currentHttpRequest)
 {
     _connegActionActionFinder = connegActionActionFinder;
     _actionCallMapper = actionCallMapper;
     _urlRegistry = urlRegistry;
     _currentHttpRequest = currentHttpRequest;
 }
开发者ID:styson,项目名称:fubumvc-swagger,代码行数:7,代码来源:ResourceAction.cs


示例4: KatanaHostingActivator

 public KatanaHostingActivator(KatanaSettings settings, FubuRouteTable routes, IUrlRegistry urls, IServiceLocator services)
 {
     _settings = settings;
     _routes = routes.Routes;
     _urls = urls;
     _services = services;
 }
开发者ID:mtscout6,项目名称:fubumvc,代码行数:7,代码来源:KatanaHostingActivator.cs


示例5: SetUp

        public void SetUp()
        {
            graph = new FubuRegistry().BuildGraph();
            urls = MockRepository.GenerateMock<IUrlRegistry>();

            writer = new BehaviorGraphWriter(graph, urls, null, new StubCurrentHttpRequest("http://server"));
        }
开发者ID:jemacom,项目名称:fubumvc,代码行数:7,代码来源:BehaviorGraphWriterTester.cs


示例6: SetUp

        public void SetUp()
        {
            urls = MockRepository.GenerateMock<IUrlRegistry>();
            page = MockRepository.GenerateMock<IFubuPage>();

            page.Stub(x => x.Urls).Return(urls);
        }
开发者ID:TimBarcz,项目名称:fubumvc,代码行数:7,代码来源:FormForExpressionTester.cs


示例7: BehaviorGraphWriter

 public BehaviorGraphWriter(BehaviorGraph graph, IUrlRegistry urls, IServiceLocator services)
 {
     _graph = graph;
     _urls = urls;
     _services = services;
     _diagnosticsNamespace = GetType().Namespace;
 }
开发者ID:sbartlett,项目名称:fubumvc,代码行数:7,代码来源:BehaviorGraphWriter.cs


示例8: SetUp

        public void SetUp()
        {
            graph = new FubuRegistry(x => { x.Applies.ToThisAssembly(); }).BuildGraph();
            urls = MockRepository.GenerateMock<IUrlRegistry>();

            writer = new BehaviorGraphWriter(graph, urls);
        }
开发者ID:joshuaflanagan,项目名称:fubumvc,代码行数:7,代码来源:BehaviorGraphWriterTester.cs


示例9: DiagnosticBehavior

 public DiagnosticBehavior(IDebugReport report, IDebugDetector detector, IActionBehavior inner, IUrlRegistry urls)
 {
     _report = report;
     _detector = detector;
     _inner = inner;
     _urls = urls;
 }
开发者ID:joshuaflanagan,项目名称:fubumvc,代码行数:7,代码来源:DiagnosticBehavior.cs


示例10: AjaxAuthenticationRedirect

		public AjaxAuthenticationRedirect(IRequestData data, IJsonWriter jsonWriter, IOutputWriter outputWriter, IUrlRegistry urls)
		{
			_data = data;
			_jsonWriter = jsonWriter;
			_outputWriter = outputWriter;
			_urls = urls;
		}
开发者ID:mtscout6,项目名称:FubuMVC.Authentication,代码行数:7,代码来源:AjaxAuthenticationRedirect.cs


示例11: SamlEndpoint

 public SamlEndpoint(IRequestData requestData, SamlResponseRedirector redirector, IUrlRegistry urls, ISamlResponseWriter writer)
 {
     _requestData = requestData;
     _redirector = redirector;
     _urls = urls;
     _writer = writer;
 }
开发者ID:sbartlett,项目名称:FubuMVC.Saml2,代码行数:7,代码来源:SamlEndpoint.cs


示例12: BootstrapAuthorizationFailureHandler

 public BootstrapAuthorizationFailureHandler(IOutputWriter writer, IRequestData requestData, IUrlRegistry urlRegistry, IHttpRequest currentHttpRequest)
 {
     _writer = writer;
     _requestData = requestData;
     _urlRegistry = urlRegistry;
     _currentHttpRequest = currentHttpRequest;
 }
开发者ID:modulexcite,项目名称:dovetail-bootstrap,代码行数:7,代码来源:BootstrapAuthorizationFailureHandler.cs


示例13: RequestLinksTag

        public RequestLinksTag(RequestLog log, IUrlRegistry urls)
        {
            AddHeader("Chain Details");

            Add("li").Add("a").Id("chain-summary").Attr("href", "#").Text("View Summary");
            Add("li").Add("span/a").Attr("href", urls.UrlFor(new ChainDetailsRequest{Id = log.ChainId})).Text("View Details").AddClass("external").Attr("target", "_blank");
        }
开发者ID:DarthFubuMVC,项目名称:FubuMVC.Diagnostics,代码行数:7,代码来源:RequestLinksTag.cs


示例14: ExampleHtmlWriter

 public ExampleHtmlWriter(IServiceLocator serviceLocator, IUrlRegistry urlRegistry, BehaviorGraph behaviorGraph)
 {
     _serviceLocator = serviceLocator;
     _urlRegistry = urlRegistry;
     _behaviorGraph = behaviorGraph;
     _examplePageUrl = "_fubu/html/example".ToAbsoluteUrl();
 }
开发者ID:nhsevidence,项目名称:fubumvc,代码行数:7,代码来源:ExampleHtmlWriter.cs


示例15: NavigationService

 public NavigationService(BehaviorGraph graph, ICurrentHttpRequest request, IMenuStateService stateService, IUrlRegistry urls)
 {
     _request = request;
     _stateService = stateService;
     _urls = urls;
     _navigation = graph.Settings.Get<NavigationGraph>();
 }
开发者ID:aluetjen,项目名称:fubumvc,代码行数:7,代码来源:NavigationService.cs


示例16: DiagnosticMenuTag

        public DiagnosticMenuTag(IDiagnosticContext context, ICurrentHttpRequest currentHttpRequest, IUrlRegistry urls) : base("ul")
        {
            AddClass("nav");

            var group = context.CurrentGroup();

            var index = group.Index();
            if (index != null)
            {
                addLink(index, context, currentHttpRequest);
            }
            else
            {
                var url = urls.UrlFor(new GroupRequest {Name = group.Name});
                var li = Add("li");
                li.Add("a").Attr("href", url).Text(group.Name).Attr("title", group.Description);

                if (context.CurrentChain() == null)
                {
                    li.AddClass("active");
                }
            }

            group.Links().Each(x => addLink(x, context, currentHttpRequest));
        }
开发者ID:DarthFubuMVC,项目名称:FubuMVC.Diagnostics,代码行数:25,代码来源:FubuPageExtensions.cs


示例17: SingleContentEndpoint

 public SingleContentEndpoint(IRepository<Content> repository, SiteSettings settings, ServerVariables vars, IUrlRegistry reg)
 {
     _repository = repository;
     _settings = settings;
     _vars = vars;
     _reg = reg;
 }
开发者ID:flq,项目名称:Rf.Sites,代码行数:7,代码来源:SingleContentEndpoint.cs


示例18: CreateLink

        public Link CreateLink(IUrlRegistry urls)
        {
            var url = _source(urls);
            var link = new Link(url);
            _modifications.Each(x => x(link));

            return link;
        }
开发者ID:ahjohannessen,项目名称:FubuMVC.Media,代码行数:8,代码来源:LinkExpression.cs


示例19: ScheduledJobsFubuDiagnostics

 public ScheduledJobsFubuDiagnostics(IUrlRegistry urls, ISchedulePersistence persistence, ChannelGraph graph, ScheduledJobGraph jobs, IScheduledJobController controller)
 {
     _urls = urls;
     _persistence = persistence;
     _graph = graph;
     _jobs = jobs;
     _controller = controller;
 }
开发者ID:cothienlac86,项目名称:fubumvc,代码行数:8,代码来源:ScheduledJobsFubuDiagnostics.cs


示例20: RequestLogBuilder

 public RequestLogBuilder(IUrlRegistry urls, ISystemTime systemTime, ICurrentHttpRequest request, ICurrentChain currentChain, IRequestData requestData)
 {
     _urls = urls;
     _systemTime = systemTime;
     _request = request;
     _currentChain = currentChain;
     _requestData = requestData;
 }
开发者ID:kharlamov,项目名称:FubuMVC.Diagnostics,代码行数:8,代码来源:RequestLogBuilder.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# IUser类代码示例发布时间:2022-05-24
下一篇:
C# IUrlRecordService类代码示例发布时间: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