本文整理汇总了C#中ASC.Core.Tenants.Tenant.SetTrustedDomains方法的典型用法代码示例。如果您正苦于以下问题:C# Tenant.SetTrustedDomains方法的具体用法?C# Tenant.SetTrustedDomains怎么用?C# Tenant.SetTrustedDomains使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ASC.Core.Tenants.Tenant
的用法示例。
在下文中一共展示了Tenant.SetTrustedDomains方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ToTenant
private Tenant ToTenant(object[] r)
{
var tenant = new Tenant(Convert.ToInt32(r[0]), (string)r[1])
{
MappedDomain = (string)r[2],
Version = Convert.ToInt32(r[3]),
Name = (string)r[4],
Language = (string)r[5],
TimeZone = GetTimeZone((string)r[6]),
OwnerId = r[7] != null ? new Guid((string)r[7]) : Guid.Empty,
TrustedDomainsType = (TenantTrustedDomainsType)Convert.ToInt32(r[9]),
CreatedDateTime = (DateTime)r[10],
Status = (TenantStatus)Convert.ToInt32(r[11]),
StatusChangeDate = r[12] != null ? (DateTime)r[12] : default(DateTime),
LastModified = (DateTime)r[13],
};
tenant.SetTrustedDomains((string)r[8]);
CalculateTenantDomain(tenant);
return tenant;
}
示例2: ToTenant
private Tenant ToTenant(object[] r)
{
var tenant = new Tenant(Convert.ToInt32(r[0]), (string)r[1])
{
MappedDomain = (string)r[2],
Version = Convert.ToInt32(r[3]),
VersionChanged = Convert.ToDateTime(r[4]),
Name = (string)r[5],
Language = (string)r[6],
TimeZone = GetTimeZone((string)r[7]),
OwnerId = r[8] != null ? new Guid((string)r[8]) : Guid.Empty,
TrustedDomainsType = (TenantTrustedDomainsType)Convert.ToInt32(r[10]),
CreatedDateTime = (DateTime)r[11],
Status = (TenantStatus)Convert.ToInt32(r[12]),
StatusChangeDate = r[13] != null ? (DateTime)r[13] : default(DateTime),
PaymentId = (string)r[14],
LastModified = (DateTime)r[15],
PartnerId = (string)r[16],
Industry = r[17] != null ? (TenantIndustry)Convert.ToInt32(r[17]) : TenantIndustry.Other
};
tenant.SetTrustedDomains((string)r[9]);
return tenant;
}