// Token: 0x0600000D RID: 13 RVA: 0x00002183 File Offset: 0x00000383 protected void Initialize(string applicationName, ILogger logger, AnchorConfig config) { AnchorUtil.ThrowOnNullOrEmptyArgument(applicationName, "applicationName"); this.ApplicationName = applicationName; this.Logger = logger; this.Config = config; }
public static AnchorRunspaceProxy CreateRunspaceForDelegatedPartner(AnchorContext context, DelegatedPrincipal delegatedPartnerAdmin, string tenantOrganization) { AnchorUtil.ThrowOnNullArgument(delegatedPartnerAdmin, "delegatedTenantAdmin"); AnchorUtil.ThrowOnNullOrEmptyArgument(tenantOrganization, "tenantOrganization"); context.Logger.Log(MigrationEventType.Verbose, "AnchorRunspaceProxy. Creating delegated partner runspace proxy for user {0}", new object[] { delegatedPartnerAdmin }); ExchangeRunspaceConfigurationSettings configSettings = new ExchangeRunspaceConfigurationSettings(ExchangeRunspaceConfigurationSettings.ExchangeApplication.SimpleDataMigration, tenantOrganization, ExchangeRunspaceConfigurationSettings.GetDefaultInstance().CurrentSerializationLevel); return(new AnchorRunspaceProxy(context, AnchorRunspaceProxy.RunspaceFactoryWithDCAffinity.CreateRbacFactory(context, delegatedPartnerAdmin.ToString(), delegatedPartnerAdmin.Identity, configSettings))); }
// Token: 0x0600003D RID: 61 RVA: 0x00002744 File Offset: 0x00000944 public ADRecipient GetADRecipientByProxyAddress(string userEmail) { AnchorUtil.ThrowOnNullOrEmptyArgument(userEmail, "userEmail"); ProxyAddress proxy = ProxyAddress.Parse(userEmail); ADRecipient recipient = null; this.DoAdCallAndTranslateExceptions(delegate { recipient = this.RecipientSession.FindByProxyAddress <ADRecipient>(proxy); }, false); return(recipient); }
public static AnchorRunspaceProxy CreateRunspaceForPartner(AnchorContext context, ADObjectId ownerId, ADUser tenantAdmin, string tenantOrganization) { AnchorUtil.ThrowOnNullArgument(ownerId, "ownerId"); AnchorUtil.ThrowOnNullArgument(tenantAdmin, "tenantAdmin"); AnchorUtil.ThrowOnNullOrEmptyArgument(tenantOrganization, "tenantOrganization"); context.Logger.Log(MigrationEventType.Verbose, "AnchorRunspaceProxy. Creating partner runspace proxy for user {0}", new object[] { tenantAdmin.Name }); ExchangeRunspaceConfigurationSettings configSettings = new ExchangeRunspaceConfigurationSettings(ExchangeRunspaceConfigurationSettings.ExchangeApplication.SimpleDataMigration, tenantOrganization, ExchangeRunspaceConfigurationSettings.GetDefaultInstance().CurrentSerializationLevel); return(new AnchorRunspaceProxy(context, AnchorRunspaceProxy.RunspaceFactoryWithDCAffinity.CreateRbacFactory(context, ownerId.ToString(), new GenericSidIdentity(tenantAdmin.Name, string.Empty, tenantAdmin.Sid), configSettings))); }
// Token: 0x060000E3 RID: 227 RVA: 0x000040DC File Offset: 0x000022DC public static string SanitizeDiagnosticInfo(string diagnosticInfo) { AnchorUtil.ThrowOnNullOrEmptyArgument(diagnosticInfo, "diagnosticInfo"); diagnosticInfo = diagnosticInfo.Replace(" ", " "); diagnosticInfo = diagnosticInfo.Replace("\n", " "); diagnosticInfo = diagnosticInfo.Replace("\r", " "); diagnosticInfo = diagnosticInfo.Replace("\t", " "); diagnosticInfo = diagnosticInfo.Replace("{", "["); diagnosticInfo = diagnosticInfo.Replace("}", "]"); if (diagnosticInfo.Length > 16384) { return(diagnosticInfo.Substring(0, 16381) + "..."); } return(diagnosticInfo); }
// Token: 0x0600008F RID: 143 RVA: 0x000032AE File Offset: 0x000014AE public T GetConfig <T>([CallerMemberName] string settingName = null) { AnchorUtil.ThrowOnNullOrEmptyArgument(settingName, "settingName"); return(this.Provider.GetConfig <T>(settingName)); }
private RunspaceFactoryWithDCAffinity(string affinityToken, AnchorRunspaceProxy.FullExchangeRunspaceConfigurationFactory configurationFactory, PSHostFactory hostFactory) : base(configurationFactory, hostFactory) { AnchorUtil.ThrowOnNullOrEmptyArgument(affinityToken, "affinityToken"); this.affinityToken = affinityToken; }
private RunspaceFactoryWithDCAffinity(string affinityToken, InitialSessionStateFactory issFactory, PSHostFactory hostFactory) : base(issFactory, hostFactory, true) { AnchorUtil.ThrowOnNullOrEmptyArgument(affinityToken, "affinityToken"); this.affinityToken = affinityToken; }