Ejemplo n.º 1
0
 public RpcServer(RpcServerConfig config, ILoger loger)
     : base(config, loger)
 {
     rpcConfig = config;
     rpcContainer = new RpcContainer<IServerController>();
     RpcFactory = new ProxyFactory(config);
 }
Ejemplo n.º 2
0
 public ProxyFactory(RpcServerConfig config)
 {
     this.config = config;
     invokeDict  = new ConcurrentDictionary <uint, RpcInvoke>();
 }
Ejemplo n.º 3
0
 public RpcServer(RpcServerConfig config, ILoger loger) : base(config, loger)
 {
     rpcConfig    = config;
     rpcContainer = new RpcContainer <IServerController>();
     RpcFactory   = new ProxyFactory(config);
 }
Ejemplo n.º 4
0
 public ProxyFactory(RpcServerConfig config)
 {
     this.config = config;
     invokeDict = new ConcurrentDictionary<uint, RpcInvoke>();
 }
Ejemplo n.º 5
0
 static void Main(string[] args)
 {
     RpcServerConfig configOne = new RpcServerConfig { ServerId = 1, Name = "one", IP = "127.0.0.1", Port = 8088, BufferSize = 1024, MaxFixedBufferPoolSize = 1024 * 4, MaxConnections = 8000 };
     configOne.BinPath = AppDomain.CurrentDomain.BaseDirectory;
     RpcServer listener = new RpcServer(configOne, loger);
     listener.Start();
     Console.WriteLine("服务区启动成功");
     Console.ReadLine();
 }