public GsmModemService(ILoggerFactory logger, IConfiguration configuration, IPortProvider portProvider, IModemDevice device)
 {
     _logger        = logger.CreateLogger("GSM Service");
     _configuration = configuration;
     _portProvider  = portProvider;
     _device        = device;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new <see cref="ZappProcess"/>.
 /// </summary>
 /// <param name="zappClient">Client used to communicate with the zapp-service.</param>
 /// <param name="metaService">Service used to receive meta info.</param>
 /// <param name="restService">Service used to host the process' rest-api.</param>
 /// <param name="portProvider">Provider to request bindable ports from.</param>
 /// <param name="libraryService">Service used to load libraries.</param>
 public ZappProcess(
     IZappClient zappClient,
     IRestService restService,
     IMetaService metaService,
     IPortProvider portProvider,
     ILibraryService libraryService)
 {
     this.zappClient     = zappClient;
     this.restService    = restService;
     this.metaService    = metaService;
     this.portProvider   = portProvider;
     this.libraryService = libraryService;
 }
Exemple #3
0
 public void Register(int portLo, int portHi, IPortProvider provider)
 {
     _portMappings.Add(new PortMapping {
         Provider = provider, PortLo = portLo, PortHi = portHi
     });
 }