IsHostableStatic property

Indicates if the implementing manager class can be hosted in the ManagerHost static manager dictionary.

Namespace: ReFlex.Data namespace
Assembly: ReFlex.Data.dll

Syntax

bool IsHostableStatic { get; }

Remarks

No remarks.

Examples

public class ContactManager : IDisposable, IManager
{
    private ManagerHost m_Host;

    /// <summary>
    /// Is hostable static
    /// </summary>
    public bool IsHostableStatic { get { return false; } }

    /// <summary>
    /// Manager host
    /// </summary>
    public ManagerHost Host
    {
        get { return m_Host; }
        private set { m_Host = value; }
    }

    /// <summary>
    /// Load hosted
    /// </summary>
    /// <param name="host"></param>
    public void LoadHosted(ManagerHost host)
    {
        if (host == null)
            throw new ArgumentNullException("host");
        Host = host;
    }
}