A block used for deterministic disposal of activated instances. When the block is disposed, all instances activated via it will be deactivated.
Inheritance: 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);
 }