From fca794d58abdd0fc8ade1e2cb898a3f9f5650d9d Mon Sep 17 00:00:00 2001 From: Florian Bacher Date: Fri, 5 Jan 2024 13:18:08 +0100 Subject: [PATCH] fix formatting Signed-off-by: Florian Bacher --- src/OpenFeature/EventExecutor.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/OpenFeature/EventExecutor.cs b/src/OpenFeature/EventExecutor.cs index 1a372cc1..dafcff4a 100644 --- a/src/OpenFeature/EventExecutor.cs +++ b/src/OpenFeature/EventExecutor.cs @@ -27,7 +27,7 @@ public EventExecutor() internal void AddApiLevelHandler(ProviderEventTypes eventType, EventHandlerDelegate handler) { - lock(this._lockObj) + lock (this._lockObj) { if (!this._apiHandlers.TryGetValue(eventType, out var eventHandlers)) { @@ -43,7 +43,7 @@ internal void AddApiLevelHandler(ProviderEventTypes eventType, EventHandlerDeleg internal void RemoveApiLevelHandler(ProviderEventTypes type, EventHandlerDelegate handler) { - lock(this._lockObj) + lock (this._lockObj) { if (this._apiHandlers.TryGetValue(type, out var eventHandlers)) { @@ -54,7 +54,7 @@ internal void RemoveApiLevelHandler(ProviderEventTypes type, EventHandlerDelegat internal void AddClientHandler(string client, ProviderEventTypes eventType, EventHandlerDelegate handler) { - lock(this._lockObj) + lock (this._lockObj) { // check if there is already a list of handlers for the given client and event type if (!this._clientHandlers.TryGetValue(client, out var registry)) @@ -80,7 +80,7 @@ internal void AddClientHandler(string client, ProviderEventTypes eventType, Even internal void RemoveClientHandler(string client, ProviderEventTypes type, EventHandlerDelegate handler) { - lock(this._lockObj) + lock (this._lockObj) { if (this._clientHandlers.TryGetValue(client, out var clientEventHandlers)) { @@ -98,7 +98,7 @@ internal void RegisterDefaultFeatureProvider(FeatureProvider provider) { return; } - lock(this._lockObj) + lock (this._lockObj) { var oldProvider = this._defaultProvider; @@ -110,7 +110,7 @@ internal void RegisterDefaultFeatureProvider(FeatureProvider provider) internal void RegisterClientFeatureProvider(string client, FeatureProvider provider) { - lock(this._lockObj) + lock (this._lockObj) { var newProvider = new FeatureProviderReference(provider); FeatureProviderReference oldProvider = null; @@ -228,7 +228,7 @@ private async void ProcessEventAsync() switch (item) { case Event e: - lock(this._lockObj) + lock (this._lockObj) { if (this._apiHandlers.TryGetValue(e.EventPayload.Type, out var eventHandlers)) {