Exemplo n.º 1
0
 protected PushServiceBase(IPushChannelFactory pushChannelFactory, IPushChannelSettings channelSettings, IPushServiceSettings serviceSettings)
 {
     this.PushChannelFactory  = pushChannelFactory;
     this.ServiceSettings     = serviceSettings ?? (IPushServiceSettings) new PushServiceSettings();
     this.ChannelSettings     = channelSettings;
     this.queuedNotifications = new NotificationQueue();
     this.scaleSync           = 0;
     this.timerCheckScale     = new Timer(new TimerCallback(this.CheckScale), (object)null, TimeSpan.FromSeconds(5.0), TimeSpan.FromSeconds(5.0));
     this.CheckScale((object)null);
     this.stopping = false;
 }
Exemplo n.º 2
0
        protected PushServiceBase(IPushChannelFactory pushChannelFactory, IPushChannelSettings channelSettings,
                                  IPushServiceSettings serviceSettings)
        {
            this.PushChannelFactory = pushChannelFactory;
            this.ServiceSettings    = serviceSettings ?? new PushServiceSettings();
            this.ChannelSettings    = channelSettings;

            this.queuedNotifications = new NotificationQueue();

            scaleSync = 0;

            timerCheckScale = new Timer(CheckScale, null, TimeSpan.FromSeconds(5), TimeSpan.FromSeconds(5));

            CheckScale();

            stopping = false;
        }
Exemplo n.º 3
0
        protected PushServiceBase(IPushChannelFactory pushChannelFactory, IPushChannelSettings channelSettings,
		                          IPushServiceSettings serviceSettings)
        {
            this.PushChannelFactory = pushChannelFactory;
            this.ServiceSettings = serviceSettings ?? new PushServiceSettings();
            this.ChannelSettings = channelSettings;

            this.queuedNotifications = new NotificationQueue();

            scaleSync = 0;

            timerCheckScale = new Timer(CheckScale, null, TimeSpan.FromSeconds(5), TimeSpan.FromSeconds(5));

            CheckScale();

            stopping = false;
        }