1234567891011121314151617181920212223 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace InABox.Client.IPC
- {
- public static class IPCClientFactory
- {
- private static Dictionary<string, IPCClient> Clients = new();
- public static IPCClient GetClient(string pipeName)
- {
- if (!Clients.TryGetValue(pipeName, out var client))
- {
- client = new IPCClient(pipeName);
- Clients[pipeName] = client;
- }
- return client;
- }
- }
- }
|