QualisysConfig 1.0.3

Qualisys Config

Utilería para obtener configuraciones en un tipo de dato específico.

Install-Package QualisysConfig -Version 1.0.3
dotnet add package QualisysConfig --version 1.0.3
<PackageReference Include="QualisysConfig" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add QualisysConfig --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Qualisys Configuration

Configuration example:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <connectionStrings>
    <add name="Connection" connectionString=""/>
  </connectionStrings>
  <appSettings>
    <add key="string" value="string"></add>
    <add key="char" value="c"></add>
    <add key="int" value="1"></add>
    <add key="long" value="123456789"></add>
    <add key="float" value="1.5"></add>
    <add key="double" value="1.5"></add>
    <add key="decimal" value="1.5"></add>
    <add key="date" value="13/12/2017"></add>
    <add key="bool" value="True"></add>
    <add key="enum" value="ENUM_A"></add>
  </appSettings>
</configuration>
Basic use example:
using System;
using QualisysConfig;

public class Program
{
	public static void Main()
	{
            string lStrValue = QsConfig.GetValue<string>("string");
            char lChrValue = QsConfig.GetValue<char>("char");
            int lIntValue = QsConfig.GetValue<int>("int");
            long lLonValue = QsConfig.GetValue<long>("long");
            float lFltValue = QsConfig.GetValue<float>("float");
            double lFltValue = QsConfig.GetValue<double>("double");
            decimal lDmlValue = QsConfig.GetValue<decimal>("decimal");
            DateTime lDtmValue = QsConfig.GetValue<DateTime>("date");
            bool lBolValue = QsConfig.GetValue<bool>("bool");
            SampleEnum lEnmValue = QsConfig.GetValue<SampleEnum>("enum");
	}
}

public enum SampleEnum
{
    ENUM_A,
    ENUM_B,
    ENUM_C
}

See code on GitHub

Qualisys Configuration

Configuration example:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <connectionStrings>
    <add name="Connection" connectionString=""/>
  </connectionStrings>
  <appSettings>
    <add key="string" value="string"></add>
    <add key="char" value="c"></add>
    <add key="int" value="1"></add>
    <add key="long" value="123456789"></add>
    <add key="float" value="1.5"></add>
    <add key="double" value="1.5"></add>
    <add key="decimal" value="1.5"></add>
    <add key="date" value="13/12/2017"></add>
    <add key="bool" value="True"></add>
    <add key="enum" value="ENUM_A"></add>
  </appSettings>
</configuration>
Basic use example:
using System;
using QualisysConfig;

public class Program
{
	public static void Main()
	{
            string lStrValue = QsConfig.GetValue<string>("string");
            char lChrValue = QsConfig.GetValue<char>("char");
            int lIntValue = QsConfig.GetValue<int>("int");
            long lLonValue = QsConfig.GetValue<long>("long");
            float lFltValue = QsConfig.GetValue<float>("float");
            double lFltValue = QsConfig.GetValue<double>("double");
            decimal lDmlValue = QsConfig.GetValue<decimal>("decimal");
            DateTime lDtmValue = QsConfig.GetValue<DateTime>("date");
            bool lBolValue = QsConfig.GetValue<bool>("bool");
            SampleEnum lEnmValue = QsConfig.GetValue<SampleEnum>("enum");
	}
}

public enum SampleEnum
{
    ENUM_A,
    ENUM_B,
    ENUM_C
}

See code on GitHub

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
1.0.3 181 5/3/2018
1.0.2 183 2/28/2018
1.0.1 174 2/27/2018
1.0.0 178 2/26/2018