Guest User

Untitled

a guest
Jul 18th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1.  
  2. public class DivaFactory
  3. {
  4. public delegate void FarmResultCallback(uint cookie, uint errorCode);
  5. private static FarmResultCallback farmCallback = new FarmResultCallback(farmResultCallbackImp);
  6.  
  7. [DllImport(@"D:\apps\Diva\FEFarmClientShim.dll", CallingConvention = CallingConvention.StdCall)]
  8. public static extern void SetFarmResultListener(FarmResultCallback cb);
  9.  
  10. public static void init()
  11. {
  12. SetFarmResultListener(farmCallback);
  13. feSetEnv("PLATFORM_PRIORITY", "1");
  14. feSetEnv("AVID_ENV_FARMS_FILE", farmConfigFilePath);
  15. feSetEnv("FUNCTIONREQUEST_USING_PLATFORM_SYMPHONY", "TRUE");
  16. feSetEnv("PLATFORM_CURL", "file://P:\\Local\\Financial Engineering External\\Farm\\Configuration\\Symphony\\Dev\\ego.conf");
  17. feSetEnv("PLATFORM_APPLICATION", "CreditShared");
  18. feSetEnv("PLATFORM_VERSION", "3.18.22");
  19.  
  20. }
  21.  
  22. ...
  23. //at some point call the feExpectedShortFall_Farm method
  24. }
  25.  
  26. private static void farmResultCallbackImp(uint cookie, uint errorCode)
  27. {
  28. ##... //never getting hit
  29. }
Add Comment
Please, Sign In to add comment