public static void OnPostTransportLimits(DataRow inputRow, DataTable dataTable, DataObjectStore store) { DataRow dataRow = dataTable.Rows[0]; if (!DBNull.Value.Equals(dataRow["MaxPerDomainOutboundConnections"])) { dataRow["MaxPerDomainOutboundConnections"] = DDIUtil.ConvertUnlimitedToString <int>(dataRow["MaxPerDomainOutboundConnections"], (int t) => t.ToString()); } if (!DBNull.Value.Equals(dataRow["MaxOutboundConnections"])) { dataRow["MaxOutboundConnections"] = DDIUtil.ConvertUnlimitedToString <int>(dataRow["MaxOutboundConnections"], (int t) => t.ToString()); } if (!DBNull.Value.Equals(dataRow["OutboundConnectionFailureRetryInterval"])) { dataRow["OutboundConnectionFailureRetryInterval"] = ((EnhancedTimeSpan)dataRow["OutboundConnectionFailureRetryInterval"]).ToString(TimeUnit.Second, 0); } if (!DBNull.Value.Equals(dataRow["TransientFailureRetryInterval"])) { dataRow["TransientFailureRetryInterval"] = ((EnhancedTimeSpan)dataRow["TransientFailureRetryInterval"]).ToString(TimeUnit.Minute, 2); } if (!DBNull.Value.Equals(dataRow["MessageExpirationTimeout"])) { dataRow["MessageExpirationTimeout"] = ((EnhancedTimeSpan)dataRow["MessageExpirationTimeout"]).ToString(TimeUnit.Day, 9); } if (!DBNull.Value.Equals(dataRow["DelayNotificationTimeout"])) { dataRow["DelayNotificationTimeout"] = ((EnhancedTimeSpan)dataRow["DelayNotificationTimeout"]).ToString(TimeUnit.Hour, 5); } }
public static void OnPostGlobalSettings(DataRow inputRow, DataTable dataTable, DataObjectStore store) { DataRow dataRow = dataTable.Rows[0]; dataRow["MaxRecipientEnvelopeLimit"] = DDIUtil.ConvertUnlimitedToString <int>(dataRow["MaxRecipientEnvelopeLimit"], (int t) => t.ToString()); dataRow["MaxReceiveSize"] = DDIUtil.ConvertUnlimitedToString <ByteQuantifiedSize>(dataRow["MaxReceiveSize"], (ByteQuantifiedSize s) => s.ToMB(3)); dataRow["MaxSendSize"] = DDIUtil.ConvertUnlimitedToString <ByteQuantifiedSize>(dataRow["MaxSendSize"], (ByteQuantifiedSize s) => s.ToMB(3)); if (!DDIHelper.IsEmptyValue(dataRow["SafetyNetHoldTime"])) { dataRow["SafetyNetHoldTime"] = ((EnhancedTimeSpan)dataRow["SafetyNetHoldTime"]).ToString(TimeUnit.Day, 2); } if (!DDIHelper.IsEmptyValue(dataRow["MaxDumpsterTime"])) { dataRow["MaxDumpsterTime"] = ((EnhancedTimeSpan)dataRow["MaxDumpsterTime"]).ToString(TimeUnit.Day, 2); } }