本文整理汇总了C#中Azure.Messages.ServerMessage.Dispose方法的典型用法代码示例。如果您正苦于以下问题:C# ServerMessage.Dispose方法的具体用法?C# ServerMessage.Dispose怎么用?C# ServerMessage.Dispose使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Azure.Messages.ServerMessage
的用法示例。
在下文中一共展示了ServerMessage.Dispose方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Load
/// <summary>
/// Loads this instance.
/// </summary>
public static void Load()
{
Cache.Clear();
var message = new ServerMessage(LibraryParser.OutgoingRequest("SuperNotificationMessageComposer"));
message.AppendString("furni_placement_error");
message.AppendInteger(1);
message.AppendString("message");
message.AppendString("${room.error.cant_set_item}");
Cache.Add(StaticMessage.ErrorCantSetItem, message.GetReversedBytes());
message = new ServerMessage(LibraryParser.OutgoingRequest("SuperNotificationMessageComposer"));
message.AppendString("furni_placement_error");
message.AppendInteger(1);
message.AppendString("message");
message.AppendString("${room.error.cant_set_not_owner}");
Cache.Add(StaticMessage.ErrorCantSetNotOwner, message.GetReversedBytes());
message = new ServerMessage(LibraryParser.OutgoingRequest("SuperNotificationMessageComposer"));
message.AppendString("game_promo_small");
message.AppendInteger(4);
message.AppendString("title");
message.AppendString("${generic.notice}");
message.AppendString("message");
message.AppendString("Now, the commands page opens in a different way");
message.AppendString("linkUrl");
message.AppendString("event:habbopages/chat/newway");
message.AppendString("linkTitle");
message.AppendString("${mod.alert.link}");
Cache.Add(StaticMessage.NewWayToOpenCommandsList, message.GetReversedBytes());
message = new ServerMessage(LibraryParser.OutgoingRequest("SuperNotificationMessageComposer"));
message.AppendString(string.Empty);
message.AppendInteger(4);
message.AppendString("title");
message.AppendString("${generic.notice}");
message.AppendString("message");
message.AppendString("${catalog.gift_wrapping.receiver_not_found.title}");
message.AppendString("linkUrl");
message.AppendString("event:");
message.AppendString("linkTitle");
message.AppendString("ok");
Cache.Add(StaticMessage.UserNotFound, message.GetReversedBytes());
message = new ServerMessage(LibraryParser.OutgoingRequest("SuperNotificationMessageComposer"));
message.AppendString(string.Empty);
message.AppendInteger(4);
message.AppendString("title");
message.AppendString("${generic.notice}");
message.AppendString("message");
message.AppendString("Has superado el máximo de furnis en el inventario. Solo se te mostrarán 2800 furnis, si quieres ver los restantes, coloca algunos furnis en tus salas.");
message.AppendString("linkUrl");
message.AppendString("event:");
message.AppendString("linkTitle");
message.AppendString("ok");
Cache.Add(StaticMessage.AdviceMaxItems, message.GetReversedBytes());
message = new ServerMessage(LibraryParser.OutgoingRequest("SuperNotificationMessageComposer"));
message.AppendString(string.Empty);
message.AppendInteger(4);
message.AppendString("title");
message.AppendString("${generic.notice}");
message.AppendString("message");
message.AppendString("Has superado el máximo de furnis en el inventario. No puedes comprar más hasta que te desagas de algunos furnis.");
message.AppendString("linkUrl");
message.AppendString("event:");
message.AppendString("linkTitle");
message.AppendString("ok");
Cache.Add(StaticMessage.AdvicePurchaseMaxItems, message.GetReversedBytes());
message = new ServerMessage(LibraryParser.OutgoingRequest("CatalogueOfferConfigMessageComposer"));
message.AppendInteger(100);// purchase_limit
message.AppendInteger(6);// offer_multiplier
message.AppendInteger(2);// free_objets_per_multiplier
message.AppendInteger(1);// inversed_credit_reduction
message.AppendInteger(2); // array count
message.AppendInteger(40);
message.AppendInteger(99);
Cache.Add(StaticMessage.CatalogOffersConfiguration, message.GetReversedBytes());
message = new ServerMessage(LibraryParser.OutgoingRequest("SuperNotificationMessageComposer"));
message.AppendString(string.Empty);
message.AppendInteger(4);
message.AppendString("title");
message.AppendString("${notification.figureset.redeemed.success.title}");
message.AppendString("message");
message.AppendString("${notification.figureset.redeemed.success.message}");
message.AppendString("linkUrl");
message.AppendString("event:avatareditor/open");
message.AppendString("linkTitle");
message.AppendString("${notification.figureset.redeemed.success.linkTitle}");
Cache.Add(StaticMessage.FiguresetRedeemed, message.GetReversedBytes());
message.Dispose();
}