Пример #1
0
 /// <summary>
 /// Gets the image configurations.
 /// </summary>
 /// <param name="bytes">The bytes.</param>
 /// <param name="format">The format.</param>
 /// <param name="mediaMessage">The media message.</param>
 /// <param name="momento">The momento.</param>
 /// <returns>List{InParameters}.</returns>
 private IEnumerable <InParameters> GetImageConfigurations(byte[] bytes, ImageFormat format, Messaging.Models.MediaMessage mediaMessage, Momento momento)
 {
     return(new List <InParameters>
     {
         new InParameters {
             Bytes = bytes, MomentoMediaType = MomentoMediaType.SmallImage, Format = format, MediaMessage = mediaMessage, MaxHeight = _settings.ImageSmallHeight, MaxWidth = _settings.ImageSmallWidth, Momento = momento
         },
         new InParameters {
             Bytes = bytes, MomentoMediaType = MomentoMediaType.MediumImage, Format = format, MediaMessage = mediaMessage, MaxHeight = _settings.ImageMediumHeight, MaxWidth = _settings.ImageMediumWidth, Momento = momento
         },
         new InParameters {
             Bytes = bytes, MomentoMediaType = MomentoMediaType.LargeImage, Format = format, MediaMessage = mediaMessage, MaxHeight = _settings.ImageLargeHeight, MaxWidth = _settings.ImageLargeWidth, Momento = momento
         },
         new InParameters {
             Bytes = bytes, MomentoMediaType = MomentoMediaType.OriginalImage, Format = format, MediaMessage = mediaMessage, MaxHeight = int.MaxValue, MaxWidth = int.MaxValue, Momento = momento
         },
     });
 }
 /// <summary>
 /// Processes the specified message.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <exception cref="System.NotImplementedException"></exception>
 public void Consume(Messaging.Models.MediaMessage message)
 {
     throw new NotImplementedException();
 }