Пример #1
0
 private static void RegisterDecorator()
 {
     NewInstanceServiceLoader.Register <IRouteDecorator>();
     NewInstanceServiceLoader.Register <ISqlRewriteContextDecorator>();
     NewInstanceServiceLoader.Register <IResultProcessEngine>();
 }
 static RoutingHookManager()
 {
     NewInstanceServiceLoader.Register<IRoutingHook>();
     Instance = new RoutingHookManager();
 }
Пример #3
0
 static SqlExecutionHookManager()
 {
     NewInstanceServiceLoader.Register <ISqlExecutionHook>();
     Instance = new SqlExecutionHookManager();
 }
Пример #4
0
 static SPITimeService()
 {
     NewInstanceServiceLoader.Register <ITimeService>();
     _instance = new SPITimeService();
 }
Пример #5
0
 static DataBaseTypeDiscoverManager()
 {
     NewInstanceServiceLoader.Register <IDataBaseTypeDiscover>();
     Instance = new DataBaseTypeDiscoverManager();
 }
Пример #6
0
 static ParsingHookManager()
 {
     NewInstanceServiceLoader.Register <IParsingHook>();
     Instance = new ParsingHookManager();
 }
Пример #7
0
 static ShardingDbProviderFactory()
 {
     NewInstanceServiceLoader.Register <IRouteDecorator>();
     NewInstanceServiceLoader.Register <ISqlRewriteContextDecorator>();
     NewInstanceServiceLoader.Register <IResultProcessEngine>();
 }
 static MasterSlaveLoadBalanceAlgorithmServiceLoader()
 {
     NewInstanceServiceLoader.Register <IMasterSlaveLoadBalanceAlgorithm>();
 }
Пример #9
0
 static SqlParserFactory()
 {
     NewInstanceServiceLoader.Register <ISqlParserConfiguration>();
 }
Пример #10
0
 static ShardingKeyGeneratorServiceLoader()
 {
     NewInstanceServiceLoader.Register <IShardingKeyGenerator>();
 }