This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<configSections> | |
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> | |
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /> | |
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /> | |
</sectionGroup> | |
</configSections> | |
<system.web> | |
<compilation debug="true" targetFramework="4.5"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>title</title> | |
</head> | |
<body> | |
<header><h1>Hello from Layout</h1></header> | |
<div> | |
@RenderBody() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<system.webServer> | |
<modules runAllManagedModulesForAllRequests="true" /> | |
</system.webServer> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using FubuMVC.Core; | |
using HelloWorld.Features.Home; | |
namespace HelloWorld | |
{ | |
public class HelloWorldRegistry : FubuRegistry | |
{ | |
public HelloWorldRegistry() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<viewdata model="HelloWorld.Features.Home.HomeViewModel" /> | |
<h1>Hello ${Model.Message}</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using FubuMVC.Core; | |
using FubuMVC.StructureMap; | |
using StructureMap; | |
namespace HelloWorld | |
{ | |
public class Global : System.Web.HttpApplication | |
{ | |
protected void Application_Start(object sender, EventArgs e) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AcceptPrivacyPolicyRedirector | |
{ | |
private readonly ISession _session; | |
public AcceptPrivacyPolicyRedirector(ISession session) | |
{ | |
_session = session; | |
} | |
public FubuContinuation Execute(UserRequestInputModel input) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AcceptPrivacyStatementPolicy : IConfigurationAction | |
{ | |
public void Configure(BehaviorGraph graph) | |
{ | |
graph.Actions() | |
.Where(x => x.RequiresAuthentication()) | |
.Each(x => x.WrapWith<AccceptPrivacyPolicyRedirector>()); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AcceptPrivacyPolicyRedirector : IActionBehavior | |
{ | |
private readonly ISession _session; | |
private readonly IFubuRequest _fubuRequest; | |
private readonly IContinuationDirector _continuationDirector; | |
private readonly IActionBehavior _inner; | |
public AcceptPrivacyPolicyRedirector(ISession session, IFubuRequest fubuRequest, IContinuationDirector continuationDirector, IActionBehavior inner) | |
{ | |
_session = session; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rhino.esb> | |
<assemblies> | |
<add assembly="Rhino.ServiceBus.RhinoQueues" /> | |
</assemblies> | |
<bus threadCount="1" | |
numberOfRetries="5" | |
endpoint="rhino.queues://localhost/test_queue" | |
queueIsolationLevel="ReadCommitted" | |
/> | |
<messages> |