Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class DivaFactory
- {
- public delegate void FarmResultCallback(uint cookie, uint errorCode);
- private static FarmResultCallback farmCallback = new FarmResultCallback(farmResultCallbackImp);
- [DllImport(@"D:\apps\Diva\FEFarmClientShim.dll", CallingConvention = CallingConvention.StdCall)]
- public static extern void SetFarmResultListener(FarmResultCallback cb);
- public static void init()
- {
- SetFarmResultListener(farmCallback);
- feSetEnv("PLATFORM_PRIORITY", "1");
- feSetEnv("AVID_ENV_FARMS_FILE", farmConfigFilePath);
- feSetEnv("FUNCTIONREQUEST_USING_PLATFORM_SYMPHONY", "TRUE");
- feSetEnv("PLATFORM_CURL", "file://P:\\Local\\Financial Engineering External\\Farm\\Configuration\\Symphony\\Dev\\ego.conf");
- feSetEnv("PLATFORM_APPLICATION", "CreditShared");
- feSetEnv("PLATFORM_VERSION", "3.18.22");
- }
- ...
- //at some point call the feExpectedShortFall_Farm method
- }
- private static void farmResultCallbackImp(uint cookie, uint errorCode)
- {
- ##... //never getting hit
- }
Add Comment
Please, Sign In to add comment