Skip to content

Commit 8042f11

Browse files
committed
Fix: Mark base classes as abstract
1 parent c3b7f60 commit 8042f11

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

DG.XrmPluginCore/PluginBase.cs renamed to DG.XrmPluginCore/AbstractPlugin.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace DG.XrmPluginCore
55
{
6-
public abstract class PluginBase : IPlugin
6+
public abstract class AbstractPlugin : IPlugin
77
{
88
/// <summary>
99
/// Gets the name of the child class.
@@ -12,9 +12,9 @@ public abstract class PluginBase : IPlugin
1212
protected string ChildClassName { get; }
1313

1414
/// <summary>
15-
/// Initializes a new instance of the <see cref="PluginBase"/> class.
15+
/// Initializes a new instance of the <see cref="AbstractPlugin"/> class.
1616
/// </summary>
17-
protected PluginBase()
17+
protected AbstractPlugin()
1818
{
1919
ChildClassName = GetType().ToString();
2020
}

DG.XrmPluginCore/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### 0.0.6 - 1 May 2025
2+
* Fix: Mark base classes (CustomApi and Plugin) as abstract
3+
14
### 0.0.5 - 29 April 2025
25
* Add AsyncAutoDelete field to PluginConfig
36

DG.XrmPluginCore/CustomAPI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace DG.XrmPluginCore
1010
/// <summary>
1111
/// Base class for all CustomAPIs.
1212
/// </summary>
13-
public class CustomAPI : PluginBase, ICustomApiDefinition
13+
public abstract class CustomAPI : AbstractPlugin, ICustomApiDefinition
1414
{
1515
protected Action<LocalPluginContext> RegisteredEvent { get; private set; }
1616

DG.XrmPluginCore/Plugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace DG.XrmPluginCore
1616
/// <summary>
1717
/// Base class for all Plugins.
1818
/// </summary>
19-
public class Plugin : PluginBase, IPluginDefinition
19+
public abstract class Plugin : AbstractPlugin, IPluginDefinition
2020
{
2121
/// <summary>
2222
/// Gets the List of events that the plug-in should fire for.

DG.XrmPluginCore/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.5
1+
0.0.6

0 commit comments

Comments
 (0)