/// <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)); } }
/// <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); }