public CheckRecordHandlingOp DeepCloneWithHandlingFilter(HandlingFilter handlingFilter) { var result = new CheckRecordHandlingOp( this.StreamRepresentation?.DeepClone(), this.Concern?.DeepClone(), this.RecordFilter?.DeepClone(), handlingFilter); return(result); }
/// <summary> /// Initializes a new instance of the <see cref="CheckRecordHandlingOp"/> class. /// </summary> /// <param name="streamRepresentation">The <see cref="IStreamRepresentation"/> to resolve the <see cref="IStream"/> to check handling on.</param> /// <param name="concern">The concerns that require handling.</param> /// <param name="recordFilter">The filter for the records to examine.</param> /// <param name="handlingFilter">The filter for the handling entries to examine.</param> public CheckRecordHandlingOp( IStreamRepresentation streamRepresentation, string concern, RecordFilter recordFilter, HandlingFilter handlingFilter) { streamRepresentation.MustForArg(nameof(streamRepresentation)).NotBeNull(); concern.MustForArg(nameof(concern)).NotBeNullNorWhiteSpace(); recordFilter.MustForArg(nameof(recordFilter)).NotBeNull(); handlingFilter.MustForArg(nameof(handlingFilter)).NotBeNull(); this.StreamRepresentation = streamRepresentation; this.Concern = concern; this.RecordFilter = recordFilter; this.HandlingFilter = handlingFilter; }