コード例 #1
0
        internal ControllerData(TypeData controllerType, ApiData apiData, bool deprecated)
        {
            _apiVersion = new Lazy <ApiVersion>(() => ApiVersionFactory.GetControllerApiVersion(this));
            _headers    = new Lazy <IReadOnlyList <RequestParameterData> >(() => HeaderFactory.GetControllerHeaders(this));
            _name       = new Lazy <string>(() => NameFactory.GetControllerName(this));
            _endpoints  = new Lazy <IReadOnlyList <EndpointData> >(() => EndpointFactory.GetControllerEndpoints(this).ToArray());

            ControllerType = controllerType;
            ApiData        = apiData;
            Deprecated     = deprecated;
        }