コード例 #1
0
ファイル: LandController.cs プロジェクト: Nelliech/GospoRol
 public LandController(ILandService landService, IFieldService fieldService, IHttpContextAccessor httpContextAccessor)
 {
     _landService         = landService;
     _fieldService        = fieldService;
     _httpContextAccessor = httpContextAccessor;
     userId = _httpContextAccessor.HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value;
 }
コード例 #2
0
ファイル: FieldController.cs プロジェクト: Nelliech/GospoRol
 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;
 }
コード例 #3
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);
        }
コード例 #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);
        }
コード例 #5
0
ファイル: LandHandlers.cs プロジェクト: BogusCurry/opensim-1
 public LandHandlers(ILandService service)
 {
     m_LocalService = service;
 }
コード例 #6
0
ファイル: LandHandlers.cs プロジェクト: N3X15/VoxelSim
 public LandHandlers(ILandService service)
 {
     m_LocalService = service;
 }