Pip-Services-Commons-Dotnet
Static Public Member Functions | List of all members
PipServices3.Commons.Refer.Referencer Class Reference

Helper class that sets and unsets references to components. More...

Static Public Member Functions

static void SetReferencesForOne (IReferences references, object component)
 Sets references to specific component. More...
 
static void SetReferences (IReferences references, IEnumerable components=null)
 Sets references to multiple components. More...
 
static void UnsetReferencesForOne (object component)
 Unsets references in specific component. More...
 
static void UnsetReferences (IEnumerable components)
 Unsets references in multiple components. To unset references components must implement IUnreferenceable interface. If they don't the call to this method has no effect. More...
 
static void UnsetReferences (IReferences references)
 Unsets references in multiple components. To unset references components must implement IUnreferenceable interface. If they don't the call to this method has no effect. More...
 

Detailed Description

Helper class that sets and unsets references to components.

See IReferenceable, IUnreferenceable

Member Function Documentation

◆ SetReferences()

static void PipServices3.Commons.Refer.Referencer.SetReferences ( IReferences  references,
IEnumerable  components = null 
)
static

Sets references to multiple components.

To set references components must implement IReferenceable interface. If they don't the call to this method has no effect.

Parameters
referencesreferences to be set
componentsa list of components to set references to

See IReferenceable

◆ SetReferencesForOne()

static void PipServices3.Commons.Refer.Referencer.SetReferencesForOne ( IReferences  references,
object  component 
)
static

Sets references to specific component.

To set references components must implement IReferenceable interface. If they don't the call to this method has no effect.

Parameters
referencesreferences to be set
componenta component to set references to

See IReferenceable

◆ UnsetReferences() [1/2]

static void PipServices3.Commons.Refer.Referencer.UnsetReferences ( IEnumerable  components)
static

Unsets references in multiple components. To unset references components must implement IUnreferenceable interface. If they don't the call to this method has no effect.

Parameters
componentsa list of components to unset references

◆ UnsetReferences() [2/2]

static void PipServices3.Commons.Refer.Referencer.UnsetReferences ( IReferences  references)
static

Unsets references in multiple components. To unset references components must implement IUnreferenceable interface. If they don't the call to this method has no effect.

Parameters
componentsa list of components to unset references

◆ UnsetReferencesForOne()

static void PipServices3.Commons.Refer.Referencer.UnsetReferencesForOne ( object  component)
static

Unsets references in specific component.

To unset references components must implement IUnreferenceable interface. If they don't the call to this method has no effect.

Parameters
componenta components to unset references

See IUnreferenceable


The documentation for this class was generated from the following file: