Beispiel #1
0
 public DataLoadingService(IMetadataParserService metadataParserService, IRawBytesToDeviceStateParserService rawBytesToDeviceStateParserService)
 {
     _metadataParserService = metadataParserService;
     _rawBytesToDeviceStateParserService = rawBytesToDeviceStateParserService;
     _partlyModeMetadata = new List <MetadataFromDevice>();
     _fullModeMetadata   = new List <MetadataFromDevice>();
     _signalMetadata     = new List <MetadataFromDevice>();
     _signatureMetadata  = new List <MetadataFromDevice>();
     _analogMetadata     = new List <MetadataFromDevice>();
 }
Beispiel #2
0
 protected override void OnDisposing()
 {
     _metadataParserService.Dispose();
     _rawBytesToDeviceStateParserService.Dispose();
     _metadataParserService = null;
     _rawBytesToDeviceStateParserService = null;
     _partlyModeMetadata = null;
     _fullModeMetadata   = null;
     _signalMetadata     = null;
     ;
     _signatureMetadata = null;
     base.OnDisposing();
 }