public LandController(ILandService landService, IFieldService fieldService, IHttpContextAccessor httpContextAccessor) { _landService = landService; _fieldService = fieldService; _httpContextAccessor = httpContextAccessor; userId = _httpContextAccessor.HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value; }
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); }
public LandHandlers(ILandService service) { m_LocalService = service; }