Format:
Recent snippets matching tags of PortableAreas
// Map content before registering areas protected void Application_Start() { Content.Map<MyPortableArea>() .Master("~/Views/Shared/PA.master") .Title("PATitle") .Body("PAMain"); AreaRegistration.RegisterAllAreas();
277 Views
no comments
private static IEnumerable<Type> FindAllMessageHandlers() { var iMessageHandler = typeof(IMessageHandler); var types = from type in AppDomain.CurrentDomain.GetAssemblies().SelectMany(t => t.GetTypes()) let canInstantiate = !type.IsInterface && !type.IsAbstract && !type.IsNestedPrivate let isIMessageHandler = type.GetInterface(iMessageHandler.Name) != null where canInstantiate && isIMessageHandler select type;
295 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
