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); }
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); }
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); }
public static ISiloAzureQueueStreamConfigurator ConfigureAzureQueue(this ISiloAzureQueueStreamConfigurator configurator, Action <OptionsBuilder <AzureQueueOptions> > configureOptions) { configurator.Configure <AzureQueueOptions>(configureOptions); return(configurator); }