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