示例#1
0
 public void Participate(ISiloLifecycle lifecycle)
 => lifecycle.Subscribe(
     OptionFormattingUtilities.Name <RedisGrainStorage>(_name),
     ServiceLifecycleStage.ApplicationServices,
     Init,
     Close
     );
示例#2
0
 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);
     });
 }
示例#3
0
 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);
 }
示例#6
0
 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);
 }
示例#8
0
 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);
 }
示例#15
0
        public void Participate(ISiloLifecycle lifecycle)
        {
            var name = OptionFormattingUtilities.Name <AerospikeGrainStorage>(_name);

            lifecycle.Subscribe(name, _options.InitStage, Init, Close);
        }
示例#16
0
 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);
 }
示例#18
0
 public void Participate(ISiloLifecycle lifecycle)
 {
     lifecycle.Subscribe(OptionFormattingUtilities.Name <AzureTableTransactionalStateStorageFactory>(this.name), this.options.InitStage, Init);
 }
示例#19
0
 public void Participate(ISiloLifecycle lifecycle)
 {
     lifecycle.Subscribe(OptionFormattingUtilities.Name <MinioGrainStorage>(this._name),
                         ServiceLifecycleStage.ApplicationServices, this.Init);
 }
示例#20
0
 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);
 }