Skip to main content

Class ValidateConfiguration

Namespace: RealityCollective.ServiceFramework

public static class ValidateConfiguration

Inheritance

object ← ValidateConfiguration

Methods

ValidateService<T>(BaseServiceProfile<T>, Type[], IServiceConfiguration<T>[], bool)

public static bool ValidateService<T>(this BaseServiceProfile<T> profile, Type[] providerTypesToValidate, IServiceConfiguration<T>[] providerDefaultConfiguration, bool prompt = true) where T : IService

Parameters

profile BaseServiceProfile<T>

providerTypesToValidate Type[]

Array of Data Provider types to validate

providerDefaultConfiguration IServiceConfiguration<T>[]

Array of Data Provider default configurations to add if missing

prompt bool

Unit Test helper, to control whether the UI prompt is offered or not

Returns

bool

Type Parameters

T