public AttributesQueryContext( AttributesScope scope, DateTimeOffset?modifiedSince = null, int?modifiedAfterRevision = null, CoreProfileAttributes?coreAttributes = null, string containerName = null) { if (scope.HasFlag(~(AttributesScope.Application | AttributesScope.Core)) || (!scope.HasFlag(AttributesScope.Application) && !scope.HasFlag(AttributesScope.Core))) { throw new ArgumentException(string.Format("The scope '{0}' is not supported for this operation.", scope)); } Scope = scope; ModifiedSince = modifiedSince; ModifiedAfterRevision = modifiedAfterRevision; if (scope.HasFlag(AttributesScope.Application)) { ProfileArgumentValidation.ValidateApplicationContainerName(containerName); ContainerName = containerName; } else { ContainerName = null; } if (scope.HasFlag(AttributesScope.Core)) { CoreAttributes = coreAttributes ?? CoreProfileAttributes.All; } else { CoreAttributes = null; } }
/// <remarks> /// Deprecated constructor. The operation to 'get attributes since a certain point in time' is now deprecated. /// </remarks>> public AttributesQueryContext(AttributesScope scope, DateTimeOffset modifiedSince, string containerName = null) : this(scope, modifiedSince, null, CoreProfileAttributes.All, containerName) { }
public AttributesQueryContext(AttributesScope scope, int modifiedAfterRevision, string containerName = null) : this(scope, null, modifiedAfterRevision, CoreProfileAttributes.All, containerName) { }
public AttributesQueryContext(AttributesScope scope, string containerName) : this(scope, null, null, CoreProfileAttributes.All, containerName) { }