public IInterceptor CreateInterceptor() { if (string.IsNullOrEmpty(Configuration.InterceptorFactory)) { return(null); } return(InstanceLoader.Load <IInterceptorFactory>(Configuration.InterceptorFactory).Create(NHConfiguration)); }
public DataProviderBase CreateDataProvider() { System.Type type = System.Type.GetType(dataProviderName); if (type == null) { throw new TestUtilException("DataProvider Type " + dataProviderName + " not found. "); } return((DataProviderBase)InstanceLoader.Load(type)); }
public static IConversationExpirationChecker Create(IBurrowConfig cfg) { string checkerName = cfg.ConversationExpirationChecker; if (string.IsNullOrEmpty(checkerName)) { return(new ConversationExpirationCheckerByTimeout()); } return(InstanceLoader.Load <IConversationExpirationChecker>(checkerName)); }
private IWorkSpaceNameSniffer Sniffer() { IBurrowConfig cfg = bf.BurrowEnvironment.Configuration; if (string.IsNullOrEmpty(cfg.WorkSpaceNameSniffer)) { return(new WorkSpaceSnifferByAttribute()); } else { return(InstanceLoader.Load <IWorkSpaceNameSniffer>(cfg.WorkSpaceNameSniffer)); } }