Esempio n. 1
0
        public void SubscribeAvailableBike(string town, string station, int time)
        {
            IServiceEvent subscriber =
                OperationContext.Current.GetCallbackChannel <IServiceEvent>();

            avaibleEvent += subscriber.avaibleBike;

            string[] param = new string[] { town, station, time.ToString() };

            Thread updater = new Thread(new ParameterizedThreadStart(Update));

            updater.Start(param);
        }
Esempio n. 2
0
        public ApplicationServiceEvent(
            IServiceEvent serviceEvent,
            IMapperEvent mapperEvent,
            IApplicationServiceUserEvent applicationServiceUserEvent,
            IApplicationServiceUser applicationServiceUser,
            IHttpContextAccessor httpContextAccessor
            )
        {
            _serviceEvent = serviceEvent;
            _mapperEvent  = mapperEvent;

            _applicationServiceUserEvent = applicationServiceUserEvent;
            _applicationServiceUser      = applicationServiceUser;

            _httpContextAccessor = httpContextAccessor;
        }
Esempio n. 3
0
 public EventController(IServiceEvent serviceEvent)
 {
     this.service = serviceEvent;
 }