本文整理汇总了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);
}
示例2: AuthenticationRequiredBehavior
public AuthenticationRequiredBehavior(ISecurityContext securityContext, IUrlRegistry urlRegistry, IOutputWriter outputWriter)
: base(PartialBehavior.Ignored)
{
_securityContext = securityContext;
_urlRegistry = urlRegistry;
_outputWriter = outputWriter;
}
示例3: ResourceAction
public ResourceAction(ConnegActionFinder connegActionActionFinder, ActionCallMapper actionCallMapper, IUrlRegistry urlRegistry, ICurrentHttpRequest currentHttpRequest)
{
_connegActionActionFinder = connegActionActionFinder;
_actionCallMapper = actionCallMapper;
_urlRegistry = urlRegistry;
_currentHttpRequest = currentHttpRequest;
}
示例4: KatanaHostingActivator
public KatanaHostingActivator(KatanaSettings settings, FubuRouteTable routes, IUrlRegistry urls, IServiceLocator services)
{
_settings = settings;
_routes = routes.Routes;
_urls = urls;
_services = services;
}
示例5: SetUp
public void SetUp()
{
graph = new FubuRegistry().BuildGraph();
urls = MockRepository.GenerateMock<IUrlRegistry>();
writer = new BehaviorGraphWriter(graph, urls, null, new StubCurrentHttpRequest("http://server"));
}
示例6: SetUp
public void SetUp()
{
urls = MockRepository.GenerateMock<IUrlRegistry>();
page = MockRepository.GenerateMock<IFubuPage>();
page.Stub(x => x.Urls).Return(urls);
}
示例7: BehaviorGraphWriter
public BehaviorGraphWriter(BehaviorGraph graph, IUrlRegistry urls, IServiceLocator services)
{
_graph = graph;
_urls = urls;
_services = services;
_diagnosticsNamespace = GetType().Namespace;
}
示例8: SetUp
public void SetUp()
{
graph = new FubuRegistry(x => { x.Applies.ToThisAssembly(); }).BuildGraph();
urls = MockRepository.GenerateMock<IUrlRegistry>();
writer = new BehaviorGraphWriter(graph, urls);
}
示例9: DiagnosticBehavior
public DiagnosticBehavior(IDebugReport report, IDebugDetector detector, IActionBehavior inner, IUrlRegistry urls)
{
_report = report;
_detector = detector;
_inner = inner;
_urls = urls;
}
示例10: AjaxAuthenticationRedirect
public AjaxAuthenticationRedirect(IRequestData data, IJsonWriter jsonWriter, IOutputWriter outputWriter, IUrlRegistry urls)
{
_data = data;
_jsonWriter = jsonWriter;
_outputWriter = outputWriter;
_urls = urls;
}
示例11: SamlEndpoint
public SamlEndpoint(IRequestData requestData, SamlResponseRedirector redirector, IUrlRegistry urls, ISamlResponseWriter writer)
{
_requestData = requestData;
_redirector = redirector;
_urls = urls;
_writer = writer;
}
示例12: BootstrapAuthorizationFailureHandler
public BootstrapAuthorizationFailureHandler(IOutputWriter writer, IRequestData requestData, IUrlRegistry urlRegistry, IHttpRequest currentHttpRequest)
{
_writer = writer;
_requestData = requestData;
_urlRegistry = urlRegistry;
_currentHttpRequest = currentHttpRequest;
}
示例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");
}
示例14: ExampleHtmlWriter
public ExampleHtmlWriter(IServiceLocator serviceLocator, IUrlRegistry urlRegistry, BehaviorGraph behaviorGraph)
{
_serviceLocator = serviceLocator;
_urlRegistry = urlRegistry;
_behaviorGraph = behaviorGraph;
_examplePageUrl = "_fubu/html/example".ToAbsoluteUrl();
}
示例15: NavigationService
public NavigationService(BehaviorGraph graph, ICurrentHttpRequest request, IMenuStateService stateService, IUrlRegistry urls)
{
_request = request;
_stateService = stateService;
_urls = urls;
_navigation = graph.Settings.Get<NavigationGraph>();
}