public TenantRelocationProcessor(IDataProcessor next, IPropertyLookup organizationPropertyLookup, ExcludedObjectReporter reporter, GetTenantRelocationStateDelegate getTenantRelocationState, Guid invocationId, bool isIncrementalSync) : base(next) { this.organizationPropertyLookup = organizationPropertyLookup; this.reporter = reporter; this.getTenantRelocationState = getTenantRelocationState; this.invocationId = invocationId; this.isIncrementalSync = isIncrementalSync; }
public PropertyReferenceTargetMissingPropertyResolver(IDataProcessor next, IPropertyLookup propertyReferenceTargetPropertyLookup) : base(next, propertyReferenceTargetPropertyLookup) { this.propertyReferenceProperties = new List <PropertyDefinition>(); this.propertyReferenceProperties.Add(SyncUserSchema.CloudSiteMailboxOwners); this.directoryClassLookup = new Dictionary <string, DirectoryObjectClassAddressList>(StringComparer.OrdinalIgnoreCase); DirectoryObjectClassAddressList[] array = (DirectoryObjectClassAddressList[])Enum.GetValues(typeof(DirectoryObjectClassAddressList)); foreach (DirectoryObjectClassAddressList directoryObjectClassAddressList in array) { this.directoryClassLookup[Enum.GetName(typeof(DirectoryObjectClassAddressList), directoryObjectClassAddressList)] = directoryObjectClassAddressList; } }
public LinkTargetMissingPropertyResolver(IDataProcessor next, IPropertyLookup linkTargetPropertyLookup) : base(next, linkTargetPropertyLookup) { this.linkProperties = new List <PropertyDefinition>(SyncSchema.Instance.AllBackSyncLinkedProperties.Cast <PropertyDefinition>()); this.linkProperties.AddRange(SyncSchema.Instance.AllBackSyncShadowLinkedProperties.Cast <PropertyDefinition>()); this.directoryClassLookup = new Dictionary <string, DirectoryObjectClass>(StringComparer.OrdinalIgnoreCase); DirectoryObjectClass[] array = (DirectoryObjectClass[])Enum.GetValues(typeof(DirectoryObjectClass)); foreach (DirectoryObjectClass directoryObjectClass in array) { this.directoryClassLookup[Enum.GetName(typeof(DirectoryObjectClass), directoryObjectClass)] = directoryObjectClass; } }
public string Generate(object parameters) { IPropertyLookup properties = PropertyLookup.CreatePropertyLookup(parameters); var substitutions = from variable in Variables let property = properties.GetProperty(variable.Name) where property != null from value in getSubstitutions(variable, property) select qualify(variable, value); var result = Prefix + String.Join(Separator, substitutions); return(result); }
internal static NameValueCollection CreateNameValueCollection(object instance) { NameValueCollection collection = new NameValueCollection(); IPropertyLookup lookup = PropertyLookup.CreatePropertyLookup(instance); foreach (IProperty property in lookup.GetProperties()) { var values = PropertyLookup.GetValues(property, false) .Where(v => !(v is Tuple <string, object>)); foreach (object value in values) { collection.Add(property.Name, escape(value)); } } return(collection); }
public OrganizationFilter(IDataProcessor next, IPropertyLookup organizationPropertyLookup, ExcludedObjectReporter reporter, bool relocationEnabled = false) : base(next) { this.organizationPropertyLookup = organizationPropertyLookup; this.reporter = reporter; this.relocationEnabled = relocationEnabled; }
public TargetMissingPropertyResolver(IDataProcessor next, IPropertyLookup targetPropertyLookup) : base(next) { this.targetPropertyLookup = targetPropertyLookup; }
public RecipientDeletedDuringOrganizationDeletionFilter(IDataProcessor next, IPropertyLookup organizationLookup, ExcludedObjectReporter reporter) : base(next) { this.organizationLookup = organizationLookup; this.reporter = reporter; }
public MissingPropertyResolver(IDataProcessor next, IPropertyLookup objectPropertyLookup) : base(next) { this.objectPropertyLookup = objectPropertyLookup; }