mirror of
https://github.com/farcasclaudiu/myfriendsaround.git
synced 2026-06-28 23:01:53 +03:00
00f97e41d6
http://windowsteamblog.com/windows_phone/b/wpdev/archive/2011/01/14/windows-push-notification-server-side-helper-library.aspx http://create.msdn.com/en-us/education/catalog/article/pnhelp-wp7
32 lines
975 B
C#
32 lines
975 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.IO;
|
|
|
|
namespace WindowsPhone.Recipes.Push.Server.Services
|
|
{
|
|
/// <summary>
|
|
/// Image request event arguments.
|
|
/// </summary>
|
|
internal class ImageRequestEventArgs : EventArgs
|
|
{
|
|
/// <summary>
|
|
/// Tile image maximum size in bytes.
|
|
/// </summary>
|
|
public const int MaxTileImageSize = 80 * 1024; // The max tile image size is 80k.
|
|
|
|
public string Parameter { get; private set; }
|
|
public Stream ImageStream { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance with a memory stream maximum size of <see cref="ImageRequestEventArgs.MaxTileImageSize"/>.
|
|
/// </summary>
|
|
public ImageRequestEventArgs(string parameter)
|
|
{
|
|
Parameter = parameter;
|
|
ImageStream = new MemoryStream(MaxTileImageSize);
|
|
}
|
|
}
|
|
}
|