/// <summary> /// Creates a gateway using a JSON configuration file as inputwhich describes each module. /// Each module described in the configuration must support Module_CreateFromJson. /// </summary> /// <param name="file_path">Path to the JSON configuration file for this gateway.</param> /// <returns>A non-NULL #GATEWAY_HANDLE that can be used to manage the gateway or @c NULL on failure.</returns> public static IntPtr CreateFromJson(string file_path) { NetCoreInterop.InitializeDelegates(); return(CreateFromJsonInternal(file_path)); }
/// <summary> /// Create gateway using a NULL property. This forms the template which we /// will fill up with module and link information with subsequent calls to UpdateFromJson /// and then eventually start the gateway. /// </summary> public static IntPtr Create() { NetCoreInterop.InitializeDelegates(); return(CreateInternal(IntPtr.Zero)); }