[英]Integrating Quickfix/n with SQL Server Integration services
I am trying to integrate Quickfix/n with SSIS using Script task. 我正在尝试使用脚本任务将Quickfix / n与SSIS集成在一起。 I have referenced the Quickfix.dll to the script task, created derived class which inherits features from Message cracker like:
我已将Quickfix.dll引用到脚本任务,创建了派生类,该派生类继承了Message Cracker的功能,例如:
class FixApp : QuickFix.MessageCracker
But when ever I try to call this class from Script main class of SSIS, I get 但是,每当我尝试从SSIS的Script主类调用此类时,我都会得到
Exception has been thrown by the target of an invocation.
调用的目标已引发异常。
what am I missing here? 我在这里想念什么? isn't only referencing the dll enough for ssis to use its class and methods?
不仅为ssis引用dll足以使用其类和方法吗?
EDIT: following is the TradeClient class that I have included in the SSIS script task and Main method that calls all other. 编辑:以下是我包含在SSIS脚本任务和调用所有其他方法的Main方法中的TradeClient类。
TradeClient class TradeClient类
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuickFix;
using QuickFix.Fields;
namespace ST_a35ec6dde06549f0a96ac08576735ad8
{
class TradeClientApp:MessageCracker
{
public void FromAdmin(Message message, SessionID sessionID)
{
Crack(message, sessionID);
}
}
}
public void Main()
{
try
{
TradeClientApp tradeclient = new TradeClientApp();
SessionSettings settings = new SessionSettings(file);
}
} }
Add the line using QuickFix;
using QuickFix;
添加行using QuickFix;
to the top of your Script Task in order to invoke the QuickFIX/n library . 到脚本任务顶部,以调用QuickFIX / n库 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.