示例#1
0
 public static ISiloAzureQueueStreamConfigurator ConfigureQueueDataAdapter <TQueueDataAdapter>(this ISiloAzureQueueStreamConfigurator configurator)
     where TQueueDataAdapter : IQueueDataAdapter <CloudQueueMessage, IBatchContainer>
 {
     configurator.ConfigureComponent <IQueueDataAdapter <CloudQueueMessage, IBatchContainer> >((sp, n) => ActivatorUtilities.CreateInstance <TQueueDataAdapter>(sp));
     return(configurator);
 }
示例#2
0
 public static ISiloAzureQueueStreamConfigurator ConfigureCacheSize(this ISiloAzureQueueStreamConfigurator configurator, int cacheSize = SimpleQueueCacheOptions.DEFAULT_CACHE_SIZE)
 {
     configurator.Configure <SimpleQueueCacheOptions>(ob => ob.Configure(options => options.CacheSize = cacheSize));
     return(configurator);
 }
示例#3
0
 public static ISiloAzureQueueStreamConfigurator ConfigureQueueDataAdapter <TQueueDataAdapter>(this ISiloAzureQueueStreamConfigurator configurator, Func <IServiceProvider, string, IQueueDataAdapter <CloudQueueMessage, IBatchContainer> > factory)
     where TQueueDataAdapter : IQueueDataAdapter <CloudQueueMessage, IBatchContainer>
 {
     configurator.ConfigureComponent <IQueueDataAdapter <CloudQueueMessage, IBatchContainer> >(factory);
     return(configurator);
 }
示例#4
0
 public static ISiloAzureQueueStreamConfigurator ConfigureAzureQueue(this ISiloAzureQueueStreamConfigurator configurator, Action <OptionsBuilder <AzureQueueOptions> > configureOptions)
 {
     configurator.Configure <AzureQueueOptions>(configureOptions);
     return(configurator);
 }