// Token: 0x06001062 RID: 4194 RVA: 0x0005FBA4 File Offset: 0x0005DDA4 private void UploadMetadata(string filePath, string fileName) { DtmfMapMetadataMailboxFileStore dtmfMapMetadataMailboxFileStore = DtmfMapMetadataMailboxFileStore.FromMailboxGuid(base.OrgId, base.MailboxGuid); if (dtmfMapMetadataMailboxFileStore != null) { dtmfMapMetadataMailboxFileStore.UploadMetadata(filePath, fileName, 1.ToString()); } }
// Token: 0x06001063 RID: 4195 RVA: 0x0005FBD8 File Offset: 0x0005DDD8 private string GetMetadataFilePath(RecipientType recipientType) { bool flag = false; DateTime dateTime = DateTime.MinValue; string metadataFileName = this.GetMetadataFileName(recipientType); string dtmfMapFolderPath = GrammarFileDistributionShare.GetDtmfMapFolderPath(base.RunData.OrgId, base.RunData.MailboxGuid); string text = Path.Combine(dtmfMapFolderPath, metadataFileName); if (File.Exists(text)) { flag = true; dateTime = File.GetLastWriteTimeUtc(text); base.Logger.TraceDebug(this, "GetMetadataFilePath filePath='{0}' exists, lastModifiedTimeUtc='{1}'", new object[] { text, dateTime }); } if (DateTime.UtcNow - dateTime > this.MetadataExpiration) { base.Logger.TraceDebug(this, "Downloading metadata to filePath='{0}'", new object[] { text }); DtmfMapMetadataMailboxFileStore dtmfMapMetadataMailboxFileStore = DtmfMapMetadataMailboxFileStore.FromMailboxGuid(base.OrgId, base.MailboxGuid); if (dtmfMapMetadataMailboxFileStore != null && dtmfMapMetadataMailboxFileStore.DownloadMetadata(text, metadataFileName, 1.ToString(), dateTime)) { flag = true; } } if (!flag) { return(null); } return(text); }