Exemplo n.º 1
0
 /// <summary>
 /// Clone this into a new instance of the <see cref="ClientAETConfig"/> class, optionally replacing some properties.
 /// </summary>
 /// <param name="config">Optional new AETConfig.</param>
 /// <param name="destination">Optional new destination.</param>
 /// <param name="shouldReturnImage">Optional new shouldReturnImage.</param>
 /// <returns>New ClientAETConfig.</returns>
 public ClientAETConfig With(
     AETConfig config          = null,
     DicomEndPoint destination = null,
     bool?shouldReturnImage    = null) =>
 new ClientAETConfig(
     config ?? Config,
     destination ?? Destination,
     shouldReturnImage ?? ShouldReturnImage);
Exemplo n.º 2
0
 public ClientAETConfig(AETConfig config, DicomEndPoint destination, bool shouldReturnImage)
 {
     Config            = config ?? throw new ArgumentNullException(nameof(config));
     Destination       = destination;
     ShouldReturnImage = shouldReturnImage;
 }