Pip-Services-Commons-Dotnet
Public Member Functions | List of all members
PipServices3.Commons.Refer.IUnreferenceable Interface Reference

Interface for components that require explicit clearing of references to dependent components. More...

Public Member Functions

void UnsetReferences ()
 Unsets (clears) previously set references to dependent components. More...
 

Detailed Description

Interface for components that require explicit clearing of references to dependent components.

public class MyController: IReferenceable, IUnreferenceable
{
public IMyPersistence _persistence;
...
public void SetReferences(IReferences references)
{
this._persistence = references.getOneRequired<IMyPersistence>(
new Descriptor("mygroup", "persistence", "*", "*", "1.0") );
}
public void UnsetReferences()
{
this._persistence = null;
}
...
}

See IReferences, IReferenceable

Member Function Documentation

◆ UnsetReferences()

void PipServices3.Commons.Refer.IUnreferenceable.UnsetReferences ( )

Unsets (clears) previously set references to dependent components.


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