From 68fbf6717d4055947aff3da8d3e58e1975b00373 Mon Sep 17 00:00:00 2001 From: Simon Gockner Date: Mon, 9 Mar 2020 14:38:04 +0100 Subject: [PATCH] - use invoke instead of beginInvoke - remove now unneeded callback - remove RaiseGBaseEntryRemoved --- GBase.Api/GBase.Api.xml | 12 ------------ GBase.Api/NotifyGBaseEntryChanged.cs | 20 +------------------- 2 files changed, 1 insertion(+), 31 deletions(-) diff --git a/GBase.Api/GBase.Api.xml b/GBase.Api/GBase.Api.xml index 00a02ac..727814d 100644 --- a/GBase.Api/GBase.Api.xml +++ b/GBase.Api/GBase.Api.xml @@ -141,18 +141,6 @@ The name of the IGBaseColumn The new value - - - Raise the GBaseEntry removed ( event without args) - - The entry (sender) - - - - Callback for the event - - The - ServiceContract for the GBaseColumn diff --git a/GBase.Api/NotifyGBaseEntryChanged.cs b/GBase.Api/NotifyGBaseEntryChanged.cs index ba83856..75bfe2d 100644 --- a/GBase.Api/NotifyGBaseEntryChanged.cs +++ b/GBase.Api/NotifyGBaseEntryChanged.cs @@ -24,25 +24,7 @@ namespace GBase.Api /// The new value protected void RaiseGBaseEntryChanged(object entry, string columnName, object value) { - GBaseEntryChanged?.BeginInvoke(entry, new GBaseEntryChangedEventArgs(columnName, value), GBaseEntryChangedCallback, null); - } - - /// - /// Raise the GBaseEntry removed ( event without args) - /// - /// The entry (sender) - protected void RaiseGBaseEntryRemoved(object entry) - { - GBaseEntryChanged?.BeginInvoke(entry, null, GBaseEntryChangedCallback, null); - } - - /// - /// Callback for the event - /// - /// The - private void GBaseEntryChangedCallback(IAsyncResult asyncResult) - { - GBaseEntryChanged?.EndInvoke(asyncResult); //TestMe: Does this work? Or is there something to be done with the asyncResult + GBaseEntryChanged?.Invoke(entry, new GBaseEntryChangedEventArgs(columnName, value)); } } } \ No newline at end of file