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
Example #1
0
 public ActivationBlockContext()
 {
     this.kernel = new StandardKernel();
     this.block = new ActivationBlock(kernel);
 }
Example #2
0
 public ActivationBlockContext()
 {
     this.parentMock = new Mock<IResolutionRoot>();
     this.requestMock = new Mock<IRequest>();
     this.block = new ActivationBlock(this.parentMock.Object);
 }
Example #3
0
 public void SetUp()
 {
     this.parentMock = new Mock<IResolutionRoot>();
     this.requestMock = new Mock<IRequest>();
     this.block = new ActivationBlock(this.parentMock.Object);
 }
 public void SetUp()
 {
     this.kernel = new StandardKernel();
     this.block = new ActivationBlock(kernel);
 }