/// <summary>
 /// Initializes a new instance of the <see cref="IMEIController"/> class.
 /// </summary>
 /// <param name="imeiService">The IMEI service to use.</param>
 /// <param name="logService">The log service to use.</param>
 public IMEIController(IIMEIService imeiService, ILogService logService)
 {
     _imeiService = imeiService;
     _logService = logService;
 }
 public MapController(ILocationService locationService, IIMEIService imeiService)
 {
     this.locationService = locationService ?? new LocationService();
     this.imeiService = imeiService ?? new IMEIService();
 }
 public MapController(ILocationService locationService, IIMEIService imeiService, ILogService logService)
 {
     this.locationService = locationService;
     this.imeiService     = imeiService;
     this.logService      = logService;
 }
 public LocationService(IIMEIService imeiService)
 {
     this.imeiService = imeiService ?? new IMEIService();
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IMEIController"/> class.
 /// </summary>
 /// <param name="imeiService">The IMEI service to use.</param>
 /// <param name="logService">The log service to use.</param>
 public IMEIController(IIMEIService imeiService, ILogService logService)
 {
     _imeiService = imeiService;
     _logService  = logService;
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LocationService"/> class.
 /// </summary>
 /// <param name="imeiService">The IMEI service this service should use.</param>
 /// <param name="context">The data context to store to.</param>
 /// <remarks>If <paramref name="imeiService"/> is null, it will be loaded from the DependencyResolver</remarks>
 public LocationService(ILocationContext context, IIMEIService imeiService)
 {
     _imeiService = imeiService;
     _dataContext = context;
 }