/// <summary> /// /// </summary> /// <param name="publisher"></param> /// <param name="streamNames"></param> public static void Unsubscribe(this IJsonPublisher publisher, IEnumerable <string> streamNames) { Throw.IfNull(streamNames, nameof(streamNames)); Unsubscribe(publisher, streamNames.ToArray()); }
/// <summary> /// /// </summary> /// <param name="publisher"></param> /// <param name="streamNames"></param> public static void Unsubscribe(this IJsonPublisher publisher, params string[] streamNames) { Throw.IfNull(publisher, nameof(publisher)); publisher.Unsubscribe(null, streamNames); }
/// <summary> /// /// </summary> /// <param name="publisher"></param> /// <param name="subscriber"></param> public static void Unsubscribe(this IJsonPublisher publisher, IJsonSubscriber subscriber) { Throw.IfNull(publisher, nameof(publisher)); publisher.Unsubscribe(subscriber, null); }
/// <summary> /// Determine if a symbol supports a client order type. /// </summary> /// <param name="symbol"></param> /// <param name="order"></param> /// <returns></returns> public static bool IsOrderTypeSupported(this Symbol symbol, ClientOrder order) { Throw.IfNull(order, nameof(order)); return(IsSupported(symbol, order.Type)); }
/// <summary> /// Determine if a symbol supports an order type. /// </summary> /// <param name="symbol"></param> /// <param name="orderType"></param> /// <returns></returns> public static bool IsSupported(this Symbol symbol, OrderType orderType) { Throw.IfNull(symbol, nameof(symbol)); return(symbol.OrderTypes.Contains(orderType)); }
/// <summary> /// Constructor. /// </summary> /// <param name="exception">The exception (required).</param> public ErrorEventArgs(Exception exception) { Throw.IfNull(exception, nameof(exception)); Exception = exception; }