protected override bool TryCreateSerialDevice(object key, out Device device)
        {
            var path = (SerialDevicePath)key;

            device = WinSerialDevice.TryCreate(path.DevicePath, path.FileSystemName, path.FriendlyName); return(true);
        }
Beispiel #2
0
 internal WinSerialStream(WinSerialDevice device)
     : base(device)
 {
     _closeEventHandle = NativeMethods.CreateManualResetEventOrThrow();
 }