C# Class Castle.Core.LifecycleStepCollection

Inheritance: ICollection
显示文件 Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
Add ( LifecycleStepType type, object stepImplementation ) : void

Adds a step to the commission or decomission phases.

CopyTo ( Array array, int index ) : void

Copies the elements of the T:System.Collections.ICollection to an T:System.Array, starting at a particular T:System.Array index.

GetCommissionSteps ( ) : object[]

Returns all steps for the commission phase

GetDecommissionSteps ( ) : object[]

Returns all steps for the decommission phase

GetEnumerator ( ) : IEnumerator

Returns an enumerator that can iterate through a collection.

LifecycleStepCollection ( ) : System

Initializes a new instance of the LifecycleStepCollection class.

Method Details

Add() public method

Adds a step to the commission or decomission phases.
public Add ( LifecycleStepType type, object stepImplementation ) : void
type LifecycleStepType
stepImplementation object
return void

CopyTo() public method

Copies the elements of the T:System.Collections.ICollection to an T:System.Array, starting at a particular T:System.Array index.
/// is . /// is less than zero. /// /// is multidimensional. /// -or- /// /// is equal to or greater than the length of . /// -or- /// The number of elements in the source is greater than the available space from to the end of the destination . /// The type of the source cannot be cast automatically to the type of the destination .
public CopyTo ( Array array, int index ) : void
array System.Array The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing.
index int The zero-based index in at which copying begins.
return void

GetCommissionSteps() public method

Returns all steps for the commission phase
public GetCommissionSteps ( ) : object[]
return object[]

GetDecommissionSteps() public method

Returns all steps for the decommission phase
public GetDecommissionSteps ( ) : object[]
return object[]

GetEnumerator() public method

Returns an enumerator that can iterate through a collection.
public GetEnumerator ( ) : IEnumerator
return IEnumerator

LifecycleStepCollection() public method

Initializes a new instance of the LifecycleStepCollection class.
public LifecycleStepCollection ( ) : System
return System