Beispiel #1
0
        public CurrentApiInformation(
            ImmutableLinkedList <Func <IEndPointMethodConfigurationReadOnly, IEnumerable <IEndPointMethodAuthorization> > > authorizations,
            ImmutableLinkedList <Func <IEndPointMethodConfigurationReadOnly, Func <RequestExecutionContext, IRequestFilter> > > filters,
            ImmutableLinkedList <Func <Type, IEnumerable <string> > > prefixes,
            ImmutableLinkedList <Func <MethodInfo, bool> > methodFilters,
            bool supportResponseCompression,
            ExposeDefaultMethod defaultMethod,
            ServiceActivationMethod serviceActivationMethod,
            IServiceProvider serviceProvider,
            IConfigurationManager configurationMethods,
            ImmutableLinkedList <IResponseHeader> headers)

        {
            Authorizations             = authorizations;
            Filters                    = filters;
            Prefixes                   = prefixes;
            MethodFilters              = methodFilters;
            SupportResponseCompression = supportResponseCompression;
            DefaultMethod              = defaultMethod;
            ServiceActivationMethod    = serviceActivationMethod;
            ServiceProvider            = serviceProvider;
            ConfigurationMethods       = configurationMethods;
            Headers                    = headers;
        }
Beispiel #2
0
        /// <inheritdoc />
        public IRpcApi DefaultHttpMethod(ExposeDefaultMethod defaultMethod)
        {
            _defaultMethod = defaultMethod;

            return(this);
        }