NETHost.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #pragma once
  2. #include <Atomic/Core/Object.h>
  3. #include <Atomic/IO/FileSystem.h>
  4. namespace Atomic
  5. {
  6. class ATOMIC_API NETHost : public Object
  7. {
  8. OBJECT(NETHost);
  9. public:
  10. /// Construct.
  11. NETHost(Context* context);
  12. /// Destruct.
  13. virtual ~NETHost();
  14. // It is important all these paths use native folder delimiter when passed to CoreCLR
  15. static void SetCoreCLRFilesAbsPath(const String& path) { coreCLRFilesAbsPath_ = GetNativePath(AddTrailingSlash(path)); }
  16. // ; (semicolon) delimited list of paths to loads assemblies from
  17. static void SetCoreCLRAssemblyLoadPaths(const String& path) { coreCLRAssemblyLoadPaths_ = path; }
  18. // ; (semicolon) delimited list of paths to trusted platform assemblies
  19. static void SetCoreCLRTPAPaths(const String& path) { coreCLRTPAPaths_ = path; }
  20. virtual bool Initialize() = 0;
  21. virtual bool CreateDelegate(const String& assemblyName, const String& qualifiedClassName, const String& methodName, void** funcOut) = 0;
  22. virtual void WaitForDebuggerConnect() = 0;
  23. protected:
  24. static String coreCLRFilesAbsPath_;
  25. static String coreCLRAssemblyLoadPaths_;
  26. static String coreCLRTPAPaths_;
  27. };
  28. }