This file contains 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 System.Collections.Generic; | |
using System.Web.Mvc; | |
using Microsoft.Practices.Unity; | |
namespace MySystem.Ioc | |
{ | |
public class UnityDependencyResolver : IDependencyResolver | |
{ | |
public readonly IUnityContainer Container; |
This file contains 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 System.Web.Mvc; | |
using System.Web.Routing; | |
namespace MySystem.Ioc | |
{ | |
public class DependencyInjectionControllerActivator : IControllerActivator | |
{ | |
public IController Create(RequestContext requestContext, Type controllerType) | |
{ |
This file contains 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
<configuration> | |
... | |
<system.web.webPages.razor> | |
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> | |
<pages pageBaseType="MyNamespace.Application.ApplicationViewPage"> | |
<namespaces> | |
<add namespace="System.Web.Mvc" /> | |
<add namespace="System.Web.Mvc.Ajax" /> | |
<add namespace="System.Web.Mvc.Html" /> | |
<add namespace="System.Web.Routing" /> |
This file contains 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 System.Collections.Generic; | |
using System.Configuration; | |
using System.Web.Mvc; | |
namespace MyNamespace.Application | |
{ | |
public abstract class ApplicationViewPage<T> : WebViewPage<T> | |
{ | |
protected override void InitializePage() |
This file contains 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.Web.Mvc; | |
using Microsoft.Practices.Unity; | |
namespace MyNamespace.Application | |
{ | |
public class ApplicationController : Controller | |
{ | |
[Dependency] | |
public ILogger Logger { get; set; } | |
} |
This file contains 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> | |
<meta charset="utf-8" /> | |
<title>@ViewBag.Title</title> | |
<link href="@Url.Content("~/Content/css/bootstrap.css")" rel="stylesheet" type="text/css" /> | |
<link href="@Url.Content("~/Content/css/bootstrap-responsive.css")" rel="stylesheet" type="text/css" /> | |
<script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" type="text/javascript"></script> | |
<script src="@Url.Content("~/Scripts/bootstrap.js")" type="text/javascript"></script> | |
<script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script> |
This file contains 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
<html> | |
<head> | |
</head> | |
<body> | |
<a href="#">Click me, bro</a> | |
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.8.0.min.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$('a').click(function(){ |
This file contains 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 System.ComponentModel; | |
using System.Runtime.CompilerServices; | |
using System.Threading; | |
namespace WoodChipper.Models | |
{ | |
public class LogLevelStats : INotifyPropertyChanged | |
{ | |
public virtual int DebugLines |
This file contains 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
// | |
// TipCalculatorTests.m | |
// TipCalculatorTests | |
// | |
// Created by Brandon Linton on 1/25/14. | |
// Copyright (c) 2014 Brandon. All rights reserved. | |
// | |
#import <XCTest/XCTest.h> |
This file contains 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
# Remove the /all if you receive any errors | |
& dism /online /get-features | more | |
& dism /online /enable-feature /FeatureName:IIS-CertProvider /all | |
& dism /online /enable-feature /FeatureName:IIS-WindowsAuthentication /all | |
& dism /online /enable-feature /FeatureName:IIS-ClientCertificateMappingAuthentication /all | |
& dism /online /enable-feature /FeatureName:IIS-StaticContent /all | |
& dism /online /enable-feature /FeatureName:IIS-DefaultDocument /all | |
& dism /online /enable-feature /FeatureName:IIS-WebSockets /all |
OlderNewer