Beispiel #1
0
 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));
 }
Beispiel #3
0
        public static IConversationExpirationChecker Create(IBurrowConfig cfg)
        {
            string checkerName = cfg.ConversationExpirationChecker;

            if (string.IsNullOrEmpty(checkerName))
            {
                return(new ConversationExpirationCheckerByTimeout());
            }
            return(InstanceLoader.Load <IConversationExpirationChecker>(checkerName));
        }
Beispiel #4
0
        private IWorkSpaceNameSniffer Sniffer()
        {
            IBurrowConfig cfg = bf.BurrowEnvironment.Configuration;

            if (string.IsNullOrEmpty(cfg.WorkSpaceNameSniffer))
            {
                return(new WorkSpaceSnifferByAttribute());
            }
            else
            {
                return(InstanceLoader.Load <IWorkSpaceNameSniffer>(cfg.WorkSpaceNameSniffer));
            }
        }