A block used for deterministic disposal of activated instances. When the block is disposed, all instances activated via it will be deactivated.
상속: DisposableObject, IActivationBlock
예제 #1
0
 public ActivationBlockContext()
 {
     this.kernel = new StandardKernel();
     this.block = new ActivationBlock(kernel);
 }
예제 #2
0
 public ActivationBlockContext()
 {
     this.parentMock = new Mock<IResolutionRoot>();
     this.requestMock = new Mock<IRequest>();
     this.block = new ActivationBlock(this.parentMock.Object);
 }
예제 #3
0
 public void SetUp()
 {
     this.parentMock = new Mock<IResolutionRoot>();
     this.requestMock = new Mock<IRequest>();
     this.block = new ActivationBlock(this.parentMock.Object);
 }
예제 #4
0
 public void SetUp()
 {
     this.kernel = new StandardKernel();
     this.block = new ActivationBlock(kernel);
 }