-
-
-@code {
- public string TestStatus = "Pending";
-
- private int result;
-
- private async Task HandleRunTest()
- {
- result = 0;
-
- await RunTest();
- ValidateTest();
- }
-
- public async Task RunTest()
- {
- var list = CreateEntities();
-
- GC.Collect();
-
- // GC won't collect until we release the thread, so we offload
- // the rest of it to be completed async.
- await Task.Delay(10);
-
- foreach (var guid in list)
- {
- var value = EventHorizonBlazorInterop.Get(guid, "X");
- if (value is not null)
- result++;
- }
- }
-
- static List CreateEntities()
- {
- var list = new List();
-
- for (var i = 0; i < 100; i++)
- {
- var entity = EventHorizonBlazorInterop.FuncClass(
- e => new Vector3CachedEntity(e),
- new object[]
- {
- new[] { "funcClass", "func" },
- }
- );
-
- list.Add(entity.___guid);
- }
-
- return list;
- }
-
- public void ValidateTest()
- {
- if (result == 0)
- {
- TestStatus = "Passed";
- }
- else
- {
- TestStatus = "Failed";
- }
- }
-
-}
diff --git a/EventHorizon.Blazor.Interop.Sample/Pages/Testing/InteropTesting/Scenarios/InteropScenariosPage.razor b/EventHorizon.Blazor.Interop.Sample/Pages/Testing/InteropTesting/Scenarios/InteropScenariosPage.razor
index fef91dd..40d141d 100644
--- a/EventHorizon.Blazor.Interop.Sample/Pages/Testing/InteropTesting/Scenarios/InteropScenariosPage.razor
+++ b/EventHorizon.Blazor.Interop.Sample/Pages/Testing/InteropTesting/Scenarios/InteropScenariosPage.razor
@@ -4,5 +4,4 @@
-
diff --git a/EventHorizon.Blazor.Interop.sln b/EventHorizon.Blazor.Interop.sln
index 1f07f97..a39073b 100644
--- a/EventHorizon.Blazor.Interop.sln
+++ b/EventHorizon.Blazor.Interop.sln
@@ -9,6 +9,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EventHorizon.Blazor.Interop
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{BDF1BB12-22E3-4E8F-85E9-6DA870B48917}"
ProjectSection(SolutionItems) = preProject
+ .editorconfig = .editorconfig
.gitignore = .gitignore
GitVersion.yml = GitVersion.yml
README.md = README.md
diff --git a/EventHorizon.Blazor.Interop/CachedEntity.cs b/EventHorizon.Blazor.Interop/CachedEntity.cs
index d75cbe0..b9a06f4 100644
--- a/EventHorizon.Blazor.Interop/CachedEntity.cs
+++ b/EventHorizon.Blazor.Interop/CachedEntity.cs
@@ -1,14 +1,15 @@
-using System.Text.Json.Serialization;
-
-namespace EventHorizon.Blazor.Interop
+namespace EventHorizon.Blazor.Interop
{
+ using System.Text.Json.Serialization;
+
///
/// A base class that is created as an easy way to interface with Client side implementation.
///
[JsonConverter(typeof(CachedEntityConverter))]
- public class CachedEntity : ICachedEntity
+ public class CachedEntity
+ : ICachedEntity
{
///
- public CachedEntityRef ___guid { get; set; }
+ public string ___guid { get; set; }
}
}
diff --git a/EventHorizon.Blazor.Interop/CachedEntityConverter.cs b/EventHorizon.Blazor.Interop/CachedEntityConverter.cs
index bab3283..4de0158 100644
--- a/EventHorizon.Blazor.Interop/CachedEntityConverter.cs
+++ b/EventHorizon.Blazor.Interop/CachedEntityConverter.cs
@@ -1,9 +1,9 @@
-using System;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-
-namespace EventHorizon.Blazor.Interop
+namespace EventHorizon.Blazor.Interop
{
+ using System;
+ using System.Text.Json;
+ using System.Text.Json.Serialization;
+
///
/// This helps with the payload of passing a CacheEntity between the C# and client.
///
@@ -38,7 +38,7 @@ JsonSerializerOptions options
switch (propertyName)
{
case "___guid":
- entity.___guid = new CachedEntityRef(reader.GetString());
+ entity.___guid = reader.GetString();
break;
}
}
diff --git a/EventHorizon.Blazor.Interop/CachedEntityRef.cs b/EventHorizon.Blazor.Interop/CachedEntityRef.cs
deleted file mode 100644
index d0169ab..0000000
--- a/EventHorizon.Blazor.Interop/CachedEntityRef.cs
+++ /dev/null
@@ -1,84 +0,0 @@
-using System;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-
-namespace EventHorizon.Blazor.Interop
-{
- ///
- /// Represents a root reference to JS object. The JS object will live as long as this reference exists,
- /// and once it is collected, the JS object will also be released for collection by the JS runtime.
- ///
- [JsonConverter(typeof(CachedEntityRefConverter))]
- public sealed class CachedEntityRef : IEquatable
- {
- readonly string _guid;
-
- internal CachedEntityRef(string guid)
- {
- _guid = guid;
- }
-
- ///
- ~CachedEntityRef()
- {
- EventHorizonBlazorInterop.RemoveEntity(_guid);
- }
-
- ///
- public override string ToString()
- {
- return _guid;
- }
-
- ///
- public override int GetHashCode()
- {
- return (_guid != null ? _guid.GetHashCode() : 0);
- }
-
- ///
- public bool Equals(CachedEntityRef other)
- {
- return _guid == other?._guid;
- }
-
- ///
- public override bool Equals(object obj)
- {
- if (ReferenceEquals(null, obj)) return false;
- if (ReferenceEquals(this, obj)) return true;
- return obj.GetType() == GetType() && Equals((CachedEntityRef) obj);
- }
-
- ///
- /// Converts an instance of this object to string.
- ///
- /// A cached entity reference.
- /// The internal UUID of the cached entity.
- public static implicit operator string(CachedEntityRef obj) => obj.ToString();
- }
-
-
- ///
- /// This helps with the payload of passing a CacheEntity between the C# and client.
- ///
- ///
- internal class CachedEntityRefConverter : JsonConverter
- {
- ///
- public override bool CanConvert(Type typeToConvert) =>
- typeof(CachedEntityRef).IsAssignableFrom(typeToConvert);
-
- ///
- public override CachedEntityRef Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
- {
- return reader.Read() ? new CachedEntityRef(reader.GetString()) : null;
- }
-
- ///
- public override void Write(Utf8JsonWriter writer, CachedEntityRef value, JsonSerializerOptions options)
- {
- writer.WriteStringValue(value.ToString());
- }
- }
-}
diff --git a/EventHorizon.Blazor.Interop/Callbacks/ActionCallback.cs b/EventHorizon.Blazor.Interop/Callbacks/ActionCallback.cs
index 363ecd2..b3c1a9b 100644
--- a/EventHorizon.Blazor.Interop/Callbacks/ActionCallback.cs
+++ b/EventHorizon.Blazor.Interop/Callbacks/ActionCallback.cs
@@ -1,9 +1,9 @@
-using System;
-using System.Threading.Tasks;
-using Microsoft.JSInterop;
-
-namespace EventHorizon.Blazor.Interop.Callbacks
+namespace EventHorizon.Blazor.Interop.Callbacks
{
+ using System;
+ using System.Threading.Tasks;
+ using Microsoft.JSInterop;
+
///
/// A platform provided abstraction to help with creation of a action that will trigger when called from the Client side.
///
diff --git a/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs1.cs b/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs1.cs
index b7713a0..b404d7a 100644
--- a/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs1.cs
+++ b/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs1.cs
@@ -1,9 +1,9 @@
-using System;
-using System.Threading.Tasks;
-using Microsoft.JSInterop;
-
-namespace EventHorizon.Blazor.Interop.Callbacks
+namespace EventHorizon.Blazor.Interop.Callbacks
{
+ using System;
+ using System.Threading.Tasks;
+ using Microsoft.JSInterop;
+
///
/// A platform provided abstraction to help with creation of a action that will trigger when called from the Client side.
///
diff --git a/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs10.cs b/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs10.cs
index 10d1299..29b8f89 100644
--- a/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs10.cs
+++ b/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs10.cs
@@ -1,9 +1,9 @@
-using System;
-using System.Threading.Tasks;
-using Microsoft.JSInterop;
-
-namespace EventHorizon.Blazor.Interop.Callbacks
+namespace EventHorizon.Blazor.Interop.Callbacks
{
+ using System;
+ using System.Threading.Tasks;
+ using Microsoft.JSInterop;
+
///
/// A platform provided abstraction to help with creation of a action that will trigger when called from the Client side.
///
diff --git a/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs2.cs b/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs2.cs
index 80092d7..2865b58 100644
--- a/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs2.cs
+++ b/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs2.cs
@@ -1,9 +1,9 @@
-using System;
-using System.Threading.Tasks;
-using Microsoft.JSInterop;
-
-namespace EventHorizon.Blazor.Interop.Callbacks
+namespace EventHorizon.Blazor.Interop.Callbacks
{
+ using System;
+ using System.Threading.Tasks;
+ using Microsoft.JSInterop;
+
///
/// A platform provided abstraction to help with creation of a action that will trigger when called from the Client side.
///
diff --git a/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs3.cs b/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs3.cs
index 57d334c..1395fb7 100644
--- a/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs3.cs
+++ b/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs3.cs
@@ -1,9 +1,9 @@
-using System;
-using System.Threading.Tasks;
-using Microsoft.JSInterop;
-
-namespace EventHorizon.Blazor.Interop.Callbacks
+namespace EventHorizon.Blazor.Interop.Callbacks
{
+ using System;
+ using System.Threading.Tasks;
+ using Microsoft.JSInterop;
+
///
/// A platform provided abstraction to help with creation of a action that will trigger when called from the Client side.
///
diff --git a/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs4.cs b/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs4.cs
index bee55e4..0e34ece 100644
--- a/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs4.cs
+++ b/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs4.cs
@@ -1,9 +1,9 @@
-using System;
-using System.Threading.Tasks;
-using Microsoft.JSInterop;
-
-namespace EventHorizon.Blazor.Interop.Callbacks
+namespace EventHorizon.Blazor.Interop.Callbacks
{
+ using System;
+ using System.Threading.Tasks;
+ using Microsoft.JSInterop;
+
///
/// A platform provided abstraction to help with creation of a action that will trigger when called from the Client side.
///
diff --git a/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs5.cs b/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs5.cs
index 63367e9..2a8a3a9 100644
--- a/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs5.cs
+++ b/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs5.cs
@@ -1,9 +1,9 @@
-using System;
-using System.Threading.Tasks;
-using Microsoft.JSInterop;
-
-namespace EventHorizon.Blazor.Interop.Callbacks
+namespace EventHorizon.Blazor.Interop.Callbacks
{
+ using System;
+ using System.Threading.Tasks;
+ using Microsoft.JSInterop;
+
///
/// A platform provided abstraction to help with creation of a action that will trigger when called from the Client side.
///
diff --git a/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs6.cs b/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs6.cs
index 0ca1d10..dafe7cb 100644
--- a/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs6.cs
+++ b/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs6.cs
@@ -1,9 +1,9 @@
-using System;
-using System.Threading.Tasks;
-using Microsoft.JSInterop;
-
-namespace EventHorizon.Blazor.Interop.Callbacks
+namespace EventHorizon.Blazor.Interop.Callbacks
{
+ using System;
+ using System.Threading.Tasks;
+ using Microsoft.JSInterop;
+
///
/// A platform provided abstraction to help with creation of a action that will trigger when called from the Client side.
///
diff --git a/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs7.cs b/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs7.cs
index 02565d6..0335753 100644
--- a/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs7.cs
+++ b/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs7.cs
@@ -1,9 +1,9 @@
-using System;
-using System.Threading.Tasks;
-using Microsoft.JSInterop;
-
-namespace EventHorizon.Blazor.Interop.Callbacks
+namespace EventHorizon.Blazor.Interop.Callbacks
{
+ using System;
+ using System.Threading.Tasks;
+ using Microsoft.JSInterop;
+
///
/// A platform provided abstraction to help with creation of a action that will trigger when called from the Client side.
///
diff --git a/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs8.cs b/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs8.cs
index ba42ec9..36d6957 100644
--- a/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs8.cs
+++ b/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs8.cs
@@ -1,9 +1,9 @@
-using System;
-using System.Threading.Tasks;
-using Microsoft.JSInterop;
-
-namespace EventHorizon.Blazor.Interop.Callbacks
+namespace EventHorizon.Blazor.Interop.Callbacks
{
+ using System;
+ using System.Threading.Tasks;
+ using Microsoft.JSInterop;
+
///
/// A platform provided abstraction to help with creation of a action that will trigger when called from the Client side.
///
diff --git a/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs9.cs b/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs9.cs
index 1fa5457..8dbd5a1 100644
--- a/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs9.cs
+++ b/EventHorizon.Blazor.Interop/Callbacks/ActionCallbackArgs9.cs
@@ -1,9 +1,9 @@
-using System;
-using System.Threading.Tasks;
-using Microsoft.JSInterop;
-
-namespace EventHorizon.Blazor.Interop.Callbacks
+namespace EventHorizon.Blazor.Interop.Callbacks
{
+ using System;
+ using System.Threading.Tasks;
+ using Microsoft.JSInterop;
+
///
/// A platform provided abstraction to help with creation of a action that will trigger when called from the Client side.
///
diff --git a/EventHorizon.Blazor.Interop/EventHorizonBlazorInterop.cs b/EventHorizon.Blazor.Interop/EventHorizonBlazorInterop.cs
index 3d24857..3d90258 100644
--- a/EventHorizon.Blazor.Interop/EventHorizonBlazorInterop.cs
+++ b/EventHorizon.Blazor.Interop/EventHorizonBlazorInterop.cs
@@ -1,7 +1,6 @@
namespace EventHorizon.Blazor.Interop
{
using System;
- using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using Microsoft.JSInterop;
using Microsoft.JSInterop.WebAssembly;
@@ -118,7 +117,7 @@ params object[] args
"blazorInterop.funcClass",
args
);
- return classBuilder(new CachedEntity { ___guid = new CachedEntityRef(cacheKey) });
+ return classBuilder(new CachedEntity { ___guid = cacheKey });
}
///
@@ -192,7 +191,7 @@ params object[] args
var index = 0;
foreach (var result in results)
{
- array[index] = classBuilder(new CachedEntity { ___guid = new CachedEntityRef(result) });
+ array[index] = classBuilder(new CachedEntity { ___guid = result });
index++;
}
@@ -287,7 +286,7 @@ Func classBuilder
)
);
- return classBuilder(new CachedEntity { ___guid = new CachedEntityRef(result) });
+ return classBuilder(new CachedEntity { ___guid = result });
}
///
@@ -331,7 +330,7 @@ Func classBuilder
var index = 0;
foreach (var result in results)
{
- array[index] = classBuilder(new CachedEntity { ___guid = new CachedEntityRef(result) });
+ array[index] = classBuilder(new CachedEntity { ___guid = result });
index++;
}
@@ -409,10 +408,10 @@ public static ICachedEntity New(
params object[] args
)
{
- var cacheRef = new CachedEntityRef(RUNTIME.Invoke(
+ var cacheRef = RUNTIME.Invoke(
"blazorInterop.new",
args
- ));
+ );
return new CachedEntity { ___guid = cacheRef };
}
@@ -536,12 +535,10 @@ public static ICachedEntity CacheEntity(
string prop
)
{
- var cacheRef = new CachedEntityRef(
- RUNTIME.Invoke(
- "blazorInterop.cacheEntity",
- identifier,
- prop
- )
+ var cacheRef = RUNTIME.Invoke(
+ "blazorInterop.cacheEntity",
+ identifier,
+ prop
);
return new CachedEntity { ___guid = cacheRef };
@@ -619,7 +616,7 @@ params object[] args
"blazorInterop.taskClass",
args
);
- return classBuilder(new CachedEntity { ___guid = new CachedEntityRef(cacheKey) });
+ return classBuilder(new CachedEntity { ___guid = cacheKey });
}
///
@@ -697,7 +694,7 @@ params object[] args
var index = 0;
foreach (var result in results)
{
- array[index] = classBuilder(new CachedEntity { ___guid = new CachedEntityRef(result) });
+ array[index] = classBuilder(new CachedEntity { ___guid = result });
index++;
}
diff --git a/EventHorizon.Blazor.Interop/ICachedEntity.cs b/EventHorizon.Blazor.Interop/ICachedEntity.cs
index 3660762..0b9c8a0 100644
--- a/EventHorizon.Blazor.Interop/ICachedEntity.cs
+++ b/EventHorizon.Blazor.Interop/ICachedEntity.cs
@@ -8,6 +8,6 @@ public interface ICachedEntity
///
/// The Client identifier for this specific entity.
///
- CachedEntityRef ___guid { get; set; }
+ string ___guid { get; set; }
}
}
diff --git a/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallback.cs b/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallback.cs
index a41cf7f..78c1445 100644
--- a/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallback.cs
+++ b/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallback.cs
@@ -1,12 +1,13 @@
-using Microsoft.JSInterop;
-using System;
-
-namespace EventHorizon.Blazor.Interop.ResultCallbacks
+namespace EventHorizon.Blazor.Interop.ResultCallbacks
{
+ using System;
+ using Microsoft.JSInterop;
+
///
/// A platform provided abstraction to help with creation of a action that will trigger when called from the Client side.
/// Includes Result when Called
///
+ ///
public class ActionResultCallback
{
///
@@ -22,7 +23,7 @@ public class ActionResultCallback
///
public string method => "HandleCallback";
- private Func _callback;
+ private readonly Func _callback;
///
/// Create a new Action callback representation that will be triggered when the Client calls the method.
diff --git a/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs1.cs b/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs1.cs
index 8a08b3c..609f5e2 100644
--- a/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs1.cs
+++ b/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs1.cs
@@ -1,8 +1,8 @@
-using Microsoft.JSInterop;
-using System;
-
-namespace EventHorizon.Blazor.Interop.ResultCallbacks
+namespace EventHorizon.Blazor.Interop.ResultCallbacks
{
+ using System;
+ using Microsoft.JSInterop;
+
///
/// A platform provided abstraction to help with creation of a action that will trigger when called from the Client side.
///
diff --git a/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs10.cs b/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs10.cs
index b780afa..66d39a7 100644
--- a/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs10.cs
+++ b/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs10.cs
@@ -1,8 +1,8 @@
-using Microsoft.JSInterop;
-using System;
-
-namespace EventHorizon.Blazor.Interop.ResultCallbacks
+namespace EventHorizon.Blazor.Interop.ResultCallbacks
{
+ using System;
+ using Microsoft.JSInterop;
+
///
/// A platform provided abstraction to help with creation of a action that will trigger when called from the Client side.
///
@@ -16,6 +16,7 @@ namespace EventHorizon.Blazor.Interop.ResultCallbacks
///
///
///
+ ///
public class ActionResultCallback
{
///
diff --git a/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs2.cs b/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs2.cs
index cb5acad..3bad4e7 100644
--- a/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs2.cs
+++ b/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs2.cs
@@ -1,13 +1,14 @@
-using Microsoft.JSInterop;
-using System;
-
-namespace EventHorizon.Blazor.Interop.ResultCallbacks
+namespace EventHorizon.Blazor.Interop.ResultCallbacks
{
+ using System;
+ using Microsoft.JSInterop;
+
///
/// A platform provided abstraction to help with creation of a action that will trigger when called from the Client side.
///
///
///
+ ///
public class ActionResultCallback
{
///
diff --git a/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs3.cs b/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs3.cs
index cd0fe3a..a466441 100644
--- a/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs3.cs
+++ b/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs3.cs
@@ -1,14 +1,15 @@
-using Microsoft.JSInterop;
-using System;
-
-namespace EventHorizon.Blazor.Interop.ResultCallbacks
+namespace EventHorizon.Blazor.Interop.ResultCallbacks
{
+ using System;
+ using Microsoft.JSInterop;
+
///
/// A platform provided abstraction to help with creation of a action that will trigger when called from the Client side.
///
///
///
///
+ ///
public class ActionResultCallback
{
///
diff --git a/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs4.cs b/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs4.cs
index c1c3ff0..e76d3b0 100644
--- a/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs4.cs
+++ b/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs4.cs
@@ -1,8 +1,8 @@
-using Microsoft.JSInterop;
-using System;
-
-namespace EventHorizon.Blazor.Interop.ResultCallbacks
+namespace EventHorizon.Blazor.Interop.ResultCallbacks
{
+ using System;
+ using Microsoft.JSInterop;
+
///
/// A platform provided abstraction to help with creation of a action that will trigger when called from the Client side.
///
@@ -10,6 +10,7 @@ namespace EventHorizon.Blazor.Interop.ResultCallbacks
///
///
///
+ ///
public class ActionResultCallback
{
///
diff --git a/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs5.cs b/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs5.cs
index 32979d4..7cc54af 100644
--- a/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs5.cs
+++ b/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs5.cs
@@ -1,8 +1,8 @@
-using Microsoft.JSInterop;
-using System;
-
-namespace EventHorizon.Blazor.Interop.ResultCallbacks
+namespace EventHorizon.Blazor.Interop.ResultCallbacks
{
+ using System;
+ using Microsoft.JSInterop;
+
///
/// A platform provided abstraction to help with creation of a action that will trigger when called from the Client side.
///
@@ -11,6 +11,7 @@ namespace EventHorizon.Blazor.Interop.ResultCallbacks
///
///
///
+ ///
public class ActionResultCallback
{
///
diff --git a/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs6.cs b/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs6.cs
index 79d0439..6cf4f40 100644
--- a/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs6.cs
+++ b/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs6.cs
@@ -1,8 +1,8 @@
-using Microsoft.JSInterop;
-using System;
-
-namespace EventHorizon.Blazor.Interop.ResultCallbacks
+namespace EventHorizon.Blazor.Interop.ResultCallbacks
{
+ using System;
+ using Microsoft.JSInterop;
+
///
/// A platform provided abstraction to help with creation of a action that will trigger when called from the Client side.
///
@@ -12,6 +12,7 @@ namespace EventHorizon.Blazor.Interop.ResultCallbacks
///
///
///
+ ///
public class ActionResultCallback
{
///
diff --git a/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs7.cs b/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs7.cs
index 40bc389..469e7de 100644
--- a/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs7.cs
+++ b/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs7.cs
@@ -1,8 +1,8 @@
-using Microsoft.JSInterop;
-using System;
-
-namespace EventHorizon.Blazor.Interop.ResultCallbacks
+namespace EventHorizon.Blazor.Interop.ResultCallbacks
{
+ using System;
+ using Microsoft.JSInterop;
+
///
/// A platform provided abstraction to help with creation of a action that will trigger when called from the Client side.
///
@@ -13,6 +13,7 @@ namespace EventHorizon.Blazor.Interop.ResultCallbacks
///
///
///
+ ///
public class ActionResultCallback
{
///
diff --git a/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs8.cs b/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs8.cs
index 6e797ba..5f48fa5 100644
--- a/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs8.cs
+++ b/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs8.cs
@@ -1,8 +1,8 @@
-using Microsoft.JSInterop;
-using System;
-
-namespace EventHorizon.Blazor.Interop.ResultCallbacks
+namespace EventHorizon.Blazor.Interop.ResultCallbacks
{
+ using System;
+ using Microsoft.JSInterop;
+
///
/// A platform provided abstraction to help with creation of a action that will trigger when called from the Client side.
///
@@ -14,6 +14,7 @@ namespace EventHorizon.Blazor.Interop.ResultCallbacks
///
///
///
+ ///
public class ActionResultCallback
{
///
diff --git a/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs9.cs b/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs9.cs
index fa8723d..f7ef8db 100644
--- a/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs9.cs
+++ b/EventHorizon.Blazor.Interop/ResultCallbacks/ActionResultCallbackArgs9.cs
@@ -1,8 +1,8 @@
-using Microsoft.JSInterop;
-using System;
-
-namespace EventHorizon.Blazor.Interop.ResultCallbacks
+namespace EventHorizon.Blazor.Interop.ResultCallbacks
{
+ using System;
+ using Microsoft.JSInterop;
+
///
/// A platform provided abstraction to help with creation of a action that will trigger when called from the Client side.
///
@@ -15,6 +15,7 @@ namespace EventHorizon.Blazor.Interop.ResultCallbacks
///
///
///
+ ///
public class ActionResultCallback
{
///