public StaticResourceEndPointMethodHandler(EndPointServices services,
                                            IEndPointMethodConfigurationReadOnly configuration, IStaticResource staticResource)
 {
     Services        = services;
     Configuration   = configuration;
     _staticResource = staticResource;
 }
 public DocumentationEndPointInspector(IOpenApiGenerationService openApiGenerationService, ISwaggerStaticResourceProvider swaggerStaticResourceProvider, EndPointServices endPointServices, IConfigurationManager configurationManager)
 {
     _openApiGenerationService      = openApiGenerationService;
     _swaggerStaticResourceProvider = swaggerStaticResourceProvider;
     _endPointServices     = endPointServices;
     _configurationManager = configurationManager;
 }
 public OpenApiJsonEndPointMethodHandler(EndPointServices services,
                                         IEndPointMethodConfigurationReadOnly configuration,
                                         IOpenApiGenerationService openApiGenerationService)
 {
     Services                  = services;
     Configuration             = configuration;
     _openApiGenerationService = openApiGenerationService;
 }
Exemple #4
0
 public ApplicationConfigurationService(EndPointServices services,
                                        IConfigurationManager configurationManager,
                                        IAuthorizationImplementationProvider authorizationImplementationProvider,
                                        IWrappedResultTypeCreator wrappedResultTypeCreator,
                                        ICompressionSelectorService compressionSelectorService,
                                        IEnumerable <IApiEndPointInspector> endPointInspectors)
 {
     _services             = services;
     _configurationManager = configurationManager;
     _authorizationImplementationProvider = authorizationImplementationProvider;
     _wrappedResultTypeCreator            = wrappedResultTypeCreator;
     _compressionSelectorService          = compressionSelectorService;
     _endPointInspectors = endPointInspectors.ToArray();
 }
        /// <inheritdoc />
        public StateBasedEndPointMethodHandler(EndPointMethodConfiguration configuration, EndPointServices services)
            : base(configuration, services)
        {
            _startingState = RequestState.ExecuteTask;

            if (configuration.Authorizations != null && configuration.Authorizations.Count > 0)
            {
                _startingState = RequestState.CheckAuth;
            }
            else if (configuration.Filters != null &&
                     configuration.Filters.Count > 0)
            {
                _startingState = RequestState.CreateFilters;
            }
            else if (configuration.Parameters.Count > 0)
            {
                _startingState = RequestState.BindParameters;
            }
        }
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="redirectPath"></param>
 /// <param name="configuration"></param>
 /// <param name="services"></param>
 public RedirectEndPointHandler(string redirectPath, IEndPointMethodConfigurationReadOnly configuration, EndPointServices services)
 {
     _redirectPath = redirectPath;
     Configuration = configuration;
     Services      = services;
 }
Exemple #7
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="configuration"></param>
 /// <param name="services"></param>
 public NoParamsEndPointMethodHandler(EndPointMethodConfiguration configuration, EndPointServices services) : base(configuration, services)
 {
 }
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="configuration"></param>
 /// <param name="services"></param>
 protected BaseContentEndPointMethodHandler(EndPointMethodConfiguration configuration, EndPointServices services)
 {
     Configuration = configuration;
     Services      = services;
     HttpMethod    = configuration.RouteInformation.Method;
 }