diff --git a/src/YaNco.Abstractions/IConnection.cs b/src/YaNco.Abstractions/IConnection.cs
index 632611a..085eae8 100644
--- a/src/YaNco.Abstractions/IConnection.cs
+++ b/src/YaNco.Abstractions/IConnection.cs
@@ -120,4 +120,13 @@ public interface IConnection : IDisposable
IRfcRuntime RfcRuntime { get; }
IHasEnvRuntimeSettings ConnectionRuntime { get; }
+
+ ///
+ /// Direct access to the connection handle.
+ ///
+ ///
+ /// Use this property only if you would like to call runtime api methods that are not covered by the interface.
+ /// When operating on the handle, you have to make sure that the connection is accessed in a thread safe manner.
+ ///
+ IConnectionHandle Handle { get; }
}
\ No newline at end of file
diff --git a/src/YaNco.Abstractions/IDataContainer.cs b/src/YaNco.Abstractions/IDataContainer.cs
index 13ed352..1f36e37 100644
--- a/src/YaNco.Abstractions/IDataContainer.cs
+++ b/src/YaNco.Abstractions/IDataContainer.cs
@@ -14,4 +14,12 @@ public interface IDataContainer : IDisposable
Either GetStructure(string name);
Either GetTable(string name);
Either GetTypeDescription();
+
+ ///
+ /// Direct access to the container handle.
+ ///
+ ///
+ /// Use this property only if you would like to call runtime api methods that are not covered by the interface.
+ ///
+ IDataContainerHandle Handle { get; }
}
\ No newline at end of file
diff --git a/src/YaNco.Abstractions/IFunction.cs b/src/YaNco.Abstractions/IFunction.cs
index f6a5a7c..f4bca42 100644
--- a/src/YaNco.Abstractions/IFunction.cs
+++ b/src/YaNco.Abstractions/IFunction.cs
@@ -4,6 +4,12 @@ namespace Dbosoft.YaNco;
public interface IFunction : IDataContainer
{
+ ///
+ /// Direct access to the function handle.
+ ///
+ ///
+ /// Use this property only if you would like to call runtime api methods that are not covered by the interface.
+ ///
[Browsable(false)]
- IFunctionHandle Handle { get; }
+ new IFunctionHandle Handle { get; }
}
\ No newline at end of file
diff --git a/src/YaNco.Core/Connection.cs b/src/YaNco.Core/Connection.cs
index f5b3b01..3aa7a34 100644
--- a/src/YaNco.Core/Connection.cs
+++ b/src/YaNco.Core/Connection.cs
@@ -28,6 +28,7 @@ public class Connection