public PushNotificationHandler(IPushNotificationReceiverConfiguration config)
 {
     this._config = config;
 }
        public static IServiceCollection AddPushNotificationService(IServiceCollection services, IPushNotificationReceiverConfiguration pushNotificationReceiverConfiguration)
        {
            services.AddSingleton <INotificationReceiver, SignalRNotificationReceiver>();
            services.AddSingleton <IPushNotificationHandler, PushNotificationHandler>();
            services.AddSingleton(pushNotificationReceiverConfiguration);

            return(services);
        }
 public SignalRNotificationReceiver(IPushNotificationReceiverConfiguration config, IPushNotificationHandler notificationHandler)
 {
     this._config = config;
     this._notificationHandler = notificationHandler;
 }