public void OnResolve(IMessageSubscriber instance, ILifetime lifetime) { _broker.RegisterSubscriber(instance); lifetime.AddDisposeAction(() => _broker.RemoveSubscriber(instance)); }
public void OnResolve(IMessageSubscriber instance, ILifetime lifetime) { _broker.RegisterSubscriber(instance); lifetime.AddDisposeAction(() => _broker.RemoveSubscriber(instance)); }