public void Initialize() { var context = new NotificationDefinitionContext(this); foreach (var providerType in _configuration.Providers) { var provider = CreateProvider(providerType); provider.SetNotifications(context); } }
public void Initialize() { var context = new NotificationDefinitionContext(this); foreach (var providerType in _configuration.Providers) { var provider = CreateProvider(providerType); provider.SetNotifications(context); } }
public void Initialize() { var context = new NotificationDefinitionContext(this); foreach (var providerType in _configuration.Providers) { using (var provider = _iocManager.ResolveAsDisposable <NotificationProvider>(providerType)) { provider.Object.SetNotifications(context); } } }
public void Initialize() { var context = new NotificationDefinitionContext(this); foreach (var providerType in _configuration.Providers) { _iocManager.RegisterIfNot(providerType, DependencyLifeStyle.Transient); using (var provider = _iocManager.ResolveAsDisposable <NotificationProvider>(providerType)) { provider.Object.SetNotifications(context); } } }
public void Initialize() { var context = new NotificationDefinitionContext(this); foreach (var providerType in _configuration.Providers) { _iocManager.RegisterIfNot(providerType, DependencyLifeStyle.Transient); using (var provider = _iocManager.ResolveAsDisposable<NotificationProvider>(providerType)) { provider.Object.SetNotifications(context); } } }