12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using SuperSocket.SocketBase.Protocol;
- namespace SuperSocket.SocketBase.Command
- {
-
-
-
- public interface ICommand
- {
-
-
-
- string Name { get; }
- }
-
-
-
-
-
- public interface ICommand<TAppSession, TRequestInfo> : ICommand
- where TRequestInfo : IRequestInfo
- where TAppSession : IAppSession
- {
-
-
-
-
-
- void ExecuteCommand(TAppSession session, TRequestInfo requestInfo);
- }
-
-
-
-
-
- public class MockupCommand<TAppSession, TRequestInfo> : ICommand<TAppSession, TRequestInfo>
- where TRequestInfo : IRequestInfo
- where TAppSession : IAppSession
- {
-
-
-
-
- public MockupCommand(string name)
- {
- Name = name;
- }
-
-
-
-
-
- public void ExecuteCommand(TAppSession session, TRequestInfo requestInfo)
- {
- }
-
-
-
- public string Name { get; private set; }
- }
- }
|