protected override IConfigurable ResolveDataObject() { ADObject adobject = (ADObject)RecipientTaskHelper.ResolveDataObject <TDataObject>(base.DataSession, base.TenantGlobalCatalogSession, base.ServerSettings, this.Identity, this.RootId, base.OptionalIdentityData, base.DomainController, new DataAccessHelper.CategorizedGetDataObjectDelegate(base.GetDataObject <TDataObject>), new Task.TaskVerboseLoggingDelegate(base.WriteVerbose), new Task.ErrorLoggerDelegate(base.WriteError)); if (TaskHelper.ShouldUnderscopeDataSessionToOrganization((IDirectorySession)base.DataSession, adobject)) { base.UnderscopeDataSession(adobject.OrganizationId); } return(adobject); }
// Token: 0x06000304 RID: 772 RVA: 0x0000BE8C File Offset: 0x0000A08C protected override IConfigurable ResolveDataObject() { ADObject adobject = (ADObject)base.ResolveDataObject(); if (TaskHelper.ShouldUnderscopeDataSessionToOrganization((IDirectorySession)base.DataSession, adobject)) { base.UnderscopeDataSession(adobject.OrganizationId); } return(adobject); }
// Token: 0x060005CE RID: 1486 RVA: 0x0001636C File Offset: 0x0001456C protected override IConfigurable ResolveDataObject() { SharedConfigurationTaskHelper.Validate(this, this.SharedTenantConfigurationMode, this.CurrentOrgState, null); ADObject adobject = (ADObject)base.ResolveDataObject(); if (TaskHelper.ShouldUnderscopeDataSessionToOrganization((IDirectorySession)base.DataSession, adobject)) { base.UnderscopeDataSession(adobject.OrganizationId); } return(adobject); }
private IEnumerable <TObject> RescopeSessionByResultObjects <TObject>(IEnumerable <TObject> dataObjects) where TObject : IConfigurable, new() { if (typeof(ADObject).IsAssignableFrom(typeof(TObject)) && base.DataSession is IDirectorySession) { List <TObject> list = new List <TObject>(dataObjects); if (list.Count > 0) { ADObject adobject = list[0] as ADObject; IDirectorySession directorySession = base.DataSession as IDirectorySession; if (directorySession != null && adobject != null && adobject.OrganizationId != null && TaskHelper.ShouldUnderscopeDataSessionToOrganization(directorySession, adobject)) { base.UnderscopeDataSession(adobject.OrganizationId); base.CurrentOrganizationId = adobject.OrganizationId; } } dataObjects = list; } return(dataObjects); }
// Token: 0x060006FF RID: 1791 RVA: 0x0001A46F File Offset: 0x0001866F internal static bool ShouldUnderscopeDataSessionToOrganization(IDirectorySession dataSession, ADObject dataObject) { return(TaskHelper.ShouldUnderscopeDataSessionToOrganization(dataSession, dataObject.OrganizationId)); }