public RuleBaseBatch(IEnumerable <RuleBase> items) { BatchPropertyTable batchPropertyTable = new BatchPropertyTable(); foreach (RuleBase ruleBase in items) { Guid identity = CombGuidGenerator.NewGuid(); batchPropertyTable.AddPropertyValue(identity, RuleBase.IDProperty, ruleBase.ID); batchPropertyTable.AddPropertyValue(identity, RuleBase.RuleIDProperty, ruleBase.RuleID); batchPropertyTable.AddPropertyValue(identity, RuleBase.RuleTypeProperty, ruleBase.RuleType); batchPropertyTable.AddPropertyValue(identity, RuleBase.ScopeIDProperty, ruleBase.ScopeID); batchPropertyTable.AddPropertyValue(identity, RuleBase.GroupIDProperty, ruleBase.GroupID); batchPropertyTable.AddPropertyValue(identity, RuleBase.SequenceProperty, ruleBase.Sequence); batchPropertyTable.AddPropertyValue(identity, RuleBase.IsPersistentProperty, ruleBase.IsPersistent); batchPropertyTable.AddPropertyValue(identity, RuleBase.IsActiveProperty, ruleBase.IsActive); if (ruleBase.State != null) { batchPropertyTable.AddPropertyValue(identity, RuleBase.StateProperty, ruleBase.State); } if (ruleBase.AddedVersion != null) { batchPropertyTable.AddPropertyValue(identity, RuleBase.AddedVersionProperty, ruleBase.AddedVersion); } if (ruleBase.RemovedVersion != null) { batchPropertyTable.AddPropertyValue(identity, RuleBase.RemovedVersionProperty, ruleBase.RemovedVersion); } } base.Batch = batchPropertyTable; }
public RulePredicateBatch(IEnumerable <RulePredicate> items) { BatchPropertyTable batchPropertyTable = new BatchPropertyTable(); foreach (RulePredicate rulePredicate in items) { Guid identity = CombGuidGenerator.NewGuid(); batchPropertyTable.AddPropertyValue(identity, RulePredicate.IDProperty, rulePredicate.ID); batchPropertyTable.AddPropertyValue(identity, RulePredicate.PredicateIDProperty, rulePredicate.PredicateID); batchPropertyTable.AddPropertyValue(identity, RulePredicate.PredicateTypeProperty, rulePredicate.PredicateType); if (rulePredicate.Sequence != null) { batchPropertyTable.AddPropertyValue(identity, RulePredicate.SequenceProperty, rulePredicate.Sequence); } if (rulePredicate.ParentID != null) { batchPropertyTable.AddPropertyValue(identity, RulePredicate.ParentIDProperty, rulePredicate.ParentID); } if (rulePredicate.ProcessorID != null) { batchPropertyTable.AddPropertyValue(identity, RulePredicate.ProcessorIdProperty, rulePredicate.ProcessorID); } } base.Batch = batchPropertyTable; }
public ReportSchedule(Guid tenantId, string scheduleName, DateTime scheduleStartTime) : this() { this.TenantId = tenantId; this.ScheduleName = scheduleName; this[ReportScheduleSchema.Id] = CombGuidGenerator.NewGuid(); this.ScheduleStartTime = scheduleStartTime; }
private void SetReceivedTime(Guid guid) { if (CombGuidGenerator.IsCombGuid(guid)) { this.ReceivedTime = CombGuidGenerator.ExtractDateTimeFromCombGuid(guid); return; } this.ReceivedTime = DateTime.UtcNow; }
private static void AddDataFilterRow(BatchPropertyTable table, ComparisonFilter filter) { if (filter != null) { Guid identity = CombGuidGenerator.NewGuid(); table.AddPropertyValue(identity, TransportQueueSchema.FilterNameProperty, filter.Property.Name); table.AddPropertyValue(identity, TransportQueueSchema.OperatorProperty, filter.ComparisonOperator.ToString()); table.AddPropertyValue(identity, TransportQueueSchema.FilterValueProperty, filter.PropertyValue.ToString()); } }
public BaseCookie(string serviceInstance, byte[] data) : this() { if (serviceInstance == null) { throw new ArgumentNullException("serviceInstance"); } this.ServiceInstance = serviceInstance; this.Data = data; this.BatchId = CombGuidGenerator.NewGuid(); this.Version = ExchangeObjectVersion.Current.ToString(); this[BaseCookieSchema.IdentityProp] = new ADObjectId(CombGuidGenerator.NewGuid()); }
public SpamRuleProcessorBlobBatch(IEnumerable <SpamRuleProcessorBlob> items) { BatchPropertyTable batchPropertyTable = new BatchPropertyTable(); foreach (SpamRuleProcessorBlob spamRuleProcessorBlob in items) { Guid identity = CombGuidGenerator.NewGuid(); batchPropertyTable.AddPropertyValue(identity, SpamRuleProcessorBlobSchema.IdProperty, spamRuleProcessorBlob.Id); batchPropertyTable.AddPropertyValue(identity, SpamRuleProcessorBlobSchema.ProcessorIdProperty, spamRuleProcessorBlob.ProcessorId); batchPropertyTable.AddPropertyValue(identity, SpamRuleProcessorBlobSchema.DataProperty, spamRuleProcessorBlob.Data); } base.Batch = batchPropertyTable; }
public SyncWatermarkBatch(IEnumerable <SyncWatermark> items) { BatchPropertyTable batchPropertyTable = new BatchPropertyTable(); foreach (SyncWatermark syncWatermark in items) { Guid identity = CombGuidGenerator.NewGuid(); batchPropertyTable.AddPropertyValue(identity, SyncWatermark.IdProperty, syncWatermark.Id); batchPropertyTable.AddPropertyValue(identity, SyncWatermark.SyncContextProperty, syncWatermark.SyncContext); batchPropertyTable.AddPropertyValue(identity, SyncWatermark.DataProperty, syncWatermark.Data); batchPropertyTable.AddPropertyValue(identity, SyncWatermark.OwnerProperty, syncWatermark.Owner); } base.Batch = batchPropertyTable; }
private static void StartSystemProbe() { try { SystemProbe.Start("SYSPRB", ProcessTransportRole.MailboxSubmission.ToString()); ExTraceGlobals.GeneralTracer.TraceDebug(0L, "MBTSubmission: System probe started successfully."); SystemProbe.ActivityId = CombGuidGenerator.NewGuid(); SystemProbe.TracePass("MBTSubmission", "System probe started successfully.", new object[0]); SystemProbe.ActivityId = Guid.Empty; } catch (LogException ex) { ExTraceGlobals.GeneralTracer.TraceDebug <string>(0L, "MBTSubmission: Failed to initialize system probe. {0}", ex.Message); } }
public PredicateExtendedPropertyBatch(IEnumerable <PredicateExtendedProperty> items) { BatchPropertyTable batchPropertyTable = new BatchPropertyTable(); foreach (PredicateExtendedProperty predicateExtendedProperty in items) { Guid identity = CombGuidGenerator.NewGuid(); batchPropertyTable.AddPropertyValue(identity, PredicateExtendedProperty.IDProperty, predicateExtendedProperty.ID); batchPropertyTable.AddPropertyValue(identity, PredicateExtendedProperty.PredicateIDProperty, predicateExtendedProperty.PredicateID); if (predicateExtendedProperty.PropertyName != null) { batchPropertyTable.AddPropertyValue(identity, ConfigurablePropertyTable.NameProperty, predicateExtendedProperty.PropertyName); if (predicateExtendedProperty.IntValue != null) { batchPropertyTable.AddPropertyValue(identity, ConfigurablePropertyTable.IntValueProperty, predicateExtendedProperty.IntValue); } if (predicateExtendedProperty.LongValue != null) { batchPropertyTable.AddPropertyValue(identity, ConfigurablePropertyTable.LongValueProperty, predicateExtendedProperty.LongValue); } if (predicateExtendedProperty.StringValue != null) { batchPropertyTable.AddPropertyValue(identity, ConfigurablePropertyTable.StringValueProperty, predicateExtendedProperty.StringValue); } if (predicateExtendedProperty.BlobValue != null) { batchPropertyTable.AddPropertyValue(identity, ConfigurablePropertyTable.BlobValueProperty, predicateExtendedProperty.BlobValue); } if (predicateExtendedProperty.DatetimeValue != null) { batchPropertyTable.AddPropertyValue(identity, ConfigurablePropertyTable.DatetimeValueProperty, predicateExtendedProperty.DatetimeValue); } if (predicateExtendedProperty.DecimalValue != null) { batchPropertyTable.AddPropertyValue(identity, ConfigurablePropertyTable.DecimalValueProperty, predicateExtendedProperty.DecimalValue); } if (predicateExtendedProperty.BoolValue != null) { batchPropertyTable.AddPropertyValue(identity, ConfigurablePropertyTable.BoolValueProperty, predicateExtendedProperty.BoolValue); } if (predicateExtendedProperty.GuidValue != null) { batchPropertyTable.AddPropertyValue(identity, ConfigurablePropertyTable.GuidValueProperty, predicateExtendedProperty.GuidValue); } } } base.Batch = batchPropertyTable; }
public ProcessorBatch(IEnumerable <Processor> items) { BatchPropertyTable batchPropertyTable = new BatchPropertyTable(); foreach (Processor processor in items) { Guid identity = CombGuidGenerator.NewGuid(); batchPropertyTable.AddPropertyValue(identity, Processor.ProcessorIDProperty, processor.ProcessorID); if (processor.PropertyName != null) { batchPropertyTable.AddPropertyValue(identity, ConfigurablePropertyTable.NameProperty, processor.PropertyName); if (processor.IntValue != null) { batchPropertyTable.AddPropertyValue(identity, ConfigurablePropertyTable.IntValueProperty, processor.IntValue); } if (processor.LongValue != null) { batchPropertyTable.AddPropertyValue(identity, ConfigurablePropertyTable.LongValueProperty, processor.LongValue); } if (processor.StringValue != null) { batchPropertyTable.AddPropertyValue(identity, ConfigurablePropertyTable.StringValueProperty, processor.StringValue); } if (processor.BlobValue != null) { batchPropertyTable.AddPropertyValue(identity, ConfigurablePropertyTable.BlobValueProperty, processor.BlobValue); } if (processor.DatetimeValue != null) { batchPropertyTable.AddPropertyValue(identity, ConfigurablePropertyTable.DatetimeValueProperty, processor.DatetimeValue); } if (processor.DecimalValue != null) { batchPropertyTable.AddPropertyValue(identity, ConfigurablePropertyTable.DecimalValueProperty, processor.DecimalValue); } if (processor.BoolValue != null) { batchPropertyTable.AddPropertyValue(identity, ConfigurablePropertyTable.BoolValueProperty, processor.BoolValue); } if (processor.GuidValue != null) { batchPropertyTable.AddPropertyValue(identity, ConfigurablePropertyTable.GuidValueProperty, processor.GuidValue); } } } base.Batch = batchPropertyTable; }
private Dictionary <Workload, List <ChangeNotificationData> > GenerateSyncsForFailedBindings() { Dictionary <Workload, List <ChangeNotificationData> > dictionary = new Dictionary <Workload, List <ChangeNotificationData> >(); using (IEnumerator <BindingStorage> enumerator = this.PsPolicyPresentationObject.StorageBindings.GetEnumerator()) { while (enumerator.MoveNext()) { BindingStorage bindingStorage = enumerator.Current; IEnumerable <UnifiedPolicySettingStatus> source = PolicySettingStatusHelpers.LoadSyncStatuses(base.DataSession, Utils.GetUniversalIdentity(bindingStorage), typeof(BindingStorage).Name); bool flag = false; if (source.Any((UnifiedPolicySettingStatus s) => SetCompliancePolicyBase.HasDistributionFailed(bindingStorage, s))) { flag = true; bindingStorage.PolicyVersion = CombGuidGenerator.NewGuid(); if (!dictionary.ContainsKey(bindingStorage.Workload)) { dictionary[bindingStorage.Workload] = new List <ChangeNotificationData>(); } dictionary[bindingStorage.Workload].Add(AggregatedNotificationClients.CreateChangeData(bindingStorage.Workload, bindingStorage)); } List <ChangeNotificationData> list = this.GenerateSyncsForFailedScopes(bindingStorage.AppliedScopes); list.AddRange(this.GenerateSyncsForFailedScopes(bindingStorage.RemovedScopes)); if (list.Any <ChangeNotificationData>()) { if (!dictionary.ContainsKey(bindingStorage.Workload)) { dictionary[bindingStorage.Workload] = new List <ChangeNotificationData>(); } dictionary[bindingStorage.Workload].AddRange(list); if (!flag) { flag = true; bindingStorage.PolicyVersion = CombGuidGenerator.NewGuid(); base.DataSession.Save(bindingStorage); dictionary[bindingStorage.Workload].Add(AggregatedNotificationClients.CreateChangeData(bindingStorage.Workload, bindingStorage)); } } if (flag) { base.DataSession.Save(bindingStorage); } } } return(dictionary); }
protected void GenerateIdForObject(IConfigurable configurable) { ADObject adobject = configurable as ADObject; if (adobject != null) { if (adobject.Id != null && adobject.Id.ObjectGuid == Guid.Empty && !(adobject is ADConfigurationObject)) { adobject.SetId(new ADObjectId(adobject.Id.DistinguishedName, CombGuidGenerator.NewGuid())); } if ((adobject is TransportRule || adobject is Container) && adobject.Id != null && string.IsNullOrEmpty(adobject.Name)) { adobject.Name = (adobject.Id.Name ?? adobject.Id.ObjectGuid.ToString()); return; } } else { ConfigurablePropertyBag configurablePropertyBag = configurable as ConfigurablePropertyBag; if (configurablePropertyBag != null) { if (configurablePropertyBag is UserCertificate) { configurablePropertyBag[UserCertificate.UserCertificateIdProp] = CombGuidGenerator.NewGuid(); configurablePropertyBag[UserCertificate.CertificateIdProp] = CombGuidGenerator.NewGuid(); } if (configurablePropertyBag is PartnerCertificate) { configurablePropertyBag[PartnerCertificate.PartnerCertificateIdDef] = CombGuidGenerator.NewGuid(); configurablePropertyBag[PartnerCertificate.PartnerIdDef] = CombGuidGenerator.NewGuid(); configurablePropertyBag[PartnerCertificate.CertificateIdDef] = CombGuidGenerator.NewGuid(); return; } } else { ConfigurableObject configurableObject = configurable as ConfigurableObject; if (configurableObject != null) { return; } throw new ArgumentException("IConfigurable object must be driven from ADObject, ConfigurableObject, or ConfigurablePropertyBag"); } } }
private void PrepareDataObjectToSave() { if (base.ExchangeRunspaceConfig == null) { base.ThrowTerminatingError(new ComplianceJobTaskException(Strings.UnableToDetermineExecutingUser), ErrorCategory.InvalidOperation, null); } if (!(base.DataSession is ComplianceJobProvider)) { base.ThrowTerminatingError(new ComplianceJobTaskException(Strings.UnableToDetermineCreatingUser), ErrorCategory.InvalidOperation, null); } this.objectToSave.Identity = new ComplianceJobId(); this.objectToSave.CreatedBy = ((ADObjectId)base.ExchangeRunspaceConfig.ExecutingUserIdentity).Name; this.objectToSave.CreatedTime = DateTime.UtcNow; this.objectToSave.LastModifiedTime = DateTime.UtcNow; this.objectToSave.JobObjectVersion = ComplianceJobObjectVersion.Version1; this.objectToSave.JobRunId = CombGuidGenerator.NewGuid(); this.objectToSave.JobStatus = ComplianceJobStatus.NotStarted; }
private List <ChangeNotificationData> GenerateSyncsForFailedScopes(IEnumerable <ScopeStorage> scopeStorages) { List <ChangeNotificationData> list = new List <ChangeNotificationData>(); foreach (ScopeStorage scopeStorage in scopeStorages) { IEnumerable <UnifiedPolicySettingStatus> enumerable = PolicySettingStatusHelpers.LoadSyncStatuses(base.DataSession, Utils.GetUniversalIdentity(scopeStorage), typeof(ScopeStorage).Name); foreach (UnifiedPolicySettingStatus status in enumerable) { if (SetCompliancePolicyBase.HasDistributionFailed(scopeStorage, status)) { scopeStorage.PolicyVersion = CombGuidGenerator.NewGuid(); list.Add(AggregatedNotificationClients.CreateChangeData(scopeStorage.Workload, scopeStorage)); } } } return(list); }
private static Dictionary <Workload, List <ChangeNotificationData> > GenerateSyncs(IEnumerable <UnifiedPolicySettingStatus> syncStatuses, IEnumerable <Workload> workloads, IConfigDataProvider dataSession, UnifiedPolicyStorageBase storageObject, ConfigurationObjectType objectType) { Dictionary <Workload, List <ChangeNotificationData> > dictionary = new Dictionary <Workload, List <ChangeNotificationData> >(); if (syncStatuses.Any((UnifiedPolicySettingStatus s) => SetCompliancePolicyBase.HasDistributionFailed(storageObject, s))) { storageObject.PolicyVersion = CombGuidGenerator.NewGuid(); dataSession.Save(storageObject); foreach (Workload workload in workloads) { dictionary[workload] = new List <ChangeNotificationData> { AggregatedNotificationClients.CreateChangeData(workload, storageObject) }; } } return(dictionary); }
public AuditEvent(MailboxSession session, MailboxAuditOperations operation, COWSettings settings, OperationResult result, LogonType logonType, bool externalAccess) { EnumValidator.ThrowIfInvalid <MailboxAuditOperations>(operation); EnumValidator.ThrowIfInvalid <OperationResult>(result, "result"); EnumValidator.ThrowIfInvalid <LogonType>(logonType, "logonType"); Util.ThrowOnNullArgument(session, "session"); Util.ThrowOnNullArgument(settings, "settings"); this.MailboxSession = session; this.AuditOperation = operation; this.COWSettings = settings; this.OperationSucceeded = result; this.LogonType = logonType; this.ExternalAccess = externalAccess; this.CreationTime = DateTime.UtcNow; this.RecordId = CombGuidGenerator.NewGuid(this.CreationTime); this.OrganizationId = (string.IsNullOrEmpty(session.OrganizationId.ToString()) ? "First Org" : session.OrganizationId.ToString()); this.MailboxGuid = session.MailboxGuid; this.OperationName = operation.ToString(); this.LogonTypeName = logonType.ToString(); }
public SpamRuleBlobBatch(IEnumerable <SpamRuleBlob> items) { BatchPropertyTable batchPropertyTable = new BatchPropertyTable(); foreach (SpamRuleBlob spamRuleBlob in items) { Guid identity = CombGuidGenerator.NewGuid(); batchPropertyTable.AddPropertyValue(identity, SpamRuleBlobSchema.IdProperty, spamRuleBlob.Id); batchPropertyTable.AddPropertyValue(identity, SpamRuleBlobSchema.RuleIdProperty, spamRuleBlob.RuleId); batchPropertyTable.AddPropertyValue(identity, SpamRuleBlobSchema.GroupIdProperty, spamRuleBlob.GroupId); batchPropertyTable.AddPropertyValue(identity, SpamRuleBlobSchema.ScopeIdProperty, spamRuleBlob.ScopeId); batchPropertyTable.AddPropertyValue(identity, SpamRuleBlobSchema.RuleDataProperty, spamRuleBlob.RuleData); batchPropertyTable.AddPropertyValue(identity, SpamRuleBlobSchema.RuleMetaDataProperty, spamRuleBlob.RuleMetaData); batchPropertyTable.AddPropertyValue(identity, SpamRuleBlobSchema.PriorityProperty, spamRuleBlob.Priority); batchPropertyTable.AddPropertyValue(identity, SpamRuleBlobSchema.PublishingStateProperty, spamRuleBlob.PublishingState); batchPropertyTable.AddPropertyValue(identity, SpamRuleBlobSchema.ProcessorDataProperty, spamRuleBlob.ProcessorData); if (spamRuleBlob.DeletedDatetime != null) { batchPropertyTable.AddPropertyValue(identity, SpamRuleBlobSchema.DeletedDatetimeProperty, spamRuleBlob.DeletedDatetime); } } base.Batch = batchPropertyTable; }
public void Add(QuarantinedMessageRecipient recipient) { if (recipient == null) { throw new ArgumentNullException("recipient"); } if (recipient.EmailPrefix == null) { throw new ArgumentException("recipient.EmailPrefix"); } if (recipient.EmailDomain == null) { throw new ArgumentException("recipient.EmailDomain"); } Guid identity = CombGuidGenerator.NewGuid(); this.batchRecipients.AddPropertyValue(identity, QuarantinedMessageRecipientSchema.ExMessageIdProperty, recipient.ExMessageId); this.batchRecipients.AddPropertyValue(identity, QuarantinedMessageRecipientSchema.EmailPrefixProperty, recipient.EmailPrefix); this.batchRecipients.AddPropertyValue(identity, QuarantinedMessageRecipientSchema.EmailDomainProperty, recipient.EmailDomain); this.batchRecipients.AddPropertyValue(identity, QuarantinedMessageRecipientSchema.QuarantinedProperty, recipient.Quarantined); this.batchRecipients.AddPropertyValue(identity, QuarantinedMessageRecipientSchema.NotifiedProperty, recipient.Notified); this.batchRecipients.AddPropertyValue(identity, QuarantinedMessageRecipientSchema.ReportedProperty, recipient.Reported); this.batchRecipients.AddPropertyValue(identity, QuarantinedMessageRecipientSchema.ReleasedProperty, recipient.Released); }
internal static void PopulateScopeStorages(BindingStorage bindingStorage, MultiValuedProperty <BindingMetadata> scopes) { ArgumentValidator.ThrowIfNull("bindingStorage", bindingStorage); ArgumentValidator.ThrowIfNull("scopes", scopes); if (scopes.Changed) { object[] removed = scopes.Removed; for (int i = 0; i < removed.Length; i++) { BindingMetadata removedScope = (BindingMetadata)removed[i]; ScopeStorage scopeStorage = bindingStorage.AppliedScopes.Find((ScopeStorage item) => string.Equals(BindingMetadata.FromStorage(item.Scope).ImmutableIdentity, removedScope.ImmutableIdentity, StringComparison.OrdinalIgnoreCase)); scopeStorage.Mode = Mode.PendingDeletion; scopeStorage.PolicyVersion = CombGuidGenerator.NewGuid(); } object[] added = scopes.Added; for (int j = 0; j < added.Length; j++) { BindingMetadata addedScope = (BindingMetadata)added[j]; ScopeStorage scopeStorage2 = bindingStorage.AppliedScopes.Find((ScopeStorage item) => string.Equals(BindingMetadata.FromStorage(item.Scope).ImmutableIdentity, addedScope.ImmutableIdentity, StringComparison.OrdinalIgnoreCase)); if (scopeStorage2 == null) { Guid objectGuid = Guid.NewGuid(); scopeStorage2 = new ScopeStorage(); scopeStorage2[ADObjectSchema.OrganizationalUnitRoot] = bindingStorage.OrganizationalUnitRoot; scopeStorage2.Name = objectGuid.ToString(); scopeStorage2.SetId(new ADObjectId(PolicyStorage.PoliciesContainer.GetChildId(scopeStorage2.Name).DistinguishedName, objectGuid)); bindingStorage.AppliedScopes.Add(scopeStorage2); } scopeStorage2.Mode = Mode.Enforce; scopeStorage2.Scope = BindingMetadata.ToStorage(addedScope); scopeStorage2.PolicyVersion = CombGuidGenerator.NewGuid(); } bindingStorage.PolicyVersion = CombGuidGenerator.NewGuid(); scopes.ResetChangeTracking(); } }
public BaseRequest() { this.RequestId = CombGuidGenerator.Generate(); }
public OnDemandQueryRequest() { this[ADObjectSchema.Id] = CombGuidGenerator.NewGuid(); this[OnDemandQueryRequestSchema.Container] = OnDemandQueryRequestStatus.NotStarted.ToString(); }
public SyncPropertyRefresh(string serviceInstance) { if (serviceInstance == null) { throw new ArgumentNullException("serviceInstance"); } this.ServiceInstance = serviceInstance; base.SetId(new ADObjectId(DalHelper.GetTenantDistinguishedName(this.ServiceInstance), CombGuidGenerator.NewGuid())); }
protected ADObjectId GenerateLocalIdentifier() { return(new ADObjectId(CombGuidGenerator.NewGuid())); }
public UnifiedPolicyTraceBatch() { this.batch = new List <UnifiedPolicyTrace>(); this.identity = new ConfigObjectId(CombGuidGenerator.NewGuid().ToString()); }
public static Guid GenerateNewId() { return(CombGuidGenerator.NewGuid()); }
private Guid GenerateNewGuid() { return(CombGuidGenerator.NewGuid()); }
public static Guid GenerateIdentifier(IdScope scope) { return(CombGuidGenerator.NewGuid()); }
public RusConfig() { base.SetId(new ADObjectId(DalHelper.GetTenantDistinguishedName("RUS_Default"), CombGuidGenerator.NewGuid())); base.Name = "RUS_Default"; }
public UserAddress() { this.UserAddressId = CombGuidGenerator.NewGuid(); }