Exemplo n.º 1
0
 public LandController(ILandService landService, IFieldService fieldService, IHttpContextAccessor httpContextAccessor)
 {
     _landService         = landService;
     _fieldService        = fieldService;
     _httpContextAccessor = httpContextAccessor;
     userId = _httpContextAccessor.HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value;
 }
Exemplo n.º 2
0
 public FieldController(IFieldService fieldService, ILandService landService, IHttpContextAccessor htppContextAccessor,
                        IAgriculturalClassService agriculturalClassService)
 {
     _fieldService             = fieldService;
     _landService              = landService;
     _agriculturalClassService = agriculturalClassService;
     _httpContextAccessor      = htppContextAccessor;
     userId = _httpContextAccessor.HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value;
 }
        // TODO : private IAuthenticationService m_AuthenticationService;

        public LandServiceInConnector(IConfigSource source, IHttpServer server, ILandService service, IScene scene) :
                base(source, server, String.Empty)
        {
            m_LandService = service;
            if (m_LandService == null)
            {
                m_log.Error("[LAND IN CONNECTOR]: Land service was not provided");
                return;
            }
            
            //bool authentication = neighbourConfig.GetBoolean("RequireAuthentication", false);
            //if (authentication)
            //    m_AuthenticationService = scene.RequestModuleInterface<IAuthenticationService>();

            LandHandlers landHandlers = new LandHandlers(m_LandService);
            server.AddXmlRPCHandler("land_data", landHandlers.GetLandData, false);
        }
Exemplo n.º 4
0
        // TODO : private IAuthenticationService m_AuthenticationService;

        public LandServiceInConnector(IConfigSource source, IHttpServer server, ILandService service, IScene scene) :
            base(source, server, String.Empty)
        {
            m_LandService = service;
            if (m_LandService == null)
            {
                m_log.Error("[LAND IN CONNECTOR]: Land service was not provided");
                return;
            }

            //bool authentication = neighbourConfig.GetBoolean("RequireAuthentication", false);
            //if (authentication)
            //    m_AuthenticationService = scene.RequestModuleInterface<IAuthenticationService>();

            LandHandlers landHandlers = new LandHandlers(m_LandService);

            server.AddXmlRPCHandler("land_data", landHandlers.GetLandData, false);
        }
Exemplo n.º 5
0
 public LandHandlers(ILandService service)
 {
     m_LocalService = service;
 }
Exemplo n.º 6
0
 public LandHandlers(ILandService service)
 {
     m_LocalService = service;
 }