コード例 #1
0
        public ToolboxGenerator(IAppContext context, ToolboxPlugin plugin, ILayerService layerService)
        {
            _context      = context ?? throw new ArgumentNullException(nameof(context));
            _plugin       = plugin ?? throw new ArgumentNullException(nameof(plugin));
            _layerService = layerService ?? throw new ArgumentNullException(nameof(layerService));

            Init();
        }
コード例 #2
0
        public ToolboxGenerator(IAppContext context, ToolboxPlugin plugin, ILayerService layerService)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (plugin == null)
            {
                throw new ArgumentNullException("plugin");
            }
            if (layerService == null)
            {
                throw new ArgumentNullException("layerService");
            }

            _context      = context;
            _plugin       = plugin;
            _layerService = layerService;

            Init();
        }