public WebSocketRealtimeService( IDistributedPubSubService distributedPubSubService, IOptions <MvcJsonOptions> jsonOptions) { distributedPubSubService_ = distributedPubSubService; jsonOptions_ = jsonOptions.Value.SerializerSettings; }
public DistributedStateRepository( IRedisConnectionService redisConnectionService, IDistributedPubSubService pubSubService) { redisConnectionService_ = redisConnectionService; pubSubService_ = pubSubService; }
public static IDisposable Subscribe <T>(this IDistributedPubSubService distributedPubSubService, ITargetBlock <T> target) { return(distributedPubSubService.Subscribe <T>(item => target.Post(item))); }