|
|
@ -2426,6 +2426,9 @@ namespace IEC61850
|
|
|
|
/* store IedModel instance to prevent garbage collector */
|
|
|
|
/* store IedModel instance to prevent garbage collector */
|
|
|
|
private IedModel iedModel = null;
|
|
|
|
private IedModel iedModel = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* store TLSConfiguration instance to prevent garbage collector */
|
|
|
|
|
|
|
|
private TLSConfiguration tlsConfiguration = null;
|
|
|
|
|
|
|
|
|
|
|
|
public IedServer(IedModel iedModel, IedServerConfig config = null)
|
|
|
|
public IedServer(IedModel iedModel, IedServerConfig config = null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.iedModel = iedModel;
|
|
|
|
this.iedModel = iedModel;
|
|
|
@ -2441,6 +2444,7 @@ namespace IEC61850
|
|
|
|
public IedServer(IedModel iedModel, TLSConfiguration tlsConfig, IedServerConfig config = null)
|
|
|
|
public IedServer(IedModel iedModel, TLSConfiguration tlsConfig, IedServerConfig config = null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.iedModel = iedModel;
|
|
|
|
this.iedModel = iedModel;
|
|
|
|
|
|
|
|
this.tlsConfiguration = tlsConfig;
|
|
|
|
|
|
|
|
|
|
|
|
IntPtr nativeConfig = IntPtr.Zero;
|
|
|
|
IntPtr nativeConfig = IntPtr.Zero;
|
|
|
|
IntPtr nativeTLSConfig = IntPtr.Zero;
|
|
|
|
IntPtr nativeTLSConfig = IntPtr.Zero;
|
|
|
@ -2530,6 +2534,7 @@ namespace IEC61850
|
|
|
|
self = IntPtr.Zero;
|
|
|
|
self = IntPtr.Zero;
|
|
|
|
internalConnectionHandler = null;
|
|
|
|
internalConnectionHandler = null;
|
|
|
|
this.iedModel = null;
|
|
|
|
this.iedModel = null;
|
|
|
|
|
|
|
|
this.tlsConfiguration = null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|