/// <summary> /// Creates a new <see cref="IMyo" /> instance. /// </summary> /// <param name="channelListener">The channel listener.</param> /// <param name="myoDeviceDriver">The Myo device driver.</param> /// <returns> /// Returns a new <see cref="IMyo" /> instance. /// </returns> protected virtual IMyo CreateMyo(IChannelListener channelListener, IMyoDeviceDriver myoDeviceDriver) { Contract.Requires <ArgumentNullException>(channelListener != null, "channelListener"); Contract.Requires <ArgumentNullException>(myoDeviceDriver != null, "myoDeviceDriver"); Contract.Ensures(Contract.Result <IMyo>() != null); return(Myo.Create(channelListener, myoDeviceDriver)); }
/// <summary> /// Creates a new <see cref="IMyo" /> instance. /// </summary> /// <param name="channelListener">The channel listener.</param> /// <param name="myoDeviceDriver">The Myo device driver.</param> /// <returns> /// Returns a new <see cref="IMyo" /> instance. /// </returns> protected virtual IMyo CreateMyo(IChannelListener channelListener, IMyoDeviceDriver myoDeviceDriver) { return(Myo.Create(channelListener, myoDeviceDriver)); }
/// <summary> /// Creates a new <see cref="IMyo"/> instance. /// </summary> /// <param name="myoHandle">The Myo handle.</param> /// <param name="channelListener">The channel listener.</param> /// <returns>A new <see cref="IMyo"/> instance.</returns> protected virtual IMyo CreateMyo(IntPtr myoHandle, IChannelListener channelListener) { return(Myo.Create(myoHandle, channelListener)); }