DovetailEmbeddedConfiguration
Classstaticnet10.0
Loads configuration files that the Dovetail SDK embedded into an assembly as manifest resources, for hosts that have no file system to read them from (mobile and other app-package hosts).
namespace Joinery.Dovetail;
public static class DovetailEmbeddedConfiguration{ // ...}Remarks
Section titled Remarks A host turns this on by setting
DovetailEmbeddedConfiguration.AssemblyKey on the context to the assembly that carries the application's configuration. The configuration joints then read the embedded copies instead of files on disk. Methods3
Section titled MethodsAssembly?IReadOnlyList<string> Gets the conventional configuration file names, lowest precedence first:
appsettings, the application name, each of those qualified by the environment name, and each of those qualified by local. Stream? Opens the first embedded resource that matches one of
fileNames , in order. A resource matches when its name is the file name itself (the Dovetail SDK's naming) or ends with .{fileName} (the default manifest naming of other tools). Fields1
Section titled FieldsAssemblyKey staticstring The context key that holds the
Reflection.Assembly the application's configuration files are embedded in.