Skip to content

Instantly share code, notes, and snippets.

View cwe1ss's full-sized avatar

Christian Weiss cwe1ss

View GitHub Profile
@cwe1ss
cwe1ss / ICookieContainer
Created August 9, 2014 13:15
ICookieContainer
public interface ICookieContainer
{
bool Exists(string key);
string GetValue(string key);
T GetValue<T>(string key);
void SetValue(string key, object value, DateTime expires);
}
@cwe1ss
cwe1ss / gist:970c65995280496a1864
Last active August 29, 2015 14:03
Custom ViewEngine for the "Feature Folder" project structure
public class FeatureFolderViewEngine : RazorViewEngine
{
public FeatureFolderViewEngine()
{
// {0} ActionName
// {1} ControllerName
// {2} AreaName
AreaViewLocationFormats = new[]
{