/// <summary> /// convert the secure share file's embedded DRM data to encrypted file's meta data with the attached tag. /// </summary> /// <param name="messageSend"></param> private void ProcessSecuredSharedFile(FilterAPI.MessageSendData messageSend) { string lastError = string.Empty; if (!DigitalRightControl.ProcessSecureShareFile(messageSend.FileName, out lastError)) { if (!retryFiles.ContainsKey(messageSend.FileName)) { retryFiles.Add(messageSend.FileName, 0); } EventManager.WriteMessage(147, "ProcessSecureShareFile", EventLevel.Error, lastError); } else { EventManager.WriteMessage(159, "ProcessSecureShareFile", EventLevel.Verbose, "Process secure file " + messageSend.FileName + " succeeded."); } }