public StreamProviderManagerAgent(Silo silo, List<IProvider> allSiloProviders) : base(Constants.StreamProviderManagerAgentSystemTargetId, silo.SiloAddress) { logger = LogManager.GetLogger("StreamProviderUpdateAgent", LoggerType.Runtime); this.streamProviderManager = (StreamProviderManager)silo.StreamProviderManager; providerConfigurations = silo.GlobalConfig.ProviderConfigurations; this.allSiloProviders = allSiloProviders; nonReentrancyGuarantor = new AsyncSerialExecutor(); }
private void StreamingInitialize() { var implicitSubscriberTable = transport.GetImplicitStreamSubscriberTable(grainFactory).Result; clientProviderRuntime.StreamingInitialize(implicitSubscriberTable); var streamProviderManager = new Streams.StreamProviderManager(); streamProviderManager .LoadStreamProviders( this.config.ProviderConfigurations, clientProviderRuntime) .Wait(); CurrentStreamProviderManager = streamProviderManager; }