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();
 }
Esempio n. 2
0
        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;
        }
Esempio n. 3
0
 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;
 }