Table of Contents

Class Config

Namespace
PHCLibrary
Assembly
PHCLibrary.dll
public class Config
Inheritance
Config

Fields

AppAddOns

public const string AppAddOns = "addons"

Field Value

string

AppBackend

public const string AppBackend = "PHCWS"

Field Value

string

AppFrontEnd

public const string AppFrontEnd = "html"

Field Value

string

AppStorage

public const string AppStorage = "ApplicationStorage"

Field Value

string

ErrorFileName

public const string ErrorFileName = "onerrorlog.txt"

Field Value

string

TsqlLogFileName

public const string TsqlLogFileName = "ontsqllog.txt"

Field Value

string

UrlLog

public const string UrlLog = "log"

Field Value

string

Properties

ConnectionString

public static string ConnectionString { get; }

Property Value

string

ConnectionStringReadOnly

public static string ConnectionStringReadOnly { get; }

Property Value

string

DSSService

public static string DSSService { get; }

Property Value

string

DigitalURL

public static string DigitalURL { get; }

Property Value

string

DomainBinDir

public static string DomainBinDir { get; set; }

Property Value

string

DomainDir

public static string DomainDir { get; set; }

Property Value

string

DomainHmail

public static string DomainHmail { get; }

Property Value

string

EmailDuplicationTolerance

public static DateTime EmailDuplicationTolerance { get; }

Property Value

DateTime

Enumero

public static string Enumero { get; }

Property Value

string

ErrorFile

public static string ErrorFile { get; }

Property Value

string

ErrorFilePath

public static string ErrorFilePath { get; }

Property Value

string

ErrorMail

public static string ErrorMail { get; }

Property Value

string

ErrorMailFrom

public static string ErrorMailFrom { get; }

Property Value

string

ExportDir

public static string ExportDir { get; }

Property Value

string

FXFromMAIL

public static string FXFromMAIL { get; }

Property Value

string

GetUniqueDeveloperID

public static string GetUniqueDeveloperID { get; }

Property Value

string

InDebugMode

public static bool InDebugMode { get; }

Property Value

bool

IntegratedSupport

public static bool IntegratedSupport { get; }

Property Value

bool

MailChimpURL

public static string MailChimpURL { get; }

Property Value

string

MainCompanyName

public static string MainCompanyName { get; }

Property Value

string

MaxTSinEditon

public static int MaxTSinEditon { get; }

Property Value

int

MaxUploadGlobal

public static string MaxUploadGlobal { get; }

Property Value

string

MaxUploadSmallImage

public static string MaxUploadSmallImage { get; }

Property Value

string

OAuthCallbackURL

public static string OAuthCallbackURL { get; }

Property Value

string

OAuth_LinkerURL

public static string OAuth_LinkerURL { get; }

Property Value

string

PHCNotifyUrlTest

public static string PHCNotifyUrlTest { get; }

Property Value

string

SharedDB

public static string SharedDB { get; }

Property Value

string

SharedService

public static string SharedService { get; }

Property Value

string

StoragePath

public static string StoragePath { get; set; }

Property Value

string

StoreService

public static string StoreService { get; }

Property Value

string

TSqlLogFile

public static string TSqlLogFile { get; }

Property Value

string

TSqlLogFilePath

public static string TSqlLogFilePath { get; }

Property Value

string

TemplateDB

public static string TemplateDB { get; }

Property Value

string

UploadDir

public static string UploadDir { get; }

Property Value

string

VirtualExportDir

public static string VirtualExportDir { get; }

Property Value

string

clientNameAma

public static string clientNameAma { get; }

Property Value

string

emDesenvolvimento

public static bool emDesenvolvimento { get; }

Property Value

bool

maxTDinEditonNet

public static int maxTDinEditonNet { get; }

Property Value

int

maxTSREinEditonNet

public static int maxTSREinEditonNet { get; }

Property Value

int

passwordAma

public static string passwordAma { get; }

Property Value

string

storeWS

public static string storeWS { get; }

Property Value

string

userAma

public static string userAma { get; }

Property Value

string

verifyCertificate

public static bool verifyCertificate { get; }

Property Value

bool

Methods

ReadKey(ConfigKeys)

Qual a chave do enumerador ConfigKeys a ser lida do WebConfig

public static string ReadKey(Config.ConfigKeys keyValue)

Parameters

Nome Tipo Descrição
keyValue Config.ConfigKeys

Returns

string

Remarks

Esta função recebe um parâmetro do tipo enumerador para obrigar o programador a criar uma chave no ConfigKeys correspondente á chave que deseja ler do WebConfig, deste modo a aplicação fica com um local único onde residem todas as chaves, muito útil para documentação e permitir de um modo rápido saber o que é possível parametrizar no WebConfig

ReadKey<T>(ConfigKeys, T)

public static T ReadKey<T>(Config.ConfigKeys keyValue, T defaultValue = default)

Parameters

Nome Tipo Descrição
keyValue Config.ConfigKeys
defaultValue T

Returns

T

Type Parameters

T

getAppSetting(string)

public static string getAppSetting(string keyValue)

Parameters

Nome Tipo Descrição
keyValue string

Returns

string