Table of Contents

Class RandomValueSource

Namespace
Steeltoe.Extensions.Configuration
Assembly
Steeltoe.Extensions.Configuration.RandomValueBase.dll

Configuration source used in creating a RandomValueProvider that generates random numbers

public class RandomValueSource : IConfigurationSource
Inheritance
RandomValueSource
Implements
Inherited Members

Constructors

RandomValueSource(ILoggerFactory)

Initializes a new instance of the RandomValueSource class.

public RandomValueSource(ILoggerFactory logFactory = null)

Parameters

logFactory ILoggerFactory

the logger factory to use

RandomValueSource(string, ILoggerFactory)

Initializes a new instance of the RandomValueSource class.

public RandomValueSource(string prefix, ILoggerFactory logFactory = null)

Parameters

prefix string

key prefix to use to match random number keys. Should end with the configuration seperator

logFactory ILoggerFactory

the logger factory to use

Fields

PREFIX

public const string PREFIX = "random:"

Field Value

string

Methods

Build(IConfigurationBuilder)

Builds a RandomValueProvider from the sources.

public IConfigurationProvider Build(IConfigurationBuilder builder)

Parameters

builder IConfigurationBuilder

the provided builder

Returns

IConfigurationProvider

the random number provider