public static SimpleEventBusMsDIBuilder AddInMemorySubscriptionsManager(this SimpleEventBusMsDIBuilder builder, Action <ISubscriptionsManager> config = null) { builder.Config(services => { services.TryAddSingleton <ISubscriptionsManager>(_ => { var smr = new InMemorySubscriptionsManager(); config?.Invoke(smr); return(smr); }); }); return(builder); }
public Subscription(InMemorySubscriptionsManager _this, Type type) { this._this = _this; Type = type; }