Exemple #1
0
 /// <summary>
 /// Encrypt Message Content
 /// </summary>
 public static string Encrypt(this string value)
 {
     Decorator.Message cryptoMsg = new Decorator.Message { message = value };
     Decorator.DecorateMessage decoratorMessage = new Decorator.DecorateMessage();
     decoratorMessage.Decorate(cryptoMsg);
     return decoratorMessage.GetMessage();
 }
Exemple #2
0
 // 装饰
 public void Decorate(Message component)
 {
     this.component = component;
 }