diff --git a/src/NexNet.Backplane.Garnet/NexNet.Backplane.Garnet.csproj b/src/NexNet.Backplane.Garnet/NexNet.Backplane.Garnet.csproj new file mode 100644 index 00000000..65e0096f --- /dev/null +++ b/src/NexNet.Backplane.Garnet/NexNet.Backplane.Garnet.csproj @@ -0,0 +1,18 @@ + + + + net9.0 + enable + enable + NexNet.Backplane.Garnet + + + + + + + + + + + diff --git a/src/NexNet.Backplane.Garnet/RedisBackplaneClient.cs b/src/NexNet.Backplane.Garnet/RedisBackplaneClient.cs new file mode 100644 index 00000000..c0a40122 --- /dev/null +++ b/src/NexNet.Backplane.Garnet/RedisBackplaneClient.cs @@ -0,0 +1,25 @@ +using Garnet; +using Garnet.client; +using Garnet.server; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Logging.Console; + +namespace NexNet.Backplane.Garnet; + +public class RedisBackplaneClient : IBackplaneClient +{ + + public RedisBackplaneClient() + { + + } + public ValueTask ConnectAsync() + { + throw new NotImplementedException(); + } + + public ValueTask DisconnectAsync() + { + throw new NotImplementedException(); + } +} diff --git a/src/NexNet.sln b/src/NexNet.sln index 241df640..fb8765c9 100644 --- a/src/NexNet.sln +++ b/src/NexNet.sln @@ -38,6 +38,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NexNetSample.Asp.Server", " EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NexNetSample.Asp.Client", "Samples\NexNetSample.Asp.Client\NexNetSample.Asp.Client.csproj", "{2A08A183-A116-432C-A26A-7C4CF3A35871}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NexNet.Backplane.Garnet", "NexNet.Backplane.Garnet\NexNet.Backplane.Garnet.csproj", "{5BEB7C1C-559C-4A5E-93F3-85E16C592ADC}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -88,6 +90,10 @@ Global {2A08A183-A116-432C-A26A-7C4CF3A35871}.Debug|Any CPU.Build.0 = Debug|Any CPU {2A08A183-A116-432C-A26A-7C4CF3A35871}.Release|Any CPU.ActiveCfg = Release|Any CPU {2A08A183-A116-432C-A26A-7C4CF3A35871}.Release|Any CPU.Build.0 = Release|Any CPU + {5BEB7C1C-559C-4A5E-93F3-85E16C592ADC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5BEB7C1C-559C-4A5E-93F3-85E16C592ADC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5BEB7C1C-559C-4A5E-93F3-85E16C592ADC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5BEB7C1C-559C-4A5E-93F3-85E16C592ADC}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/NexNet/Backplane/IBackplaneClient.cs b/src/NexNet/Backplane/IBackplaneClient.cs new file mode 100644 index 00000000..c6297136 --- /dev/null +++ b/src/NexNet/Backplane/IBackplaneClient.cs @@ -0,0 +1,11 @@ +using System.Threading.Tasks; + +namespace NexNet.Backplane; + +public interface IBackplaneClient +{ + ValueTask ConnectAsync(); + ValueTask DisconnectAsync(); + + +}