Пример #1
0
 public PhotoAndThumbnailIdentifiers(
     [CanBeNull] PhotoIdentifier originalPhotoIdentifier,
     [CanBeNull] PhotoIdentifier thumbnailPhotoIdentifier)
 {
     OriginalPhotoIdentifier  = originalPhotoIdentifier;
     ThumbnailPhotoIdentifier = thumbnailPhotoIdentifier;
 }
Пример #2
0
 public Photo(
     [NotNull] PhotoIdentifier identifier,
     [NotNull] string contentType,
     [NotNull] Stream content)
 {
     Identifier  = identifier ?? throw new ArgumentNullException(nameof(identifier));
     ContentType = contentType ?? throw new ArgumentNullException(nameof(contentType));
     Content     = content ?? throw new ArgumentNullException(nameof(content));
 }