public override void InjectTip(TIPInjectFileMessage message) { using (message.file) { string fileCopyDir = string.Empty; if (message.imageType == TIPImageType.CTI) { string caseId = CreateCTICase(message.filename); m_CTICases.Add(caseId, string.Empty); fileCopyDir = m_CTIDirectory + caseId; } else if (message.imageType == TIPImageType.FTI) { if (!m_FTIFiles.ContainsKey(message.filename)) { m_FTIFiles.Add(message.filename, string.Empty); } fileCopyDir = m_FTIDirectory; } using (FileStream stream = new FileStream(fileCopyDir + @"\" + message.filename, FileMode.OpenOrCreate)) { message.file.CopyTo(stream); } } }
public virtual void InjectTip(TIPInjectFileMessage tipInjectFileMessage) { throw new NotImplementedException(ErrorMessages.INVALID_FUNCTION); }