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); }
public ApplicationServiceEvent( IServiceEvent serviceEvent, IMapperEvent mapperEvent, IApplicationServiceUserEvent applicationServiceUserEvent, IApplicationServiceUser applicationServiceUser, IHttpContextAccessor httpContextAccessor ) { _serviceEvent = serviceEvent; _mapperEvent = mapperEvent; _applicationServiceUserEvent = applicationServiceUserEvent; _applicationServiceUser = applicationServiceUser; _httpContextAccessor = httpContextAccessor; }
public EventController(IServiceEvent serviceEvent) { this.service = serviceEvent; }