asp.net SAP NCo 3.0 SAP.Middleware.Connector missing RfcDestinationManager.TryGetDestination()

dgenwo3n  于 2023-07-01  发布在  .NET
关注(0)|答案(1)|浏览(151)

我正在尝试修复SAP NCo 3.0“目标配置已初始化”错误。
下面是我的代码:

using SAP.Middleware.Connector;
string ConnectionName = "connectionName";
        IDestinationConfiguration destinationConfig = null;

        bool destinationIsInitialised = false;

        if (!destinationIsInitialised)
        {
            destinationConfig = new SAPConfig();
            destinationConfig.GetParameters(ConnectionName);

            if (RfcDestinationManager.TryGetDestination(ConnectionName) == null)
            {
                RfcDestinationManager.RegisterDestinationConfiguration(destinationConfig);
            }
        }

但是,我的SAP.Middleware.Connector没有RfcDestinationManager.TryGetDestination()。我错过了什么吗?请帮忙谢谢!

efzxgjgh

efzxgjgh1#

#region sapnco.dll, v3.0.0.42
#endregion

using System;

using System.Collections.Generic;

namespace SAP.Middleware.Connector
{
    public class RfcDestinationManager
    {
        public static List<RfcDestinationMonitor> DestinationMonitors { get; 

        public static RfcDestination GetDestination(RfcConfigParameters parameters);
        public static RfcDestination GetDestination(string destinationName);
        public static void RegisterDestinationConfiguration(IDestinationConfiguration config);
        public static RfcDestination TryGetDestination(string destinationName);
        public static void UnregisterDestinationConfiguration(IDestinationConfiguration config);
        public delegate void ConfigurationChangeHandler(string destinationName, RfcConfigurationEventArgs args);
    }
}

相关问题