Search Results for

    Show / Hide Table of Contents

    Class HoconSubstitution

    This class represents a substitution element in a HOCON (Human-Optimized Config Object Notation) configuration string.

    akka {  
      defaultInstances = 10
      deployment{
        /user/time{
          nr-of-instances = $defaultInstances
        }
      }
    }
    Inheritance
    object
    HoconSubstitution
    Implements
    IHoconElement
    IMightBeAHoconObject
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Configuration.Hocon
    Assembly: Akka.dll
    Syntax
    public class HoconSubstitution : IHoconElement, IMightBeAHoconObject

    Constructors

    | Edit this page View Source

    HoconSubstitution()

    Initializes a new instance of the HoconSubstitution class.

    Declaration
    protected HoconSubstitution()
    | Edit this page View Source

    HoconSubstitution(string)

    Initializes a new instance of the HoconSubstitution class.

    Declaration
    public HoconSubstitution(string path)
    Parameters
    Type Name Description
    string path

    The path.

    Properties

    | Edit this page View Source

    Path

    The full path to the value which should substitute this instance.

    Declaration
    public string Path { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    ResolvedValue

    The evaluated value from the Path property

    Declaration
    public HoconValue ResolvedValue { get; set; }
    Property Value
    Type Description
    HoconValue

    Methods

    | Edit this page View Source

    GetArray()

    Retrieves a list of elements associated with this element.

    Declaration
    public IList<HoconValue> GetArray()
    Returns
    Type Description
    IList<HoconValue>

    A list of elements associated with this element.

    | Edit this page View Source

    GetObject()

    Retrieves the HOCON object representation of this element.

    Declaration
    public HoconObject GetObject()
    Returns
    Type Description
    HoconObject

    The HOCON object representation of this element.

    | Edit this page View Source

    GetString()

    Retrieves the string representation of this element.

    Declaration
    public string GetString()
    Returns
    Type Description
    string

    The string representation of this element.

    | Edit this page View Source

    IsArray()

    Determines whether this element is an array.

    Declaration
    public bool IsArray()
    Returns
    Type Description
    bool

    true if this element is aan array; otherwise false

    | Edit this page View Source

    IsObject()

    Determines whether this element is a HOCON object.

    Declaration
    public bool IsObject()
    Returns
    Type Description
    bool

    true if this element is a HOCON object; otherwise false

    | Edit this page View Source

    IsString()

    Determines whether this element is a string.

    Declaration
    public bool IsString()
    Returns
    Type Description
    bool

    true if this element is a string; otherwise false

    Implements

    IHoconElement
    IMightBeAHoconObject

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET