コード例 #1
0
 /// <summary>
 ///     Run the call.
 /// </summary>
 public static CreateSessionResult <IReadOnlyContentSession> Run(
     ContentStoreTracer tracer, OperationContext context, string name, Func <CreateSessionResult <IReadOnlyContentSession> > func)
 {
     using (var call = new CreateReadOnlySessionCall(tracer, context, name))
     {
         return(call.Run(func));
     }
 }
コード例 #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="CreateReadOnlySessionCall"/> class.
 /// </summary>
 private CreateReadOnlySessionCall(ContentStoreTracer tracer, OperationContext context, string name)
     : base(tracer, context)
 {
     Tracer.CreateReadOnlySessionStart(Context, name);
 }