Skip to content

Instantly share code, notes, and snippets.

@mastoj
Created October 11, 2013 06:37
Show Gist options
  • Save mastoj/6930469 to your computer and use it in GitHub Desktop.
Save mastoj/6930469 to your computer and use it in GitHub Desktop.
namespace Configurer
{
public static class SomeThing
{
public static string SomeString { get; set; }
}
public class PreApplicationStartCode
{
public static void Start()
{
SomeThing.SomeString = "I was initialized";
}
}
}
using System.Web;
[assembly: PreApplicationStartMethod(typeof(PreApplicationStartCode), "Start")]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment