protected override void WriteResult(ADObject result)
        {
            TaskLogger.LogEnter(new object[]
            {
                this.DataObject.Identity
            });
            SyncDistributionGroup result2 = new SyncDistributionGroup((ADGroup)result);

            base.WriteResult(result2);
            TaskLogger.LogExit();
        }
        protected override IConfigurable ConvertDataObjectToPresentationObject(IConfigurable dataObject)
        {
            if (dataObject == null)
            {
                return(null);
            }
            ADGroup dataObject2 = (ADGroup)dataObject;
            SyncDistributionGroup syncDistributionGroup = new SyncDistributionGroup(dataObject2);

            syncDistributionGroup.propertyBag.SetField(ADRecipientSchema.AcceptMessagesOnlyFrom, SyncTaskHelper.RetrieveFullADObjectId(base.TenantGlobalCatalogSession, syncDistributionGroup.AcceptMessagesOnlyFrom));
            syncDistributionGroup.propertyBag.SetField(ADRecipientSchema.AcceptMessagesOnlyFromDLMembers, SyncTaskHelper.RetrieveFullADObjectId(base.TenantGlobalCatalogSession, syncDistributionGroup.AcceptMessagesOnlyFromDLMembers));
            syncDistributionGroup.propertyBag.SetField(ADRecipientSchema.RejectMessagesFrom, SyncTaskHelper.RetrieveFullADObjectId(base.TenantGlobalCatalogSession, syncDistributionGroup.RejectMessagesFrom));
            syncDistributionGroup.propertyBag.SetField(ADRecipientSchema.RejectMessagesFromDLMembers, SyncTaskHelper.RetrieveFullADObjectId(base.TenantGlobalCatalogSession, syncDistributionGroup.RejectMessagesFromDLMembers));
            if (this.outputCookie != null)
            {
                syncDistributionGroup.propertyBag.SetField(SyncDistributionGroupSchema.Cookie, this.outputCookie.ToBytes());
                if (this.outputCookie.HighWatermark == 0L)
                {
                    syncDistributionGroup.propertyBag.SetField(SyncDistributionGroupSchema.EndOfList, true);
                }
            }
            return(syncDistributionGroup);
        }
 protected override IConfigurable ConvertDataObjectToPresentationObject(IConfigurable dataObject)
 {
     return(SyncDistributionGroup.FromDataObject((ADGroup)dataObject));
 }