public RecordingSession(RepositorySharedContext context)
			{
				this.context = context;
				this.oldCounter = ProfilerInterceptor.ReentrancyCounter;

				ProfilerInterceptor.ReentrancyCounter = 0;
			}
示例#2
0
            public InRecordingContext(RepositorySharedContext context)
                : base(context)
            {
                this.oldCounter = ProfilerInterceptor.ReentrancyCounter;

                ProfilerInterceptor.ReentrancyCounter = 0;
            }
示例#3
0
            public RecordingSession(RepositorySharedContext context)
            {
                this.context    = context;
                this.oldCounter = ProfilerInterceptor.ReentrancyCounter;

                ProfilerInterceptor.ReentrancyCounter = 0;
            }
			public InCreateContext(RepositorySharedContext context)
			{
				this.context = context;
				Debug.Assert(!context.InCreate);
				context.InCreate = true;
			}
			public InArrangeContext(RepositorySharedContext context)
			{
				this.context = context;
				Debug.Assert(!context.InArrange);
				context.InArrange = true;
			}
示例#6
0
 public InAssertSetContext(RepositorySharedContext context)
     : base(context)
 {
     Debug.Assert(!this.Context.InAssertSet);
     context.InAssertSet = true;
 }
示例#7
0
 public InArrangeArgMatchingContext(RepositorySharedContext context)
     : base(context)
 {
     Debug.Assert(!this.Context.InArrangeArgMatching);
     context.InArrangeArgMatching = true;
 }
示例#8
0
 public InArrangeContext(RepositorySharedContext context)
     : base(context)
 {
     Debug.Assert(!this.Context.InArrange);
     context.InArrange = true;
 }
示例#9
0
 public ContextSession(RepositorySharedContext context)
 {
     this.context = context;
 }
示例#10
0
 public InCreateContext(RepositorySharedContext context)
 {
     this.context = context;
     Debug.Assert(!context.InCreate);
     context.InCreate = true;
 }
示例#11
0
 public InArrangeContext(RepositorySharedContext context)
 {
     this.context = context;
     Debug.Assert(!context.InArrange);
     context.InArrange = true;
 }
 public InRunClassConstructorContext(RepositorySharedContext context)
     : base(context)
 {
     context.RunClassConstructorCount++;
 }