You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am following the description from the Readme and have implemented this parameters class:
/// <summary>/// Connection parameters for SapNwRfc, with additional parameters we need./// </summary>publicclassSapConnectionParametersExt:SapConnectionParameters{/// <summary>/// Specify whether to use SNC single sign-on or not if SNC is enabled. Possible values are:/// 0: don't use SNC single sign-on/// 1: use SNC single sign-on(default)/// </summary>[SapName("SNC_SSO")]publicstringSncSSO{get;set;}="1";}
Usage is like this:
// Connection ParametersvarmyParams=newSapConnectionParametersExt();// Set other parameters heremyParams.SncSSO="0";varconn=newSapConnection(myParams);conn.Connect();
From what I can see in the system audit logs, it still attempts an SSO connection (which fails for my specific use case => different user name).
The relevant code which works with the parameters always uses typeof(SapConnectionParameters) or an indirect version via type parameters which, to my knowledge, will never return the custom parameters on my subclass.
To support that, it would have to use parameters.GetType() to get the actual runtime type.
The text was updated successfully, but these errors were encountered:
oliverkahrmann-basf
changed the title
Custom parameters don't seem to be working
Custom connectionparameters don't seem to be working
Mar 15, 2023
oliverkahrmann-basf
changed the title
Custom connectionparameters don't seem to be working
Custom connection parameters don't seem to be working
Mar 15, 2023
I am following the description from the Readme and have implemented this parameters class:
Usage is like this:
From what I can see in the system audit logs, it still attempts an SSO connection (which fails for my specific use case => different user name).
The relevant code which works with the parameters always uses
typeof(SapConnectionParameters)
or an indirect version via type parameters which, to my knowledge, will never return the custom parameters on my subclass.To support that, it would have to use
parameters.GetType()
to get the actual runtime type.The text was updated successfully, but these errors were encountered: