예제 #1
0
        public OrleansStreamingPubSub(IGrainFactory grainFactory, ILocalSiloDetails silo, ILogger <OrleansStreamingPubSub> logger)
        {
            hostGrain =
                grainFactory.GetGrain <IStreamingPubSubHostGrain>(
                    silo.SiloAddress.ToParsableString());

            subscriptions = new Subscriptions(logger);
        }
예제 #2
0
        public OrleansStreamingPubSub(IGrainFactory grainFactory, ILocalSiloDetails localSiloDetails, ILogger <OrleansStreamingPubSub> logger)
        {
            brokerGrain = grainFactory.GetGrain <IStreamingPubSubBrokerGrain>(Constants.BrokerId);

            hostGrain = grainFactory.GetGrain <IStreamingPubSubHostGrain>(localSiloDetails.SiloAddress.ToParsableString());

            this.logger = logger;
        }