From 6cdf84d2d9af8033f8671b668d627083096befa7 Mon Sep 17 00:00:00 2001 From: "Ilya.Usov" Date: Mon, 4 Dec 2023 15:21:02 +0100 Subject: [PATCH] Make Protocol::GetOrCreateExtension and Protocol::GetExtension virtual --- rd-net/RdFramework/Impl/Protocol.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rd-net/RdFramework/Impl/Protocol.cs b/rd-net/RdFramework/Impl/Protocol.cs index ac4b61093..f92724222 100644 --- a/rd-net/RdFramework/Impl/Protocol.cs +++ b/rd-net/RdFramework/Impl/Protocol.cs @@ -137,7 +137,7 @@ internal void SubmitExtCreated(ExtCreationInfo info) public RName Location { get; } IProtocol IRdDynamic.TryGetProto() => this; - public T? GetExtension() where T : RdExtBase + public virtual T? GetExtension() where T : RdExtBase { var parentProtocol = myParentProtocol; if (parentProtocol != null) @@ -149,7 +149,7 @@ internal void SubmitExtCreated(ExtCreationInfo info) } } - public T GetOrCreateExtension(Func create) where T : RdExtBase + public virtual T GetOrCreateExtension(Func create) where T : RdExtBase { if (create == null) throw new ArgumentNullException(nameof(create));