private DcmTp(DcmAppRxIndicationCallback rxIndication) { this.rxIndication = rxIndication ?? throw new ArgumentNullException("Dcm App Rx Indication Cannot be null"); workState = WorkStateEnum.Idle; }
public static DcmTp Instance(DcmAppRxIndicationCallback rxIndication = null) { if (instance == null) { lock (syncRoot) { if (instance == null) { instance = new DcmTp(rxIndication); } } } return(instance); }