Show / Hide Table of Contents

Class ServicePreferenceMappings

The actual mapping definitions between the "pseudo" preferences an records in config, registry and possibly other tables

Inheritance
object
ServicePreferenceMappings
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.Data
Assembly: SoDataBase.dll
Syntax
public class ServicePreferenceMappings

Constructors

ServicePreferenceMappings()

The actual mapping definitions between the "pseudo" preferences an records in config, registry and possibly other tables

Declaration
public ServicePreferenceMappings()

Fields

PasswordMask

The actual mapping definitions between the "pseudo" preferences an records in config, registry and possibly other tables

Declaration
public const string PasswordMask = "•••••"
Field Value
Type Description
string

Properties

MappedSections

The actual mapping definitions between the "pseudo" preferences an records in config, registry and possibly other tables

Declaration
public HashSet<string> MappedSections { get; }
Property Value
Type Description
HashSet<string>

Mappings

The actual mapping definitions between the "pseudo" preferences an records in config, registry and possibly other tables

Declaration
public Dictionary<(string section, string key), ServicePreferenceMappings.PreferenceMappingInfo> Mappings { get; }
Property Value
Type Description
Dictionary<(string section, string key), ServicePreferenceMappings.PreferenceMappingInfo>

Methods

AttachmentPathDecoder(string, string)

Return attachment path based on environment

Declaration
public static string AttachmentPathDecoder(string key, string rawValue)
Parameters
Type Name Description
string key
string rawValue
Returns
Type Description
string

MappedLevel(PreferenceMappingType)

The actual mapping definitions between the "pseudo" preferences an records in config, registry and possibly other tables

Declaration
public PreferenceLevel MappedLevel(ServicePreferenceMappings.PreferenceMappingType mappingType)
Parameters
Type Name Description
ServicePreferenceMappings.PreferenceMappingType mappingType
Returns
Type Description
PreferenceLevel

SmsPluginReassembleLine(string[])

The actual mapping definitions between the "pseudo" preferences an records in config, registry and possibly other tables

Declaration
public static string SmsPluginReassembleLine(string[] kvp)
Parameters
Type Name Description
string[] kvp
Returns
Type Description
string

SmsPluginSplitAndTrimLine(string)

The actual mapping definitions between the "pseudo" preferences an records in config, registry and possibly other tables

Declaration
public static string[] SmsPluginSplitAndTrimLine(string line)
Parameters
Type Name Description
string line
Returns
Type Description
string[]

SmtpDecoder(string, string)

Decode the complex smtp setup into separate components

Declaration
public static string SmtpDecoder(string key, string rawValue)
Parameters
Type Name Description
string key
string rawValue
Returns
Type Description
string

SmtpEncoder(string, string, string)

Update the complex smtp setup preference

Declaration
public static string SmtpEncoder(string key, string currentField, string newPreference)
Parameters
Type Name Description
string key
string currentField
string newPreference
Returns
Type Description
string

SmtpParser(string, out string, out string, out string, out string, out string, out string, bool)

Parse the complex smtp preference - there's a test for this in Test.CoreServices.NoDb

Declaration
public static void SmtpParser(string rawValue, out string protocol, out string user, out string port, out string password, out string host, out string usessl, bool maskPassword = true)
Parameters
Type Name Description
string rawValue
string protocol
string user
string port
string password
string host
string usessl
bool maskPassword

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top