I'm using the latest v5.63.162 release and am attempting to add intrinsic config support for our application following these two resources and went the ".ini" provider route:
Here is what my current ".ini" file is trying to set:
[OpcLabs.BaseLib.Runtime.InteropServices.ComManagement:Configuration:SecurityParameters]
EnsureDataIntegrity=True
And here is the initialization code to get it working:
private void ConfigProviderInit()
{
var secParams = ComManagement.Instance.Configuration.SecurityParameters;
StaticHost.GetHostBuilder().ConfigureAppConfiguration((hostingCx, configBuilder) =>
{
configBuilder.AddIniFile("Configuration-QuickOPC.ini", optional: true, reloadOnChange: false);
});
var result = ComManagement.Instance.AssureSecurityInitialization();
}
In case it helps, here is a log entry from my application after the config file init code above completes:
2022-04-25 15:18:06,566 INFO - OnEasyDAClientLogEntry: senderType="OpcLabs.EasyOpc.DataAccess.EasyDAClient" logEntryType="Information" message="Information(1): COM security initialization (process name "Console", Id 13172) for requestor '' succeeded; the initialization object was: (Default).
Made system call: yes, current thread name: "", from thread pool: no, apartment state: MTA."
When I run the final line of my init code above, the SecurityParameters.EnsureDataIntegrity property remains false (the default). I expected to see this property change to true instead. Would you mind checking to make sure I've not done something obviously wrong here? Thanks much for the guidance.