Esempio n. 1
0
        public async Task <IActionResult> Get(int id)
        {
            DicService c = new DicService();

            var responseContent = await c.getById(id);

            return(Ok(responseContent));
        }
Esempio n. 2
0
 public HomeController(ReportAppService reportApp, MenuService moduleApp, DicService dicItemApp, RoleService roleApp, OrgService orgApp)
 {
     ReportApp  = reportApp;
     ModuleApp  = moduleApp;
     DicItemApp = dicItemApp;
     RoleApp    = roleApp;
     OrgApp     = orgApp;
 }
Esempio n. 3
0
 public RPCServiceProxy(Uri uri, int links = 4, int retry = 5, int timeOut = 10 *1000)
 {
     ExceptionCollector.OnErr += ExceptionCollector_OnErr;
     _serviceConsumer          = new ServiceConsumer(uri, links, retry, timeOut);
     _groupService             = new GroupService(_serviceConsumer);
     _helloService             = new HelloService(_serviceConsumer);
     _dicService     = new DicService(_serviceConsumer);
     _genericService = new GenericService(_serviceConsumer);
 }
Esempio n. 4
0
 public RPCServiceProxy(string uri, int links = 4, int retry = 5, int timeOut = 10 * 1000)
 {
     ExceptionCollector.OnErr += ExceptionCollector_OnErr;
     _serviceConsumer          = new ServiceConsumer(new Uri(uri), links, retry, timeOut);
     _En = new EnumService(_serviceConsumer);
     _Gr = new GroupService(_serviceConsumer);
     _He = new HelloService(_serviceConsumer);
     _Di = new DicService(_serviceConsumer);
     _Ge = new GenericService(_serviceConsumer);
 }
Esempio n. 5
0
 public ItemsTypeController(DicService app, DicService dicItemApp)
 {
     App        = app;
     DicItemApp = dicItemApp;
 }
Esempio n. 6
0
 public ItemsDataController(DicService app) => App = app;