Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
Implement manual state machine
Browse files Browse the repository at this point in the history
  • Loading branch information
rynowak committed Aug 1, 2016
1 parent d60ed06 commit e77dc3a
Show file tree
Hide file tree
Showing 4 changed files with 1,277 additions and 525 deletions.
6 changes: 6 additions & 0 deletions samples/MvcSandbox/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System.IO;
using Microsoft.AspNetCore.Antiforgery;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

namespace MvcSandbox
{
Expand All @@ -15,6 +17,10 @@ public class Startup
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();

services.Insert(0, ServiceDescriptor.Singleton(
typeof(IConfigureOptions<AntiforgeryOptions>),
new ConfigureOptions<AntiforgeryOptions>(options => options.CookieName = "<choose a name>")));
}

// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
Expand Down
Loading

0 comments on commit e77dc3a

Please sign in to comment.