当前位置: 首页>>代码示例>>C#>>正文


C# IUrlRegistry类代码示例

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


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


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