Ejemplo n.º 1
0
 /// <summary>
 ///     Run the call.
 /// </summary>
 public static CreateSessionResult <ICacheSession> Run(
     CacheTracer tracer, Context context, string name, Func <CreateSessionResult <ICacheSession> > func)
 {
     using (var call = new CreateSessionCall(tracer, context, name))
     {
         return(call.Run(func));
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="CreateSessionCall"/> class.
 /// </summary>
 private CreateSessionCall(CacheTracer tracer, Context context, string name)
     : base(tracer, context)
 {
     Tracer.CreateSessionStart(context, name);
 }