Skip to content

Commit

Permalink
fixed visibility of some methods on the plugin class
Browse files Browse the repository at this point in the history
  • Loading branch information
RagingKore committed May 15, 2024
1 parent 595d85a commit 399b7fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/EventStore.Plugins/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ protected Plugin(PluginOptions options) : this(
/// <inheritdoc />
public bool Enabled => IsEnabledResult.Enabled;

public virtual void ConfigureServices(IServiceCollection services, IConfiguration configuration) { }
protected virtual void ConfigureServices(IServiceCollection services, IConfiguration configuration) { }

public virtual void ConfigureApplication(IApplicationBuilder app, IConfiguration configuration) { }
protected virtual void ConfigureApplication(IApplicationBuilder app, IConfiguration configuration) { }

public virtual (bool Enabled, string EnableInstructions) IsEnabled(IConfiguration configuration) => (true, "");
protected virtual (bool Enabled, string EnableInstructions) IsEnabled(IConfiguration configuration) => (true, "");

IServiceCollection IPlugableComponent.ConfigureServices(IServiceCollection services, IConfiguration configuration) {
Configuration = configuration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void can_receive_metrics_from_plugin() {
class AdamSmasherPlugin(params KeyValuePair<string, object?>[] diagnosticsTags) : Plugin(diagnosticsTags: diagnosticsTags) {
public Counter<int> TestCounter { get; private set; } = null!;

public override void ConfigureApplication(IApplicationBuilder app, IConfiguration configuration) {
protected override void ConfigureApplication(IApplicationBuilder app, IConfiguration configuration) {
var meterFactory = app.ApplicationServices.GetRequiredService<IMeterFactory>();

var meter = meterFactory.Create(DiagnosticsName, Version, DiagnosticsTags);
Expand Down

0 comments on commit 399b7fc

Please sign in to comment.