public virtual void Participate(TLifecycle lifecycle) { this.initStage = this.config.GetIntProperty(LegacyProviderConfigurator.InitStageName, this.defaultInitStage); lifecycle.Subscribe(this.initStage, this.Init, this.ProviderClose); this.startStage = this.config.GetIntProperty(LegacyProviderConfigurator.StartStageName, this.defaultStartStage); lifecycle.Subscribe(this.startStage, this.Start, this.StreamProviderClose); }
public virtual void Participate(TLifecycle lifecycle) { this.initStage = this.config.GetIntProperty(LegacyProviderConfigurator.InitStageName, this.defaultInitStage); lifecycle.Subscribe($"LegacyProvider-{typeof(TService).FullName}-{config.Type}-{config.Name}", this.initStage, this.Init, this.ProviderClose); }