/// <summary> /// Creates an Order View subscription /// </summary> /// <remarks> /// Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, /// NativeRegionalBook, NativeSnapshotSubscription classes /// </remarks> /// <param name="listener"></param> /// <returns>subscription object</returns> /// <exception cref="DxException"></exception> public IDxSubscription CreateOrderViewSubscription(IDxOrderViewListener listener) { if (handle == IntPtr.Zero) { throw new NativeDxException("not connected"); } IDxSubscription result = new OrderViewSubscription(this, listener); subscriptions.Add(result); return(result); }
/// <summary> /// Constructor /// </summary> /// <param name="connection">IDxConnection connection</param> /// <param name="listener">OrderView listener</param> public OrderViewSubscription(NativeConnection connection, IDxOrderViewListener listener) { this.connection = connection; this.listener = listener; }