protected TrezorManagerBrokerBase(EnterPinArgs enterPinArgs, EnterPinArgs enterPassphraseArgs, int?pollInterval, ICoinUtility coinUtility) { EnterPinArgs = enterPinArgs; EnterPassphraseArgs = enterPassphraseArgs; CoinUtility = coinUtility; PollInterval = pollInterval; }
protected TrezorManagerBase(EnterPinArgs enterPinCallback, EnterPinArgs enterPassphraseCallback, IDevice device, ICoinUtility coinUtility) { CoinUtility = coinUtility; _EnterPinCallback = enterPinCallback; _EnterPassphraseCallback = enterPassphraseCallback; Device = device ?? throw new ArgumentNullException(nameof(device)); }
public static TrezorManager GetWindowsConnectedTrezor(EnterPinArgs enterPinCallback) { List <HidDevice> devices = new List <HidDevice>(); devices.AddRange(HidDevices.Enumerate(TrezorManager.TrezorVendorId, TrezorManager.TrezorProductId)); var device = devices.Find(d => d.Capabilities.UsagePage == USAGE_PAGE && d.Capabilities.Usage == USAGE); return(device == null ? null : new TrezorManager(enterPinCallback, new UnityHIDDevice(device))); }
protected TrezorManagerBase(EnterPinArgs enterPinCallback, IHidDevice hidDevice) { if (hidDevice == null) { throw new ArgumentNullException(nameof(hidDevice)); } hidDevice.Connected += HidDevice_Connected; _EnterPinCallback = enterPinCallback; _HidDevice = hidDevice; }
protected TrezorManagerBase( EnterPinArgs enterPinCallback, EnterPinArgs enterPassphraseCallback, IDevice device, ILogger <TrezorManagerBase <TMessageType> > logger = null, ICoinUtility coinUtility = null) { CoinUtility = coinUtility ?? DefaultCoinUtility.Instance; _EnterPinCallback = enterPinCallback; _EnterPassphraseCallback = enterPassphraseCallback; Device = device ?? throw new ArgumentNullException(nameof(device)); Logger = (ILogger)logger ?? NullLogger.Instance; }
public TrezorManager( EnterPinArgs enterPinCallback, EnterPinArgs enterPassphraseCallback, IDevice trezorDevice, ILogger <TrezorManager> logger = null, ICoinUtility coinUtility = null) : base( enterPinCallback, enterPassphraseCallback, trezorDevice, logger, coinUtility) { }
public TrezorManagerBroker( EnterPinArgs enterPinArgs, EnterPinArgs enterPassphraseArgs, int?pollInterval, IDeviceFactory deviceFactory, ICoinUtility coinUtility = null, ILoggerFactory loggerFactory = null ) : base( enterPinArgs, enterPassphraseArgs, pollInterval, deviceFactory, coinUtility, loggerFactory) { }
protected TrezorManagerBrokerBase( EnterPinArgs enterPinArgs, EnterPinArgs enterPassphraseArgs, int?pollInterval, IDeviceFactory deviceFactory, ICoinUtility coinUtility = null, ILoggerFactory loggerFactory = null) { EnterPinArgs = enterPinArgs; EnterPassphraseArgs = enterPassphraseArgs; CoinUtility = coinUtility ?? new DefaultCoinUtility(); PollInterval = pollInterval; LoggerFactory = loggerFactory; _DeviceListener = new DeviceListener(deviceFactory, PollInterval, loggerFactory); _DeviceListener.DeviceDisconnected += DevicePoller_DeviceDisconnected; _DeviceListener.DeviceInitialized += DevicePoller_DeviceInitialized; }
public TrezorManager(EnterPinArgs enterPinCallback, EnterPinArgs enterPassphraseCallback, IDevice trezorDevice) : this(enterPinCallback, enterPassphraseCallback, trezorDevice, new DefaultCoinUtility()) { }
public static async Task <TrezorManager> GetWindowsConnectedLedgerManagerAsync(EnterPinArgs enterPinCallback) { var trezorHidDevice = await GetWindowsConnectedLedgerHidDeviceAsync().ConfigureAwait(false); return(new TrezorManager(enterPinCallback, trezorHidDevice)); }
protected TrezorManagerBase(EnterPinArgs enterPinCallback, IHidDevice hidDevice) : this(enterPinCallback, hidDevice, null) { }
public TrezorManager(EnterPinArgs enterPinCallback, IHidDevice trezorHidDevice) : base(enterPinCallback, trezorHidDevice) { }
public TrezorManagerBroker(EnterPinArgs enterPinArgs, EnterPinArgs enterPassphraseArgs, int?pollInterval, ICoinUtility coinUtility) : base(enterPinArgs, enterPassphraseArgs, pollInterval, coinUtility) { }
public KeepKeyManager(EnterPinArgs enterPinCallback, IHidDevice keepKeyDevice) : base(enterPinCallback, keepKeyDevice) { }
public TrezorManager(EnterPinArgs enterPinCallback, EnterPinArgs enterPassphraseCallback, IDevice trezorDevice, ICoinUtility coinUtility) : base(enterPinCallback, enterPassphraseCallback, trezorDevice, coinUtility) { }
public TrezorManager(EnterPinArgs enterPinCallback, IDevice trezorHidDevice, ICoinUtility coinUtility) : base(enterPinCallback, trezorHidDevice, coinUtility) { }
public TrezorManager(EnterPinArgs enterPinCallback, IDevice trezorHidDevice) : this(enterPinCallback, trezorHidDevice, null) { }
public KeepKeyManager(EnterPinArgs enterPinCallback, EnterPinArgs enterPassphraseCallback, IDevice keepKeyDevice) : base(enterPinCallback, enterPassphraseCallback, keepKeyDevice) { }
public KeepKeyManagerBroker(EnterPinArgs enterPinArgs, EnterPinArgs enterPassphraseArgs, int?pollInterval) : base(enterPinArgs, enterPassphraseArgs, pollInterval, null) { }
protected TrezorManagerBase(EnterPinArgs enterPinCallback, EnterPinArgs enterPassphraseCallback, IDevice device) : this(enterPinCallback, enterPassphraseCallback, device, null) { }