// Token: 0x06000C56 RID: 3158 RVA: 0x00037DE4 File Offset: 0x00035FE4 internal static SaveTenantRequest ConstructSaveTenantRequest(Guid tenantId, KeyValuePair <TenantProperty, PropertyValue>[] properties) { LocatorServiceClientAdapter.ThrowIfEmptyGuid(tenantId, "tenantId"); LocatorServiceClientAdapter.ThrowIfNull(properties, "properties"); foreach (KeyValuePair <TenantProperty, PropertyValue> keyValuePair in properties) { if (keyValuePair.Key.DataType != keyValuePair.Value.DataType) { throw new ArgumentException("key and value have different data types!", "properties"); } } return(new SaveTenantRequest { TenantInfo = new TenantInfo { TenantId = tenantId, Properties = LocatorServiceClientWriter.GetPropertyValues(properties) } }); }
// Token: 0x06000C57 RID: 3159 RVA: 0x00037E80 File Offset: 0x00036080 internal static SaveDomainRequest ConstructSaveDomainRequest(SmtpDomain domain, string domainKey, Guid tenantId, KeyValuePair <DomainProperty, PropertyValue>[] properties) { LocatorServiceClientAdapter.ThrowIfEmptyGuid(tenantId, "tenantId"); LocatorServiceClientAdapter.ThrowIfNull(domain, "domain"); LocatorServiceClientAdapter.ThrowIfNull(properties, "properties"); foreach (KeyValuePair <DomainProperty, PropertyValue> keyValuePair in properties) { if (keyValuePair.Key.DataType != keyValuePair.Value.DataType) { throw new ArgumentException("key and value have different data types!", "properties"); } } return(new SaveDomainRequest { TenantId = tenantId, DomainInfo = new DomainInfo { DomainName = domain.Domain, DomainKey = domainKey, Properties = LocatorServiceClientWriter.GetPropertyValues(properties) } }); }