/// <summary> /// Initializes a new instance of the <see cref="Wrapper{T}"/> class with the specified ThreadManager synchronization mode. /// </summary> /// <param name="threadManagerMode"></param> public Wrapper(ThreadManagerMode threadManagerMode = ThreadManagerMode.Synchronous) { this._DataType = GenericHelpers.CheckDatumSupportTypes <T>(); this.NativePtr = NativeMethods.op_wrapper_new(this._DataType, threadManagerMode); }
protected WorkerConsumer(IntPtr ptr, bool isEnabledDispose = true) : base(ptr, isEnabledDispose) { this._DataType = GenericHelpers.CheckDatumSupportTypes <T>(); }
internal DatumProducer(IntPtr ptr, bool isEnabledDispose = true) : base(isEnabledDispose) { this._DataType = GenericHelpers.CheckDatumSupportTypes <T>(); this.NativePtr = ptr; }
internal UserWorkerConsumer(IntPtr ptr, bool isEnabledDispose = true) : base(ptr, isEnabledDispose) { this._DataType = GenericHelpers.CheckDatumSupportTypes <T>(); this.NativePtr = ptr; }