123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using SuperSocket.SocketBase.Logging;
- using SuperSocket.SocketBase.Command;
- using SuperSocket.SocketBase.Protocol;
- namespace SuperSocket.SocketBase.Provider
- {
-
-
-
- [Serializable]
- public class ProviderKey
- {
-
-
-
-
-
-
- public string Name { get; private set; }
-
-
-
-
-
-
- public Type Type { get; private set; }
- private ProviderKey()
- {
- }
- static ProviderKey()
- {
- ServerType = new ProviderKey { Name = "ServerType", Type = typeof(IAppServer) };
- SocketServerFactory = new ProviderKey { Name = "SocketServerFactory", Type = typeof(ISocketServerFactory) };
- ConnectionFilter = new ProviderKey { Name = "ConnectionFilter", Type = typeof(IConnectionFilter) };
- LogFactory = new ProviderKey { Name = "LogFactory", Type = typeof(ILogFactory) };
- ReceiveFilterFactory = new ProviderKey { Name = "ReceiveFilterFactory", Type = typeof(IReceiveFilterFactory) };
- CommandLoader = new ProviderKey { Name = "CommandLoader", Type = typeof(ICommandLoader) };
- }
-
-
-
- public static ProviderKey ServerType { get; private set; }
-
-
-
- public static ProviderKey SocketServerFactory { get; private set; }
-
-
-
- public static ProviderKey ConnectionFilter { get; private set; }
-
-
-
- public static ProviderKey LogFactory { get; private set; }
-
-
-
- public static ProviderKey ReceiveFilterFactory { get; private set; }
-
-
-
- public static ProviderKey CommandLoader { get; private set; }
- }
- }
|