public static void OnPostPopImapSetting(string prefix, DataRow inputRow, DataTable dataTable, DataObjectStore store) { DataRow row = dataTable.Rows[0]; object dataObject = store.GetDataObject(prefix + "AdConfig"); if (dataObject != null && dataObject is PopImapAdConfiguration) { PopImapAdConfiguration popImapAdConfiguration = (PopImapAdConfiguration)dataObject; if (popImapAdConfiguration.UnencryptedOrTLSBindings != null) { ServersService.ConvertIpBinding(prefix + "UnencryptedOrTLSBindings", popImapAdConfiguration.UnencryptedOrTLSBindings, row); } if (popImapAdConfiguration.SSLBindings != null) { ServersService.ConvertIpBinding(prefix + "SSLBindings", popImapAdConfiguration.SSLBindings, row); } } }
public static void OnPostNetworkInfo(DataRow inputRow, DataTable dataTable, DataObjectStore store) { DataRow dataRow = dataTable.Rows[0]; object dataObject = store.GetDataObject("NetworkInfo"); ArrayList arrayList = new ArrayList(); MultiValuedProperty <Identity> multiValuedProperty = new MultiValuedProperty <Identity>(); multiValuedProperty.Add(new Identity(Guid.Empty.ToString(), Strings.DNSTypeAllIPV4)); arrayList.Add(new string[0]); if (dataObject != null && dataObject is IEnumerable) { foreach (object obj in (dataObject as IEnumerable)) { ServersService.ProcessNetworkInfo(multiValuedProperty, arrayList, obj as NetworkConnectionInfo); } } multiValuedProperty.Add(new Identity("FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF", Strings.DNSTypeCustom)); arrayList.Add(new string[0]); dataRow["AdapterDNSServers"] = arrayList.ToArray(); dataRow["AdapterGuids"] = multiValuedProperty.ToArray(); }
public static void OnPostImap4Setting(DataRow inputRow, DataTable dataTable, DataObjectStore store) { ServersService.OnPostPopImapSetting("Imap4", inputRow, dataTable, store); }
public static void OnPrePop3Setting(DataRow inputRow, DataTable dataTable, DataObjectStore store) { ServersService.OnPrePopImapSetting("Pop3", inputRow, dataTable, store); }