This file contains hidden or 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
public class ModuleRegistrationConvention : IRegistrationConvention { | |
#region IRegistrationConvention Members | |
public void Process(Type type, StructureMap.Configuration.DSL.Registry registry) { | |
// only interested in non abstract concrete types that have a matching named interface | |
if (type.IsAbstract || !type.IsClass || type.GetInterface("IModule") == null) | |
return; | |
System.Diagnostics.Debug.WriteLine("Found {0} {1}", type.Name, type.Assembly); | |
registry.AddType(typeof(IModule), type); | |
} |
This file contains hidden or 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
// FastDelegate.h | |
// Efficient delegates in C++ that generate only two lines of asm code! | |
// Documentation is found at http://www.codeproject.com/cpp/FastDelegate.asp | |
// | |
// - Don Clugston, Mar 2004. | |
// Major contributions were made by Jody Hagins. | |
// History: | |
// 24-Apr-04 1.0 * Submitted to CodeProject. | |
// 28-Apr-04 1.1 * Prevent most unsafe uses of evil static function hack. | |
// * Improved syntax for horrible_cast (thanks Paul Bludov). |
This file contains hidden or 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
case "$(uname)" in | |
Darwin|FreeBSD) | |
archive_md5="$(/sbin/md5 -q "${archive}")" | |
;; | |
OpenBSD) | |
archive_md5="$(/bin/md5 -q "${archive}")" | |
;; | |
Linux|*) |
NewerOlder