public IedServer(IedModel iedModel, IedServerConfig config = null) { IntPtr nativeConfig = IntPtr.Zero; if (config != null) { nativeConfig = config.self; } self = IedServer_createWithConfig(iedModel.self, IntPtr.Zero, nativeConfig); }
public IedServer(IedModel iedModel, TLSConfiguration tlsConfig, IedServerConfig config = null) { IntPtr nativeConfig = IntPtr.Zero; IntPtr nativeTLSConfig = IntPtr.Zero; if (config != null) { nativeConfig = config.self; } if (tlsConfig != null) { nativeTLSConfig = tlsConfig.GetNativeInstance(); } self = IedServer_createWithConfig(iedModel.self, nativeTLSConfig, nativeConfig); }