Пример #1
0
 public void WriteLog(SynchronizeContext context)
 {
     context.ExceptionCount++;
     SynchronizeHelper.WithDirectoryEntry(context.ADHelper, this.adObjectID, targetObject =>
     {
         LogHelper.WriteSynchronizeDBLogDetail(SynchronizeContext.Current.SynchronizeID, "重命名", oguObject.ID, oguObject.Name,
                                               context.ADHelper.GetPropertyStrValue("objectGuid", targetObject),
                                               context.ADHelper.GetPropertyStrValue("distinguishedName", targetObject),
                                               string.Format("延迟修改:登录名修改执行错误 AD对象:{0},权限中心对象:{1}。", targetObject.Name, this.oguObject.Name));
     }, null);
 }
Пример #2
0
 public void WriteLog(SynchronizeContext context, string message)
 {
     context.ExceptionCount++;
     SynchronizeHelper.WithDirectoryEntry(this.targetObjectID, targetObject =>
     {
         LogHelper.WriteDBLogDetail(SynchronizeContext.Current.SynchronizeID, "移动对象", this.oguObject.ID, this.oguObject.Name,
                                    context.ADHelper.GetPropertyStrValue("objectGuid", targetObject),
                                    context.ADHelper.GetPropertyStrValue("distinguishedName", targetObject),
                                    string.Format("无法移动{0}到{1},错误消息{2}。", this.oguObject.Name, this.parentDn, message));
     }, null);
 }