• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Pandv.Config
    • ConfigurationExtensions
    • PandvConfigurationProvider
    • PandvConfigurationSource

Class ConfigurationExtensions

Configuration Extensions Methods

Inheritance
System.Object
ConfigurationExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Pandv.Config
Assembly: cs.temp.dll.dll
Syntax
public static class ConfigurationExtensions

Methods

UsePandv(IConfigurationBuilder, Action<PandvConfigurationSource>)

set configuration get key/value from custom PandvConfigurationSource

Declaration
public static IConfigurationBuilder UsePandv(this IConfigurationBuilder builder, Action<PandvConfigurationSource> configureSource)
Parameters
Type Name Description
IConfigurationBuilder builder

Configuration Builder

System.Action<PandvConfigurationSource> configureSource

custom PandvConfigurationSource

Returns
Type Description
IConfigurationBuilder

IConfigurationBuilder

UsePandv(IConfigurationBuilder, String, Boolean, String, String, String, String)

set configuration get key/value from etcd v3

Declaration
public static IConfigurationBuilder UsePandv(this IConfigurationBuilder builder, string systemName, bool reloadOnChange, string target, string user = null, string pwd = null, string rootPath = "config")
Parameters
Type Name Description
IConfigurationBuilder builder

Configuration Builder

System.String systemName

key's group name

System.Boolean reloadOnChange

keep same with same key/value in etcd v3

System.String target

etcd v3 host:port

System.String user

user name

System.String pwd

user password

System.String rootPath

key's first path name

Returns
Type Description
IConfigurationBuilder

IConfigurationBuilder

Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX