Exemple #1
0
 public static DynamicModule Create()
 {
     Instance = new DynamicModule();
     return(Instance);
 }
Exemple #2
0
 /// <summary>
 /// queue
 /// </summary>
 /// <param name="configuration"></param>
 /// <returns></returns>
 public static DynamicModule UseCacheQueue(this DynamicModule configuration)
 {
     configuration.RegisterModule <Lind.DDD.CachingQueue.IQueue, Lind.DDD.CachingQueue.Implements.MemoryQueue>();
     return(configuration);
 }
Exemple #3
0
 /// <summary>
 /// message
 /// </summary>
 /// <param name="configuration"></param>
 /// <returns></returns>
 public static DynamicModule UseMessaging(this DynamicModule configuration)
 {
     configuration.RegisterModule <IMessageManager, EmptyMessageManager>();
     return(configuration);
 }
Exemple #4
0
 /// <summary>
 /// cache
 /// </summary>
 /// <param name="configuration"></param>
 /// <returns></returns>
 public static DynamicModule UseCache(this DynamicModule configuration)
 {
     configuration.RegisterModule <Lind.DDD.Caching.ICache, Lind.DDD.Caching.RedisCache>();
     return(configuration);
 }
Exemple #5
0
 /// <summary>
 /// logger
 /// </summary>
 /// <param name="configuration"></param>
 /// <returns></returns>
 public static DynamicModule UseLogger(this DynamicModule configuration)
 {
     configuration.RegisterModule <ILogger, NormalLogger>();
     return(configuration);
 }