ExcutorManager.cs 460 B

12345678910111213141516
  1. using System;
  2. using System.Collections.Generic;
  3. namespace LJLib.Net.SPI.Server
  4. {
  5. internal sealed class ExcutorManager : LJServerBase
  6. {
  7. private Dictionary<string, ExcutorBase> excutors = new Dictionary<string, ExcutorBase>();
  8. public void AddMap(string apiName, Type requestType, ExcutorBase excutor)
  9. {
  10. excutors[apiName] = excutor;
  11. this.AddMap(apiName, requestType, excutor.Excute);
  12. }
  13. }
  14. }