Beispiel #1
0
 /// <summary>Anies the given request.</summary>
 ///
 /// <param name="request">The request.</param>
 ///
 /// <returns>An object.</returns>
 public object Any(CachedProtoBufEmail request)
 {
     return(base.RequestContext.ToOptimizedResultUsingCache(this.Cache,
                                                            UrnId.Create <ProtoBufEmail>(request.FromAddress ?? "none"),
                                                            () => new ProtoBufEmail {
         FromAddress = request.FromAddress ?? "none"
     }));
 }
 /// <summary>Anies the given request.</summary>
 ///
 /// <param name="request">The request.</param>
 ///
 /// <returns>An object.</returns>
 public object Any(CachedProtoBufEmail request)
 {
     return base.RequestContext.ToOptimizedResultUsingCache(this.Cache,
         UrnId.Create<ProtoBufEmail>(request.FromAddress ?? "none"),
         () => new ProtoBufEmail { FromAddress = request.FromAddress ?? "none" });
 }