public void AddParameters(IApiVersionParameterDescriptionContext context)
 {
     foreach (var apiVersionReader in apiVersionReaders)
     {
         apiVersionReader.AddParameters(context);
     }
 }
        /// <summary>
        /// Provides API version parameter descriptions supported by the current reader using the supplied provider.
        /// </summary>
        /// <param name="context">The <see cref="IApiVersionParameterDescriptionContext">context</see> used to add API version parameter descriptions.</param>
        public virtual void AddParmeters(IApiVersionParameterDescriptionContext context)
        {
            Arg.NotNull(context, nameof(context));

            const string FromRouteValueName = null;

            context.AddParameter(FromRouteValueName, Path);
        }
Esempio n. 3
0
        /// <summary>
        /// Provides API version parameter descriptions supported by the current reader using the supplied provider.
        /// </summary>
        /// <param name="context">The <see cref="IApiVersionParameterDescriptionContext">context</see> used to add API version parameter descriptions.</param>
        public virtual void AddParameters(IApiVersionParameterDescriptionContext context)
        {
            Arg.NotNull(context, nameof(context));

            foreach (var name in HeaderNames)
            {
                context.AddParameter(name, Header);
            }
        }
Esempio n. 4
0
        /// <summary>
        /// Provides API version parameter descriptions supported by the current reader using the supplied provider.
        /// </summary>
        /// <param name="context">The <see cref="IApiVersionParameterDescriptionContext">context</see> used to add API version parameter descriptions.</param>
        public virtual void AddParameters(IApiVersionParameterDescriptionContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            context.AddParameter(name: string.Empty, Path);
        }
Esempio n. 5
0
        public void AddParameters(IApiVersionParameterDescriptionContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            //foreach (var name in ParameterNames)
            //{
            //    context.AddParameter(name, DbLoggerCategory.Query);
            //}
        }
Esempio n. 6
0
 public void AddParameters(IApiVersionParameterDescriptionContext context)
 {
     // Nothing to do
 }
Esempio n. 7
0
 public void AddParameters(IApiVersionParameterDescriptionContext context)
 {
     context.AddParameter(null, ApiVersionParameterLocation.Path);
 }
 /// <summary>
 /// Provides API version parameter descriptions supported by the current reader using the supplied provider.
 /// </summary>
 /// <param name="context">The <see cref="IApiVersionParameterDescriptionContext">context</see> used to add API version parameter descriptions.</param>
 public virtual void AddParameters(IApiVersionParameterDescriptionContext context)
 {
     Arg.NotNull(context, nameof(context));
     context.AddParameter(ParameterName, MediaTypeParameter);
 }
 public void AddParameters
 (
     IApiVersionParameterDescriptionContext context
 )
 {
 }
 /// <summary>
 /// Provides API version parameter descriptions supported by the current reader using the supplied provider.
 /// </summary>
 /// <param name="context">The <see cref="IApiVersionParameterDescriptionContext">context</see> used to add API version parameter descriptions.</param>
 public virtual void AddParameters(IApiVersionParameterDescriptionContext context)
 {
     //Arg.NotNull(context, nameof(context));
     context.AddParameter("v", ApiVersionParameterLocation.MediaTypeParameter);
 }
Esempio n. 11
0
 public void AddParameters(IApiVersionParameterDescriptionContext context)
 {
     context.AddParameter(HEADERNAME, ApiVersionParameterLocation.Header);
 }
 public void AddParameters(IApiVersionParameterDescriptionContext context)
 {
     context.AddParameter(MediaTypeParameter, ApiVersionParameterLocation.MediaTypeParameter);
 }