Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NotificationDistributionJob"/> class.
 /// </summary>
 public NotificationDistributionJob(
     INotificationConfiguration notificationConfiguration,
     IIocResolver iocResolver)
 {
     _notificationConfiguration = notificationConfiguration;
     _iocResolver = iocResolver;
 }
        public NotificationDefinitionManager(
            IocManager iocManager,
            INotificationConfiguration configuration)
        {
            this._configuration = configuration;
            this._iocManager    = iocManager;

            this._notificationDefinitions = new Dictionary <string, NotificationDefinition>();
        }
        public NotificationDefinitionManager(
            IocManager iocManager,
            INotificationConfiguration configuration)
        {
            _configuration = configuration;
            _iocManager = iocManager;

            _notificationDefinitions = new Dictionary<string, NotificationDefinition>();
        }
Пример #4
0
        public static void UseFirebase(this INotificationConfiguration configuration, Action <FirebaseNotificationConfiguration> configureAction)
        {
            var firebaseConfiguration = new FirebaseNotificationConfiguration();

            configureAction(firebaseConfiguration);

            configuration.Configure.Services.AddTransient <INotificationChannel, FirebaseNotificationChannel>();
            configuration.Configure.Services.AddSingleton(firebaseConfiguration);
        }
 public static T CreateAgentInstance(INotificationConfiguration args)
 {
     if (NotificationAgentInstance == null)
     {
         lock (_mutex) // now I can claim some form of thread safety...
         {
             NotificationAgentInstance = (T)Activator.CreateInstance(typeof(T), args);
         }
     }
     return(NotificationAgentInstance);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NotificationPublisher"/> class.
 /// </summary>
 public NotificationPublisher(
     INotificationStore store,
     IBackgroundJobManager backgroundJobManager,
     INotificationConfiguration notificationConfiguration,
     IGuidGenerator guidGenerator,
     IIocResolver iocResolver)
 {
     _store = store;
     _backgroundJobManager      = backgroundJobManager;
     _notificationConfiguration = notificationConfiguration;
     _guidGenerator             = guidGenerator;
     _iocResolver = iocResolver;
     AbpSession   = NullAbpSession.Instance;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NotificationDistributionJob"/> class.
 /// </summary>
 public DefaultNotificationDistributer(
     INotificationConfiguration notificationConfiguration,
     INotificationDefinitionManager notificationDefinitionManager,
     INotificationStore notificationStore,
     IUnitOfWorkManager unitOfWorkManager,
     IGuidGenerator guidGenerator,
     IIocResolver iocResolver)
 {
     _notificationConfiguration     = notificationConfiguration;
     _notificationDefinitionManager = notificationDefinitionManager;
     _notificationStore             = notificationStore;
     _unitOfWorkManager             = unitOfWorkManager;
     _guidGenerator = guidGenerator;
     _iocResolver   = iocResolver;
 }
Пример #8
0
 public SignalRNotifier(INotificationConfiguration config, IPubSubServerSettings pubSubServerSettings)
 {
     _config = config;
     var jsonSerializer = new JsonSerializer
                          {
                              NullValueHandling = NullValueHandling.Ignore,
                              TypeNameHandling = TypeNameHandling.All,
                              ContractResolver = new CamelCasePropertyNamesContractResolver()
                          };
     jsonSerializer.Converters.Add(new StringEnumConverter());
     _hubConnection = new HubConnection(pubSubServerSettings.ServerUrl)
                         {
                             JsonSerializer =
                                 jsonSerializer
                         };
     
 }
Пример #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NotificationDistributionJob"/> class.
 /// </summary>
 public ShaNotificationDistributer(
     INotificationConfiguration notificationConfiguration,
     INotificationDefinitionManager notificationDefinitionManager,
     INotificationStore notificationStore,
     IUnitOfWorkManager unitOfWorkManager,
     IGuidGenerator guidGenerator,
     IIocResolver iocResolver, IRepository <NotificationMessage, Guid> messageRepository, IRepository <StoredFile, Guid> storedFileRepository, IRepository <NotificationMessageAttachment, Guid> attachmentRepository)
 {
     _notificationConfiguration     = notificationConfiguration;
     _notificationDefinitionManager = notificationDefinitionManager;
     _notificationStore             = notificationStore;
     _unitOfWorkManager             = unitOfWorkManager;
     _guidGenerator        = guidGenerator;
     _iocResolver          = iocResolver;
     _messageRepository    = messageRepository;
     _storedFileRepository = storedFileRepository;
     _attachmentRepository = attachmentRepository;
 }
Пример #10
0
        public ModuleConfig(
            ISettingsConfiguration settingsConfiguration,
            //  IDictionaryConfiguration dictionaryConfiguration,
            IMenuConfiguration menuConfiguration,
            IRoleConfiguration roleConfiguration,
            IUserConfiguration userConfiguration,
            INotificationConfiguration notificationConfiguration,
            IPermissionConfiguration permissions
            )
        {
            Settings = settingsConfiguration;
            //   Dictionaries = dictionaryConfiguration;
            Menus = menuConfiguration;

            Roles         = roleConfiguration;
            Users         = userConfiguration;
            Notifications = notificationConfiguration;
            Permissions   = permissions;
        }
 public NotificationService(INotificationConfiguration config)
 {
     _config = config;
     _client = new TwilioRestClient(_config.AccountSid,
                                    _config.AuthToken);
 }
Пример #12
0
 public ConfigurationController(INotificationConfiguration notificationConfiguration, IUtcTimeService utcTimeService, ILogger <ConfigurationController> logger)
 {
     this.notificationConfiguration = notificationConfiguration;
     this.utcTimeService            = utcTimeService;
     this.logger = logger;
 }
 public NotificationDefinitionManager(INotificationConfiguration configuration, IocManager iocManager)
 {
     _configuration = configuration;
     _iocManager = iocManager;
 }
Пример #14
0
 public NotificationDefinitionManager(INotificationConfiguration configuration, IocManager iocManager)
 {
     _configuration = configuration;
     _iocManager    = iocManager;
 }
Пример #15
0
 public NotificationPublisher(INotificationConfiguration notificationConfiguration)
 {
     this.NotificationConfiguration = notificationConfiguration;
     NotificationAgentFactory <T> .CreateAgentInstance(notificationConfiguration);
 }