Skip to content

Instantly share code, notes, and snippets.

View yunlang's full-sized avatar

parkheesung yunlang

View GitHub Profile
@yunlang
yunlang / Global.asax
Last active February 19, 2020 01:24
Razor in Global.asax
using System;
using System.Web.Razor;
using System.Web.WebPages;
namespace WE.Runner
{
public class Global : System.Web.HttpApplication
{
protected void Application_Start(object sender, EventArgs e)
@yunlang
yunlang / web.config
Last active February 19, 2020 01:24
Razor add web.config
<system.web>
<httpRuntime targetFramework="4.6.1"/>
<compilation debug="true" targetFramework="4.6.1">
<buildProviders>
<add extension=".html" type="System.Web.WebPages.Razor.RazorBuildProvider"/>
</buildProviders>
</compilation>
</system.web>
@yunlang
yunlang / Logger.cs
Last active February 17, 2020 04:53
C# Logger by nLog
public class Logger
{
private static NLog.Logger logger;
private static readonly Lazy<Logger> lazy = new Lazy<Logger>(() => new Logger());
public static Logger Instance { get { return lazy.Value; } }
public Logger()
{
LoggingConfiguration config = new LoggingConfiguration();