private IExecutionContext createExecutionContext(ISystem system, Timings timings)
        {
            var record = timings.Subject("Context", "Creation", 0);

            try
            {
                return(system.CreateContext());
            }
            catch (Exception e)
            {
                Request.Cancel();

                throw new StorytellerExecutionException(e);
            }
            finally
            {
                timings.End(record);
            }
        }
예제 #2
0
 public void Dispose()
 {
     _parent.End(_record);
 }