public void Participate(ISiloLifecycle lifecycle) => lifecycle.Subscribe( OptionFormattingUtilities.Name <RedisGrainStorage>(_name), ServiceLifecycleStage.ApplicationServices, Init, Close );
public void Participate(ISiloLifecycle lifecycle) { lifecycle.Subscribe(OptionFormattingUtilities.Name <RedisGrainStorage>(StorageName), ServiceLifecycleStage.ApplicationServices, ct => { var result = ConnectionMultiplexer.Connect(Options.ConfigurationOptions); Database = result.GetDatabase(); return(Task.CompletedTask); }); }
public void Participate(ISiloLifecycle lifecycle) { try { lifecycle.Subscribe(OptionFormattingUtilities.Name <RedisGrainStorage>(this.name), this.options.InitStage, Init); logger.LogInformation($"Lifecycle started for {this.name}"); } catch (Exception ex) { logger.LogError(ex, "Redis grain storage failed participate in lifecycle."); } }
public void Participate(ISiloLifecycle lifecycle) => lifecycle.Subscribe(OptionFormattingUtilities.Name <CassandraGrainStorage>(_name), _cassandraStorageOptions.InitStage, Init, Close);
public void Participate(ILifecycleObservable lifecycle) { lifecycle.Subscribe(OptionFormattingUtilities.Name <PersistentStreamProvider>(this.Name), this.lifeCycleOptions.InitStage, Init); lifecycle.Subscribe(OptionFormattingUtilities.Name <PersistentStreamProvider>(this.Name), this.lifeCycleOptions.StartStage, Start, Close); }
public Formatter(string name, SimpleGeneratorOptions options) { this.options = options; this.Name = OptionFormattingUtilities.Name <SimpleGeneratorOptions>(name); }
public AdoNetStorageOptionsFormatteFormatter(string name, AdoNetGrainStorageOptions options) { this.options = options; this.Name = OptionFormattingUtilities.Name <AdoNetGrainStorageOptions>(name); }
void ILifecycleParticipant <ISiloLifecycle> .Participate(ISiloLifecycle lifecycle) { lifecycle.Subscribe(OptionFormattingUtilities.Name <CassandraGrainStorage>(name), options.InitStage, Init); }
public void Participate(ISiloLifecycle lifecycle) { lifecycle.Subscribe(OptionFormattingUtilities.Name <AdoNetGrainStorage>(this.name), this.options.InitStage, Init, Close); }
public void Participate(IGrainLifecycle lifecycle) { lifecycle.Subscribe(OptionFormattingUtilities.Name <TableExampleStorage <TState> >(this.Name), GrainLifecycleStage.SetupState, LoadState); }
public void Participate(ISiloLifecycle lifecycle) { lifecycle.Subscribe(OptionFormattingUtilities.Name <RedisGrainStorage>(_name), _options.InitStage, Init, Close); }
public AzureTableStorageOptionsFormatter(string name, AzureTableStorageOptions options) { this.options = options; this.Name = OptionFormattingUtilities.Name <AzureTableStorageOptions>(name); }
public void Participate(ISiloLifecycle lifecycle) { lifecycle.Subscribe(OptionFormattingUtilities.Name <MorsteadEtcdGrainStorage>(this.name), this.options.InitStage, Init); }
public void Participate(ISiloLifecycle lifecycle) { lifecycle.Subscribe(OptionFormattingUtilities.Name <CosmosDbGraphStorage>(name), options.InitStage, Init, Close); }
public void Participate(ISiloLifecycle lifecycle) { var name = OptionFormattingUtilities.Name <AerospikeGrainStorage>(_name); lifecycle.Subscribe(name, _options.InitStage, Init, Close); }
public void Participate(ISiloLifecycle lifecycle) { lifecycle.Subscribe(OptionFormattingUtilities.Name <PersistentStreamProviderMatcher>(), ServiceLifecycleStage.ApplicationServices, Init); }
public void Participate(ISiloLifecycle lifecycle) { lifecycle.Subscribe(OptionFormattingUtilities.Name <CosmosDbGrainStorage>(storageName), ServiceLifecycleStage.ApplicationServices, Init); }
public void Participate(ISiloLifecycle lifecycle) { lifecycle.Subscribe(OptionFormattingUtilities.Name <AzureTableTransactionalStateStorageFactory>(this.name), this.options.InitStage, Init); }
public void Participate(ISiloLifecycle lifecycle) { lifecycle.Subscribe(OptionFormattingUtilities.Name <MinioGrainStorage>(this._name), ServiceLifecycleStage.ApplicationServices, this.Init); }
public void Participate(ISiloLifecycle lifecycle) { lifecycle.Subscribe(OptionFormattingUtilities.Name <CustomCategoriesStorage>(_storageName), ServiceLifecycleStage.ApplicationServices, Init); }
public void Participate(ISiloLifecycle lifecycle) { lifecycle.Subscribe(OptionFormattingUtilities.Name <CosmosDBGrainStorage>(this._name), this._options.InitStage, this.Init, this.Close); }
public void Participate(ISiloLifecycle lifecycle) { lifecycle.Subscribe(OptionFormattingUtilities.Name <ValueProducerGrainStorage>(Name), ServiceLifecycleStage.ApplicationServices, (_) => Task.CompletedTask, (_) => Task.CompletedTask); }