Make Middleware internal and remove internal namespaces (#11538)

This commit is contained in:
Justin Kotalik 2019-06-25 13:23:20 -07:00 committed by GitHub
parent ea385e20aa
commit cc1f23c5f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
189 changed files with 407 additions and 1081 deletions

View File

@ -4,7 +4,7 @@
using System;
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNetCore.Cors.Internal
namespace Microsoft.AspNetCore.Cors
{
internal static class CORSLoggerExtensions
{

View File

@ -3,7 +3,6 @@
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Cors.Internal;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;

View File

@ -5,7 +5,6 @@ using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Microsoft.AspNetCore.Cors.Internal;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

View File

@ -8,7 +8,6 @@ using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Internal;
using Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Views;
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;

View File

@ -4,7 +4,7 @@
using System;
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Internal
namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore
{
internal static class DiagnosticsEntityFrameworkCoreLoggerExtensions
{

View File

@ -5,7 +5,6 @@ using System;
using System.Net;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Internal;
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;

View File

@ -8,7 +8,6 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Diagnostics.Internal;
using Microsoft.AspNetCore.Diagnostics.RazorViews;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;

View File

@ -4,7 +4,7 @@
using System;
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNetCore.Diagnostics.Internal
namespace Microsoft.AspNetCore.Diagnostics
{
internal static class DiagnosticsLoggerExtensions
{

View File

@ -6,7 +6,6 @@ using System.Diagnostics;
using System.Runtime.ExceptionServices;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Diagnostics.Internal;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

View File

@ -4,7 +4,7 @@
using System;
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNetCore.HttpsPolicy.Internal
namespace Microsoft.AspNetCore.HttpsPolicy
{
internal static class HstsLoggingExtensions
{

View File

@ -6,7 +6,6 @@ using System.Collections.Generic;
using System.Globalization;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.HttpsPolicy.Internal;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using Microsoft.Extensions.Options;

View File

@ -4,7 +4,7 @@
using System;
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNetCore.HttpsPolicy.Internal
namespace Microsoft.AspNetCore.HttpsPolicy
{
internal static class HttpsLoggingExtensions
{

View File

@ -6,7 +6,6 @@ using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting.Server.Features;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Extensions;
using Microsoft.AspNetCore.HttpsPolicy.Internal;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

View File

@ -6,7 +6,7 @@ using System.Collections.Generic;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Primitives;
namespace Microsoft.AspNetCore.Localization.Internal
namespace Microsoft.AspNetCore.Localization
{
internal static class RequestCultureProviderLoggerExtensions
{

View File

@ -8,7 +8,6 @@ using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Localization.Internal;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;

View File

@ -3,7 +3,7 @@
using Microsoft.Extensions.Primitives;
namespace Microsoft.AspNetCore.ResponseCaching.Internal
namespace Microsoft.AspNetCore.ResponseCaching
{
internal static class CacheEntryHelpers
{

View File

@ -5,7 +5,7 @@ using System;
using System.IO;
using Microsoft.AspNetCore.Http;
namespace Microsoft.AspNetCore.ResponseCaching.Internal
namespace Microsoft.AspNetCore.ResponseCaching
{
internal class CachedResponse : IResponseCacheEntry
{

View File

@ -3,7 +3,7 @@
using Microsoft.Extensions.Primitives;
namespace Microsoft.AspNetCore.ResponseCaching.Internal
namespace Microsoft.AspNetCore.ResponseCaching
{
internal class CachedVaryByRules : IResponseCacheEntry
{

View File

@ -4,7 +4,7 @@
using System;
using System.Threading;
namespace Microsoft.AspNetCore.ResponseCaching.Internal
namespace Microsoft.AspNetCore.ResponseCaching
{
internal class FastGuid
{

View File

@ -4,7 +4,7 @@
using System;
using System.Threading.Tasks;
namespace Microsoft.AspNetCore.ResponseCaching.Internal
namespace Microsoft.AspNetCore.ResponseCaching
{
internal interface IResponseCache
{

View File

@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.ResponseCaching.Internal
namespace Microsoft.AspNetCore.ResponseCaching
{
internal interface IResponseCacheEntry
{

View File

@ -3,7 +3,7 @@
using System.Collections.Generic;
namespace Microsoft.AspNetCore.ResponseCaching.Internal
namespace Microsoft.AspNetCore.ResponseCaching
{
internal interface IResponseCachingKeyProvider
{

View File

@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.ResponseCaching.Internal
namespace Microsoft.AspNetCore.ResponseCaching
{
internal interface IResponseCachingPolicyProvider
{

View File

@ -3,7 +3,7 @@
using System;
namespace Microsoft.AspNetCore.ResponseCaching.Internal
namespace Microsoft.AspNetCore.ResponseCaching
{
/// <summary>
/// Abstracts the system clock to facilitate testing.

View File

@ -5,7 +5,7 @@ using System;
using Microsoft.Extensions.Logging;
using Microsoft.Net.Http.Headers;
namespace Microsoft.AspNetCore.ResponseCaching.Internal
namespace Microsoft.AspNetCore.ResponseCaching
{
/// <summary>
/// Defines *all* the logger messages produced by response caching

View File

@ -5,7 +5,7 @@ using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Http;
namespace Microsoft.AspNetCore.ResponseCaching.Internal
namespace Microsoft.AspNetCore.ResponseCaching
{
internal class MemoryCachedResponse
{

View File

@ -5,7 +5,7 @@ using System;
using System.Threading.Tasks;
using Microsoft.Extensions.Caching.Memory;
namespace Microsoft.AspNetCore.ResponseCaching.Internal
namespace Microsoft.AspNetCore.ResponseCaching
{
internal class MemoryResponseCache : IResponseCache
{

View File

@ -8,7 +8,7 @@ using Microsoft.AspNetCore.Http.Features;
using Microsoft.Extensions.Logging;
using Microsoft.Net.Http.Headers;
namespace Microsoft.AspNetCore.ResponseCaching.Internal
namespace Microsoft.AspNetCore.ResponseCaching
{
internal class ResponseCachingContext
{

View File

@ -9,7 +9,7 @@ using Microsoft.Extensions.ObjectPool;
using Microsoft.Extensions.Options;
using Microsoft.Extensions.Primitives;
namespace Microsoft.AspNetCore.ResponseCaching.Internal
namespace Microsoft.AspNetCore.ResponseCaching
{
internal class ResponseCachingKeyProvider : IResponseCachingKeyProvider
{

View File

@ -6,7 +6,6 @@ using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.ResponseCaching.Internal;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.ObjectPool;

View File

@ -2,7 +2,6 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.ComponentModel;
using Microsoft.AspNetCore.ResponseCaching.Internal;
namespace Microsoft.AspNetCore.ResponseCaching
{

View File

@ -6,7 +6,7 @@ using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Primitives;
using Microsoft.Net.Http.Headers;
namespace Microsoft.AspNetCore.ResponseCaching.Internal
namespace Microsoft.AspNetCore.ResponseCaching
{
internal class ResponseCachingPolicyProvider : IResponseCachingPolicyProvider
{

View File

@ -3,7 +3,6 @@
using System;
using Microsoft.AspNetCore.ResponseCaching;
using Microsoft.AspNetCore.ResponseCaching.Internal;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.ObjectPool;

View File

@ -5,7 +5,7 @@ using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http.Features;
namespace Microsoft.AspNetCore.ResponseCaching.Internal
namespace Microsoft.AspNetCore.ResponseCaching
{
internal class SendFileFeatureWrapper : IHttpSendFileFeature
{

View File

@ -6,7 +6,7 @@ using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.AspNetCore.ResponseCaching.Internal
namespace Microsoft.AspNetCore.ResponseCaching
{
internal class ResponseCachingStream : Stream
{

View File

@ -7,7 +7,7 @@ using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.AspNetCore.ResponseCaching.Internal
namespace Microsoft.AspNetCore.ResponseCaching
{
internal class SegmentReadStream : Stream
{

View File

@ -7,7 +7,7 @@ using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.AspNetCore.ResponseCaching.Internal
namespace Microsoft.AspNetCore.ResponseCaching
{
internal class SegmentWriteStream : Stream
{

View File

@ -5,7 +5,7 @@ using System;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.AspNetCore.ResponseCaching.Internal
namespace Microsoft.AspNetCore.ResponseCaching
{
internal static class StreamUtilities
{

View File

@ -3,7 +3,7 @@
using System.Text;
namespace Microsoft.AspNetCore.ResponseCaching.Internal
namespace Microsoft.AspNetCore.ResponseCaching
{
internal static class StringBuilderExtensions
{

View File

@ -3,7 +3,7 @@
using System;
namespace Microsoft.AspNetCore.ResponseCaching.Internal
namespace Microsoft.AspNetCore.ResponseCaching
{
/// <summary>
/// Provides access to the normal system clock.

View File

@ -3,7 +3,6 @@
using System;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.ResponseCaching.Internal;
using Xunit;
namespace Microsoft.AspNetCore.ResponseCaching.Tests

View File

@ -6,7 +6,6 @@ using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.ResponseCaching.Internal;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Logging.Testing;
using Microsoft.Extensions.Primitives;

View File

@ -3,7 +3,6 @@
using System;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.ResponseCaching.Internal;
using Microsoft.Extensions.Logging.Testing;
using Microsoft.Net.Http.Headers;
using Xunit;

View File

@ -5,7 +5,6 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Microsoft.AspNetCore.ResponseCaching.Internal;
using Xunit;
namespace Microsoft.AspNetCore.ResponseCaching.Tests

View File

@ -4,7 +4,6 @@
using System;
using System.IO;
using System.Linq;
using Microsoft.AspNetCore.ResponseCaching.Internal;
using Xunit;
namespace Microsoft.AspNetCore.ResponseCaching.Tests

View File

@ -12,7 +12,6 @@ using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.ResponseCaching.Internal;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
@ -22,7 +21,7 @@ using Microsoft.Extensions.Options;
using Microsoft.Extensions.Primitives;
using Microsoft.Net.Http.Headers;
using Xunit;
using ISystemClock = Microsoft.AspNetCore.ResponseCaching.Internal.ISystemClock;
using ISystemClock = Microsoft.AspNetCore.ResponseCaching.ISystemClock;
namespace Microsoft.AspNetCore.ResponseCaching.Tests
{

View File

@ -4,7 +4,7 @@
using System;
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNetCore.ResponseCompression.Internal
namespace Microsoft.AspNetCore.ResponseCompression
{
internal static class ResponseCompressionLoggingExtensions
{

View File

@ -7,7 +7,6 @@ using System.Diagnostics;
using System.Linq;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.ResponseCompression.Internal;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

View File

@ -69,642 +69,3 @@ namespace Microsoft.AspNetCore.Rewrite
SkipRemainingRules = 2,
}
}
namespace Microsoft.AspNetCore.Rewrite.Internal
{
public partial class BackReferenceCollection
{
public BackReferenceCollection(string reference) { }
public BackReferenceCollection(System.Text.RegularExpressions.GroupCollection references) { }
public string this[int index] { get { throw null; } }
public void Add(Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection references) { }
}
public partial class DelegateRule : Microsoft.AspNetCore.Rewrite.IRule
{
public DelegateRule(System.Action<Microsoft.AspNetCore.Rewrite.RewriteContext> onApplyRule) { }
public void ApplyRule(Microsoft.AspNetCore.Rewrite.RewriteContext context) { }
}
public partial class MatchResults
{
public static readonly Microsoft.AspNetCore.Rewrite.Internal.MatchResults EmptyFailure;
public static readonly Microsoft.AspNetCore.Rewrite.Internal.MatchResults EmptySuccess;
public MatchResults() { }
public Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection BackReferences { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public bool Success { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
}
public partial class ParserContext
{
public readonly string Template;
public ParserContext(string condition) { }
public char Current { get { throw null; } }
public int Index { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public bool Back() { throw null; }
public string Capture() { throw null; }
public int GetIndex() { throw null; }
public bool HasNext() { throw null; }
public void Mark() { }
public bool Next() { throw null; }
}
public partial class Pattern
{
public Pattern(System.Collections.Generic.IList<Microsoft.AspNetCore.Rewrite.Internal.PatternSegment> patternSegments) { }
public System.Collections.Generic.IList<Microsoft.AspNetCore.Rewrite.Internal.PatternSegment> PatternSegments { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
public abstract partial class PatternSegment
{
protected PatternSegment() { }
public abstract string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences);
}
public partial class RedirectRule : Microsoft.AspNetCore.Rewrite.IRule
{
public RedirectRule(string regex, string replacement, int statusCode) { }
public System.Text.RegularExpressions.Regex InitialMatch { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public string Replacement { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public int StatusCode { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public virtual void ApplyRule(Microsoft.AspNetCore.Rewrite.RewriteContext context) { }
}
public partial class RedirectToHttpsRule : Microsoft.AspNetCore.Rewrite.IRule
{
public RedirectToHttpsRule() { }
public int? SSLPort { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public int StatusCode { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public virtual void ApplyRule(Microsoft.AspNetCore.Rewrite.RewriteContext context) { }
}
public partial class RedirectToWwwRule : Microsoft.AspNetCore.Rewrite.IRule
{
public readonly string[] _domains;
public readonly int _statusCode;
public RedirectToWwwRule(int statusCode) { }
public RedirectToWwwRule(int statusCode, params string[] domains) { }
public virtual void ApplyRule(Microsoft.AspNetCore.Rewrite.RewriteContext context) { }
}
public partial class RewriteRule : Microsoft.AspNetCore.Rewrite.IRule
{
public RewriteRule(string regex, string replacement, bool stopProcessing) { }
public System.Text.RegularExpressions.Regex InitialMatch { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public string Replacement { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public bool StopProcessing { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public virtual void ApplyRule(Microsoft.AspNetCore.Rewrite.RewriteContext context) { }
}
public abstract partial class UrlAction
{
protected UrlAction() { }
protected Microsoft.AspNetCore.Rewrite.Internal.Pattern Url { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public abstract void ApplyAction(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences);
}
public abstract partial class UrlMatch
{
protected UrlMatch() { }
protected bool Negate { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public abstract Microsoft.AspNetCore.Rewrite.Internal.MatchResults Evaluate(string input, Microsoft.AspNetCore.Rewrite.RewriteContext context);
}
}
namespace Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite
{
public partial class ApacheModRewriteRule : Microsoft.AspNetCore.Rewrite.IRule
{
public ApacheModRewriteRule(Microsoft.AspNetCore.Rewrite.Internal.UrlMatch initialMatch, System.Collections.Generic.IList<Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.Condition> conditions, System.Collections.Generic.IList<Microsoft.AspNetCore.Rewrite.Internal.UrlAction> urlActions) { }
public System.Collections.Generic.IList<Microsoft.AspNetCore.Rewrite.Internal.UrlAction> Actions { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public System.Collections.Generic.IList<Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.Condition> Conditions { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public Microsoft.AspNetCore.Rewrite.Internal.UrlMatch InitialMatch { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public virtual void ApplyRule(Microsoft.AspNetCore.Rewrite.RewriteContext context) { }
}
public partial class Condition
{
public Condition() { }
public Microsoft.AspNetCore.Rewrite.Internal.Pattern Input { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public Microsoft.AspNetCore.Rewrite.Internal.UrlMatch Match { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public bool OrNext { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public Microsoft.AspNetCore.Rewrite.Internal.MatchResults Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
public static partial class ConditionEvaluator
{
public static Microsoft.AspNetCore.Rewrite.Internal.MatchResults Evaluate(System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.Condition> conditions, Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection backReferences) { throw null; }
public static Microsoft.AspNetCore.Rewrite.Internal.MatchResults Evaluate(System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.Condition> conditions, Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection backReferences, bool trackAllCaptures) { throw null; }
}
public partial class ConditionPatternParser
{
public ConditionPatternParser() { }
public Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.ParsedModRewriteInput ParseActionCondition(string condition) { throw null; }
}
public enum ConditionType
{
Regex = 0,
PropertyTest = 1,
StringComp = 2,
IntComp = 3,
}
public partial class CookieActionFactory
{
public CookieActionFactory() { }
public Microsoft.AspNetCore.Rewrite.Internal.UrlActions.ChangeCookieAction Create(string flagValue) { throw null; }
}
public partial class FileParser
{
public FileParser() { }
public System.Collections.Generic.IList<Microsoft.AspNetCore.Rewrite.IRule> Parse(System.IO.TextReader input) { throw null; }
}
public partial class FlagParser
{
public FlagParser() { }
public Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.Flags Parse(string flagString) { throw null; }
}
public partial class Flags
{
public Flags() { }
public Flags(System.Collections.Generic.IDictionary<Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.FlagType, string> flags) { }
public System.Collections.Generic.IDictionary<Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.FlagType, string> FlagDictionary { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public string this[Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.FlagType flag] { get { throw null; } set { } }
public bool GetValue(Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.FlagType flag, out string value) { throw null; }
public bool HasFlag(Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.FlagType flag) { throw null; }
public void SetFlag(Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.FlagType flag, string value) { }
}
public enum FlagType
{
EscapeBackreference = 0,
Chain = 1,
Cookie = 2,
DiscardPath = 3,
Env = 4,
End = 5,
Forbidden = 6,
Gone = 7,
Handler = 8,
Last = 9,
Next = 10,
NoCase = 11,
NoEscape = 12,
NoSubReq = 13,
NoVary = 14,
Or = 15,
Proxy = 16,
PassThrough = 17,
QSAppend = 18,
QSDiscard = 19,
QSLast = 20,
Redirect = 21,
Skip = 22,
Type = 23,
}
public enum OperationType
{
None = 0,
Equal = 1,
Greater = 2,
GreaterEqual = 3,
Less = 4,
LessEqual = 5,
NotEqual = 6,
Directory = 7,
RegularFile = 8,
ExistingFile = 9,
SymbolicLink = 10,
Size = 11,
ExistingUrl = 12,
Executable = 13,
}
public partial class ParsedModRewriteInput
{
public ParsedModRewriteInput() { }
public ParsedModRewriteInput(bool invert, Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.ConditionType conditionType, Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.OperationType operationType, string operand) { }
public Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.ConditionType ConditionType { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public bool Invert { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public string Operand { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.OperationType OperationType { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
}
public partial class RuleBuilder
{
public RuleBuilder() { }
public void AddAction(Microsoft.AspNetCore.Rewrite.Internal.Pattern pattern, Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.Flags flags) { }
public void AddConditionFromParts(Microsoft.AspNetCore.Rewrite.Internal.Pattern pattern, Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.ParsedModRewriteInput input, Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.Flags flags) { }
public void AddMatch(Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.ParsedModRewriteInput input, Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.Flags flags) { }
public void AddRule(string rule) { }
public Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.ApacheModRewriteRule Build() { throw null; }
}
public partial class RuleRegexParser
{
public RuleRegexParser() { }
public Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite.ParsedModRewriteInput ParseRuleRegex(string regex) { throw null; }
}
public enum SegmentType
{
Literal = 0,
ServerParameter = 1,
ConditionParameter = 2,
RuleParameter = 3,
}
public static partial class ServerVariables
{
public static Microsoft.AspNetCore.Rewrite.Internal.PatternSegment FindServerVariable(string serverVariable, Microsoft.AspNetCore.Rewrite.Internal.ParserContext context) { throw null; }
}
public partial class TestStringParser
{
public TestStringParser() { }
public Microsoft.AspNetCore.Rewrite.Internal.Pattern Parse(string testString) { throw null; }
}
public partial class Tokenizer
{
public Tokenizer() { }
public System.Collections.Generic.IList<string> Tokenize(string rule) { throw null; }
}
}
namespace Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite
{
public enum ActionType
{
None = 0,
Rewrite = 1,
Redirect = 2,
CustomResponse = 3,
AbortRequest = 4,
}
public partial class Condition
{
public Condition() { }
public Microsoft.AspNetCore.Rewrite.Internal.Pattern Input { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public Microsoft.AspNetCore.Rewrite.Internal.UrlMatch Match { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public Microsoft.AspNetCore.Rewrite.Internal.MatchResults Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
public partial class ConditionCollection : System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.Condition>, System.Collections.IEnumerable
{
public ConditionCollection() { }
public ConditionCollection(Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.LogicalGrouping grouping, bool trackAllCaptures) { }
public int Count { get { throw null; } }
public Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.LogicalGrouping Grouping { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.Condition this[int index] { get { throw null; } }
public bool TrackAllCaptures { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public void Add(Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.Condition condition) { }
public void AddConditions(System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.Condition> conditions) { }
public System.Collections.Generic.IEnumerator<Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.Condition> GetEnumerator() { throw null; }
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
}
public static partial class ConditionEvaluator
{
public static Microsoft.AspNetCore.Rewrite.Internal.MatchResults Evaluate(Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.ConditionCollection conditions, Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection backReferences) { throw null; }
}
public partial class IISRewriteMap
{
public IISRewriteMap(string name) { }
public string this[string key] { get { throw null; } set { } }
public string Name { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
}
public partial class IISRewriteMapCollection : System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.IISRewriteMap>, System.Collections.IEnumerable
{
public IISRewriteMapCollection() { }
public int Count { get { throw null; } }
public Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.IISRewriteMap this[string key] { get { throw null; } }
public void Add(Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.IISRewriteMap rewriteMap) { }
public System.Collections.Generic.IEnumerator<Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.IISRewriteMap> GetEnumerator() { throw null; }
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
}
public partial class IISUrlRewriteRule : Microsoft.AspNetCore.Rewrite.IRule
{
public IISUrlRewriteRule(string name, Microsoft.AspNetCore.Rewrite.Internal.UrlMatch initialMatch, Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.ConditionCollection conditions, Microsoft.AspNetCore.Rewrite.Internal.UrlAction action) { }
public IISUrlRewriteRule(string name, Microsoft.AspNetCore.Rewrite.Internal.UrlMatch initialMatch, Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.ConditionCollection conditions, Microsoft.AspNetCore.Rewrite.Internal.UrlAction action, bool global) { }
public Microsoft.AspNetCore.Rewrite.Internal.UrlAction Action { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.ConditionCollection Conditions { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public bool Global { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public Microsoft.AspNetCore.Rewrite.Internal.UrlMatch InitialMatch { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public string Name { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public virtual void ApplyRule(Microsoft.AspNetCore.Rewrite.RewriteContext context) { }
}
public partial class InputParser
{
public InputParser() { }
public InputParser(Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.IISRewriteMapCollection rewriteMaps, bool alwaysUseManagedServerVariables) { }
public Microsoft.AspNetCore.Rewrite.Internal.Pattern ParseInputString(string testString) { throw null; }
public Microsoft.AspNetCore.Rewrite.Internal.Pattern ParseInputString(string testString, Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.UriMatchPart uriMatchPart) { throw null; }
}
public partial class InvalidUrlRewriteFormatException : System.FormatException
{
public InvalidUrlRewriteFormatException(System.Xml.Linq.XElement element, string message) { }
public InvalidUrlRewriteFormatException(System.Xml.Linq.XElement element, string message, System.Exception innerException) { }
public int LineNumber { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public int LinePosition { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
}
public enum LogicalGrouping
{
MatchAll = 0,
MatchAny = 1,
}
public enum MatchType
{
Pattern = 0,
IsFile = 1,
IsDirectory = 2,
}
public enum PatternSyntax
{
ECMAScript = 0,
Wildcard = 1,
ExactMatch = 2,
}
public enum RedirectType
{
Permanent = 301,
Found = 302,
SeeOther = 303,
Temporary = 307,
}
public static partial class RewriteMapParser
{
public static Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.IISRewriteMapCollection Parse(System.Xml.Linq.XElement xmlRoot) { throw null; }
}
public static partial class RewriteTags
{
public const string Action = "action";
public const string Add = "add";
public const string AppendQueryString = "appendQueryString";
public const string Conditions = "conditions";
public const string Enabled = "enabled";
public const string GlobalRules = "globalRules";
public const string IgnoreCase = "ignoreCase";
public const string Input = "input";
public const string Key = "key";
public const string LogicalGrouping = "logicalGrouping";
public const string LogRewrittenUrl = "logRewrittenUrl";
public const string Match = "match";
public const string MatchPattern = "matchPattern";
public const string MatchType = "matchType";
public const string Name = "name";
public const string Negate = "negate";
public const string Pattern = "pattern";
public const string PatternSyntax = "patternSyntax";
public const string RedirectType = "redirectType";
public const string Rewrite = "rewrite";
public const string RewriteMap = "rewriteMap";
public const string RewriteMaps = "rewriteMaps";
public const string Rule = "rule";
public const string Rules = "rules";
public const string StatusCode = "statusCode";
public const string StatusDescription = "statusDescription";
public const string StatusReason = "statusReason";
public const string StopProcessing = "stopProcessing";
public const string SubStatusCode = "subStatusCode";
public const string TrackAllCaptures = "trackAllCaptures";
public const string Type = "type";
public const string Url = "url";
public const string Value = "value";
}
public static partial class ServerVariables
{
public static Microsoft.AspNetCore.Rewrite.Internal.PatternSegment FindServerVariable(string serverVariable, Microsoft.AspNetCore.Rewrite.Internal.ParserContext context, Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.UriMatchPart uriMatchPart, bool alwaysUseManagedServerVariables) { throw null; }
}
public partial class UriMatchCondition : Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.Condition
{
public UriMatchCondition(Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.InputParser inputParser, string input, string pattern, Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.UriMatchPart uriMatchPart, bool ignoreCase, bool negate) { }
}
public enum UriMatchPart
{
Full = 0,
Path = 1,
}
public partial class UrlRewriteFileParser
{
public UrlRewriteFileParser() { }
public System.Collections.Generic.IList<Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.IISUrlRewriteRule> Parse(System.IO.TextReader reader, bool alwaysUseManagedServerVariables) { throw null; }
}
public partial class UrlRewriteRuleBuilder
{
public UrlRewriteRuleBuilder() { }
public bool Enabled { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public bool Global { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public string Name { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.UriMatchPart UriMatchPart { get { throw null; } }
public void AddUrlAction(Microsoft.AspNetCore.Rewrite.Internal.UrlAction action) { }
public void AddUrlCondition(Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.Condition condition) { }
public void AddUrlConditions(System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.Condition> conditions) { }
public void AddUrlMatch(string input, bool ignoreCase = true, bool negate = false, Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.PatternSyntax patternSyntax = Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.PatternSyntax.ECMAScript) { }
public Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.IISUrlRewriteRule Build() { throw null; }
public void ConfigureConditionBehavior(Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.LogicalGrouping logicalGrouping, bool trackAllCaptures) { }
}
}
namespace Microsoft.AspNetCore.Rewrite.Internal.PatternSegments
{
public partial class ConditionMatchSegment : Microsoft.AspNetCore.Rewrite.Internal.PatternSegment
{
public ConditionMatchSegment(int index) { }
public override string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
public partial class DateTimeSegment : Microsoft.AspNetCore.Rewrite.Internal.PatternSegment
{
public DateTimeSegment(string segment) { }
public override string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReference) { throw null; }
}
public partial class HeaderSegment : Microsoft.AspNetCore.Rewrite.Internal.PatternSegment
{
public HeaderSegment(string header) { }
public override string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
public partial class IsHttpsModSegment : Microsoft.AspNetCore.Rewrite.Internal.PatternSegment
{
public IsHttpsModSegment() { }
public override string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
public partial class IsHttpsUrlSegment : Microsoft.AspNetCore.Rewrite.Internal.PatternSegment
{
public IsHttpsUrlSegment() { }
public override string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
public partial class IsIPV6Segment : Microsoft.AspNetCore.Rewrite.Internal.PatternSegment
{
public IsIPV6Segment() { }
public override string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
public partial class LiteralSegment : Microsoft.AspNetCore.Rewrite.Internal.PatternSegment
{
public LiteralSegment(string literal) { }
public override string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
public partial class LocalAddressSegment : Microsoft.AspNetCore.Rewrite.Internal.PatternSegment
{
public LocalAddressSegment() { }
public override string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
public partial class LocalPortSegment : Microsoft.AspNetCore.Rewrite.Internal.PatternSegment
{
public LocalPortSegment() { }
public override string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
public partial class QueryStringSegment : Microsoft.AspNetCore.Rewrite.Internal.PatternSegment
{
public QueryStringSegment() { }
public override string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackRefernces, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
public partial class RemoteAddressSegment : Microsoft.AspNetCore.Rewrite.Internal.PatternSegment
{
public RemoteAddressSegment() { }
public override string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
public partial class RemotePortSegment : Microsoft.AspNetCore.Rewrite.Internal.PatternSegment
{
public RemotePortSegment() { }
public override string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
public partial class RequestFileNameSegment : Microsoft.AspNetCore.Rewrite.Internal.PatternSegment
{
public RequestFileNameSegment() { }
public override string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
public partial class RequestMethodSegment : Microsoft.AspNetCore.Rewrite.Internal.PatternSegment
{
public RequestMethodSegment() { }
public override string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
public partial class RewriteMapSegment : Microsoft.AspNetCore.Rewrite.Internal.PatternSegment
{
public RewriteMapSegment(Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.IISRewriteMap rewriteMap, Microsoft.AspNetCore.Rewrite.Internal.Pattern pattern) { }
public override string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
public partial class RuleMatchSegment : Microsoft.AspNetCore.Rewrite.Internal.PatternSegment
{
public RuleMatchSegment(int index) { }
public override string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
public partial class SchemeSegment : Microsoft.AspNetCore.Rewrite.Internal.PatternSegment
{
public SchemeSegment() { }
public override string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
public partial class ServerProtocolSegment : Microsoft.AspNetCore.Rewrite.Internal.PatternSegment
{
public ServerProtocolSegment() { }
public override string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
public partial class ToLowerSegment : Microsoft.AspNetCore.Rewrite.Internal.PatternSegment
{
public ToLowerSegment(Microsoft.AspNetCore.Rewrite.Internal.Pattern pattern) { }
public override string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
public partial class UrlEncodeSegment : Microsoft.AspNetCore.Rewrite.Internal.PatternSegment
{
public UrlEncodeSegment(Microsoft.AspNetCore.Rewrite.Internal.Pattern pattern) { }
public override string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
public partial class UrlSegment : Microsoft.AspNetCore.Rewrite.Internal.PatternSegment
{
public UrlSegment() { }
public UrlSegment(Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite.UriMatchPart uriMatchPart) { }
public override string Evaluate(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { throw null; }
}
}
namespace Microsoft.AspNetCore.Rewrite.Internal.UrlActions
{
public partial class AbortAction : Microsoft.AspNetCore.Rewrite.Internal.UrlAction
{
public AbortAction() { }
public override void ApplyAction(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { }
}
public partial class ChangeCookieAction : Microsoft.AspNetCore.Rewrite.Internal.UrlAction
{
public ChangeCookieAction(string name) { }
public string Domain { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public bool HttpOnly { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public System.TimeSpan Lifetime { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public string Name { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public string Path { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public bool Secure { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public string Value { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public override void ApplyAction(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { }
}
public partial class CustomResponseAction : Microsoft.AspNetCore.Rewrite.Internal.UrlAction
{
public CustomResponseAction(int statusCode) { }
public int StatusCode { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public string StatusDescription { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public string StatusReason { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } }
public override void ApplyAction(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { }
}
public partial class ForbiddenAction : Microsoft.AspNetCore.Rewrite.Internal.UrlAction
{
public ForbiddenAction() { }
public override void ApplyAction(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { }
}
public partial class GoneAction : Microsoft.AspNetCore.Rewrite.Internal.UrlAction
{
public GoneAction() { }
public override void ApplyAction(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { }
}
public partial class NoneAction : Microsoft.AspNetCore.Rewrite.Internal.UrlAction
{
public NoneAction(Microsoft.AspNetCore.Rewrite.RuleResult result) { }
public Microsoft.AspNetCore.Rewrite.RuleResult Result { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public override void ApplyAction(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { }
}
public partial class RedirectAction : Microsoft.AspNetCore.Rewrite.Internal.UrlAction
{
public RedirectAction(int statusCode, Microsoft.AspNetCore.Rewrite.Internal.Pattern pattern, bool queryStringAppend) { }
public RedirectAction(int statusCode, Microsoft.AspNetCore.Rewrite.Internal.Pattern pattern, bool queryStringAppend, bool queryStringDelete, bool escapeBackReferences) { }
public bool EscapeBackReferences { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public bool QueryStringAppend { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public bool QueryStringDelete { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public int StatusCode { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public override void ApplyAction(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { }
}
public partial class RewriteAction : Microsoft.AspNetCore.Rewrite.Internal.UrlAction
{
public RewriteAction(Microsoft.AspNetCore.Rewrite.RuleResult result, Microsoft.AspNetCore.Rewrite.Internal.Pattern pattern, bool queryStringAppend) { }
public RewriteAction(Microsoft.AspNetCore.Rewrite.RuleResult result, Microsoft.AspNetCore.Rewrite.Internal.Pattern pattern, bool queryStringAppend, bool queryStringDelete, bool escapeBackReferences) { }
public bool EscapeBackReferences { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public bool QueryStringAppend { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public bool QueryStringDelete { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public Microsoft.AspNetCore.Rewrite.RuleResult Result { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
public override void ApplyAction(Microsoft.AspNetCore.Rewrite.RewriteContext context, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection ruleBackReferences, Microsoft.AspNetCore.Rewrite.Internal.BackReferenceCollection conditionBackReferences) { }
}
}
namespace Microsoft.AspNetCore.Rewrite.Internal.UrlMatches
{
public partial class ExactMatch : Microsoft.AspNetCore.Rewrite.Internal.UrlMatch
{
public ExactMatch(bool ignoreCase, string input, bool negate) { }
public override Microsoft.AspNetCore.Rewrite.Internal.MatchResults Evaluate(string pattern, Microsoft.AspNetCore.Rewrite.RewriteContext context) { throw null; }
}
public partial class FileSizeMatch : Microsoft.AspNetCore.Rewrite.Internal.UrlMatch
{
public FileSizeMatch(bool negate) { }
public override Microsoft.AspNetCore.Rewrite.Internal.MatchResults Evaluate(string input, Microsoft.AspNetCore.Rewrite.RewriteContext context) { throw null; }
}
public partial class IntegerMatch : Microsoft.AspNetCore.Rewrite.Internal.UrlMatch
{
public IntegerMatch(int value, Microsoft.AspNetCore.Rewrite.Internal.UrlMatches.IntegerOperationType operation) { }
public IntegerMatch(string value, Microsoft.AspNetCore.Rewrite.Internal.UrlMatches.IntegerOperationType operation) { }
public override Microsoft.AspNetCore.Rewrite.Internal.MatchResults Evaluate(string input, Microsoft.AspNetCore.Rewrite.RewriteContext context) { throw null; }
}
public enum IntegerOperationType
{
Equal = 0,
Greater = 1,
GreaterEqual = 2,
Less = 3,
LessEqual = 4,
NotEqual = 5,
}
public partial class IsDirectoryMatch : Microsoft.AspNetCore.Rewrite.Internal.UrlMatch
{
public IsDirectoryMatch(bool negate) { }
public override Microsoft.AspNetCore.Rewrite.Internal.MatchResults Evaluate(string pattern, Microsoft.AspNetCore.Rewrite.RewriteContext context) { throw null; }
}
public partial class IsFileMatch : Microsoft.AspNetCore.Rewrite.Internal.UrlMatch
{
public IsFileMatch(bool negate) { }
public override Microsoft.AspNetCore.Rewrite.Internal.MatchResults Evaluate(string pattern, Microsoft.AspNetCore.Rewrite.RewriteContext context) { throw null; }
}
public partial class RegexMatch : Microsoft.AspNetCore.Rewrite.Internal.UrlMatch
{
public RegexMatch(System.Text.RegularExpressions.Regex match, bool negate) { }
public override Microsoft.AspNetCore.Rewrite.Internal.MatchResults Evaluate(string pattern, Microsoft.AspNetCore.Rewrite.RewriteContext context) { throw null; }
}
public partial class StringMatch : Microsoft.AspNetCore.Rewrite.Internal.UrlMatch
{
public StringMatch(string value, Microsoft.AspNetCore.Rewrite.Internal.UrlMatches.StringOperationType operation, bool ignoreCase) { }
public override Microsoft.AspNetCore.Rewrite.Internal.MatchResults Evaluate(string input, Microsoft.AspNetCore.Rewrite.RewriteContext context) { throw null; }
}
public enum StringOperationType
{
Equal = 0,
Greater = 1,
GreaterEqual = 2,
Less = 3,
LessEqual = 4,
}
}

View File

@ -4,9 +4,9 @@
using System.Collections.Generic;
using Microsoft.AspNetCore.Rewrite.Logging;
namespace Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite
namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite
{
public class ApacheModRewriteRule : IRule
internal class ApacheModRewriteRule : IRule
{
public UrlMatch InitialMatch { get; }
public IList<Condition> Conditions { get; }

View File

@ -1,9 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite
namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite
{
public class Condition
internal class Condition
{
public Pattern Input { get; set; }
public UrlMatch Match { get; set; }

View File

@ -3,9 +3,9 @@
using System.Collections.Generic;
namespace Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite
namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite
{
public static class ConditionEvaluator
internal static class ConditionEvaluator
{
public static MatchResults Evaluate(IEnumerable<Condition> conditions, RewriteContext context, BackReferenceCollection backReferences)
{

View File

@ -4,13 +4,13 @@
using System;
using System.Globalization;
namespace Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite
namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite
{
/// <summary>
/// Parses the "CondPattern" portion of the RewriteCond.
/// RewriteCond TestString CondPattern
/// </summary>
public class ConditionPatternParser
internal class ConditionPatternParser
{
private const char Not = '!';
private const char Dash = '-';

View File

@ -1,9 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite
namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite
{
public enum ConditionType
internal enum ConditionType
{
Regex,
PropertyTest,

View File

@ -3,11 +3,11 @@
using System;
using System.Globalization;
using Microsoft.AspNetCore.Rewrite.Internal.UrlActions;
using Microsoft.AspNetCore.Rewrite.UrlActions;
namespace Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite
namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite
{
public class CookieActionFactory
internal class CookieActionFactory
{
/// <summary>
/// Creates a <see cref="ChangeCookieAction" /> <see href="https://httpd.apache.org/docs/current/rewrite/flags.html#flag_co" /> for details.

View File

@ -5,9 +5,9 @@ using System;
using System.Collections.Generic;
using System.IO;
namespace Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite
namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite
{
public class FileParser
internal class FileParser
{
public IList<IRule> Parse(TextReader input)
{

View File

@ -4,9 +4,9 @@
using System;
using System.Collections.Generic;
namespace Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite
namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite
{
public class FlagParser
internal class FlagParser
{
private readonly IDictionary<string, FlagType> _ruleFlagLookup = new Dictionary<string, FlagType>(StringComparer.OrdinalIgnoreCase) {
{ "b", FlagType.EscapeBackreference},

View File

@ -1,9 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite
namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite
{
public enum FlagType
internal enum FlagType
{
EscapeBackreference,
Chain,

View File

@ -3,12 +3,12 @@
using System.Collections.Generic;
namespace Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite
namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite
{
// For more information of flags, and what flags we currently support:
// https://github.com/aspnet/BasicMiddleware/issues/66
// http://httpd.apache.org/docs/current/expr.html#vars
public class Flags
internal class Flags
{
public IDictionary<FlagType, string> FlagDictionary { get; }

View File

@ -1,9 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite
namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite
{
public enum OperationType
internal enum OperationType
{
None,
Equal,

View File

@ -1,9 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite
namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite
{
public class ParsedModRewriteInput
internal class ParsedModRewriteInput
{
public bool Invert { get; set; }
public ConditionType ConditionType { get; set; }

View File

@ -6,12 +6,12 @@ using System.Collections.Generic;
using System.Globalization;
using System.Text.RegularExpressions;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Rewrite.Internal.UrlActions;
using Microsoft.AspNetCore.Rewrite.Internal.UrlMatches;
using Microsoft.AspNetCore.Rewrite.UrlActions;
using Microsoft.AspNetCore.Rewrite.UrlMatches;
namespace Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite
namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite
{
public class RuleBuilder
internal class RuleBuilder
{
private IList<Condition> _conditions;
internal IList<UrlAction> _actions = new List<UrlAction>();

View File

@ -3,9 +3,9 @@
using System;
namespace Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite
namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite
{
public class RuleRegexParser
internal class RuleRegexParser
{
public ParsedModRewriteInput ParseRuleRegex(string regex)
{

View File

@ -1,9 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite
namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite
{
public enum SegmentType
internal enum SegmentType
{
Literal,
ServerParameter,

View File

@ -2,15 +2,15 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.AspNetCore.Rewrite.Internal.PatternSegments;
using Microsoft.AspNetCore.Rewrite.PatternSegments;
using Microsoft.Net.Http.Headers;
namespace Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite
namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite
{
/// <summary>
/// mod_rewrite lookups for specific string constants.
/// </summary>
public static class ServerVariables
internal static class ServerVariables
{
/// <summary>

View File

@ -3,14 +3,14 @@
using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Rewrite.Internal.PatternSegments;
using Microsoft.AspNetCore.Rewrite.PatternSegments;
namespace Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite
namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite
{
/// <summary>
/// Parses the TestString segment of the mod_rewrite condition.
/// </summary>
public class TestStringParser
internal class TestStringParser
{
private const char Percent = '%';
private const char Dollar = '$';

View File

@ -5,12 +5,12 @@ using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite
namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite
{
/// <summary>
/// Tokenizes a mod_rewrite rule, delimited by spaces.
/// </summary>
public class Tokenizer
internal class Tokenizer
{
private const char Space = ' ';
private const char Escape = '\\';

View File

@ -3,7 +3,7 @@
using System;
using System.IO;
using Microsoft.AspNetCore.Rewrite.Internal.ApacheModRewrite;
using Microsoft.AspNetCore.Rewrite.ApacheModRewrite;
using Microsoft.Extensions.FileProviders;
namespace Microsoft.AspNetCore.Rewrite

View File

@ -5,9 +5,9 @@ using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace Microsoft.AspNetCore.Rewrite.Internal
namespace Microsoft.AspNetCore.Rewrite
{
public class BackReferenceCollection
internal class BackReferenceCollection
{
private List<string> _backReferences = new List<string>();

View File

@ -3,9 +3,9 @@
using System;
namespace Microsoft.AspNetCore.Rewrite.Internal
namespace Microsoft.AspNetCore.Rewrite
{
public class DelegateRule : IRule
internal class DelegateRule : IRule
{
private readonly Action<RewriteContext> _onApplyRule;

View File

@ -1,9 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite
namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite
{
public enum ActionType
internal enum ActionType
{
None,
Rewrite,

View File

@ -1,9 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite
namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite
{
public class Condition
internal class Condition
{
public Pattern Input { get; set; }
public UrlMatch Match { get; set; }

View File

@ -5,9 +5,9 @@ using System;
using System.Collections;
using System.Collections.Generic;
namespace Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite
namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite
{
public class ConditionCollection : IEnumerable<Condition>
internal class ConditionCollection : IEnumerable<Condition>
{
private readonly List<Condition> _conditions = new List<Condition>();

View File

@ -1,9 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite
namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite
{
public static class ConditionEvaluator
internal static class ConditionEvaluator
{
public static MatchResults Evaluate(ConditionCollection conditions, RewriteContext context, BackReferenceCollection backReferences)
{

View File

@ -4,9 +4,9 @@
using System;
using System.Collections.Generic;
namespace Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite
namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite
{
public class IISRewriteMap
internal class IISRewriteMap
{
private readonly Dictionary<string, string> _map = new Dictionary<string, string>();

View File

@ -4,9 +4,9 @@
using System.Collections;
using System.Collections.Generic;
namespace Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite
namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite
{
public class IISRewriteMapCollection : IEnumerable<IISRewriteMap>
internal class IISRewriteMapCollection : IEnumerable<IISRewriteMap>
{
private readonly Dictionary<string, IISRewriteMap> _rewriteMaps = new Dictionary<string, IISRewriteMap>();

View File

@ -4,9 +4,9 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Rewrite.Logging;
namespace Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite
namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite
{
public class IISUrlRewriteRule : IRule
internal class IISUrlRewriteRule : IRule
{
public string Name { get; }
public UrlMatch InitialMatch { get; }

View File

@ -4,11 +4,11 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using Microsoft.AspNetCore.Rewrite.Internal.PatternSegments;
using Microsoft.AspNetCore.Rewrite.PatternSegments;
namespace Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite
namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite
{
public class InputParser
internal class InputParser
{
private const char Colon = ':';
private const char OpenBrace = '{';

View File

@ -5,9 +5,9 @@ using System;
using System.Xml;
using System.Xml.Linq;
namespace Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite
namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite
{
public class InvalidUrlRewriteFormatException : FormatException
internal class InvalidUrlRewriteFormatException : FormatException
{
public int LineNumber { get; }
public int LinePosition { get; }

View File

@ -1,9 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite
namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite
{
public enum LogicalGrouping
internal enum LogicalGrouping
{
MatchAll,
MatchAny

View File

@ -1,9 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite
namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite
{
public enum MatchType
internal enum MatchType
{
Pattern,
IsFile,

View File

@ -1,9 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite
namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite
{
public enum PatternSyntax
internal enum PatternSyntax
{
ECMAScript,
Wildcard,

View File

@ -3,9 +3,9 @@
using Microsoft.AspNetCore.Http;
namespace Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite
namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite
{
public enum RedirectType
internal enum RedirectType
{
Permanent = StatusCodes.Status301MovedPermanently,
Found = StatusCodes.Status302Found,

View File

@ -5,9 +5,9 @@ using System;
using System.Linq;
using System.Xml.Linq;
namespace Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite
namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite
{
public static class RewriteMapParser
internal static class RewriteMapParser
{
public static IISRewriteMapCollection Parse(XElement xmlRoot)
{

View File

@ -1,9 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite
namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite
{
public static class RewriteTags
internal static class RewriteTags
{
public const string Action = "action";
public const string Add = "add";

View File

@ -2,12 +2,12 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.AspNetCore.Rewrite.Internal.PatternSegments;
using Microsoft.AspNetCore.Rewrite.PatternSegments;
using Microsoft.Net.Http.Headers;
namespace Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite
namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite
{
public static class ServerVariables
internal static class ServerVariables
{
/// <summary>
/// Returns the matching <see cref="PatternSegment"/> for the given <paramref name="serverVariable"/>

View File

@ -3,11 +3,11 @@
using System;
using System.Text.RegularExpressions;
using Microsoft.AspNetCore.Rewrite.Internal.UrlMatches;
using Microsoft.AspNetCore.Rewrite.UrlMatches;
namespace Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite
namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite
{
public class UriMatchCondition : Condition
internal class UriMatchCondition : Condition
{
private TimeSpan _regexTimeout = TimeSpan.FromSeconds(1);

View File

@ -1,9 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite
namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite
{
public enum UriMatchPart
internal enum UriMatchPart
{
Full,
Path

View File

@ -7,12 +7,12 @@ using System.Globalization;
using System.IO;
using System.Linq;
using System.Xml.Linq;
using Microsoft.AspNetCore.Rewrite.Internal.UrlActions;
using Microsoft.AspNetCore.Rewrite.Internal.UrlMatches;
using Microsoft.AspNetCore.Rewrite.UrlActions;
using Microsoft.AspNetCore.Rewrite.UrlMatches;
namespace Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite
namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite
{
public class UrlRewriteFileParser
internal class UrlRewriteFileParser
{
private InputParser _inputParser;

View File

@ -4,11 +4,11 @@
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using Microsoft.AspNetCore.Rewrite.Internal.UrlMatches;
using Microsoft.AspNetCore.Rewrite.UrlMatches;
namespace Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite
namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite
{
public class UrlRewriteRuleBuilder
internal class UrlRewriteRuleBuilder
{
private readonly TimeSpan _regexTimeout = TimeSpan.FromSeconds(1);

View File

@ -4,7 +4,7 @@
using System;
using System.IO;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.Rewrite.Internal.IISUrlRewrite;
using Microsoft.AspNetCore.Rewrite.IISUrlRewrite;
using Microsoft.Extensions.FileProviders;
namespace Microsoft.AspNetCore.Rewrite

View File

@ -3,9 +3,9 @@
using System.Text.RegularExpressions;
namespace Microsoft.AspNetCore.Rewrite.Internal
namespace Microsoft.AspNetCore.Rewrite
{
public class MatchResults
internal class MatchResults
{
public static readonly MatchResults EmptySuccess = new MatchResults { Success = true };
public static readonly MatchResults EmptyFailure = new MatchResults { Success = false };

View File

@ -1,12 +1,12 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Rewrite.Internal
namespace Microsoft.AspNetCore.Rewrite
{
/// <summary>
/// Represents a string iterator, with captures.
/// </summary>
public class ParserContext
internal class ParserContext
{
public readonly string Template;
public int Index { get; set; }

View File

@ -3,9 +3,9 @@
using System.Collections.Generic;
namespace Microsoft.AspNetCore.Rewrite.Internal
namespace Microsoft.AspNetCore.Rewrite
{
public class Pattern
internal class Pattern
{
public IList<PatternSegment> PatternSegments { get; }
public Pattern(IList<PatternSegment> patternSegments)

View File

@ -1,9 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Rewrite.Internal
namespace Microsoft.AspNetCore.Rewrite
{
public abstract class PatternSegment
internal abstract class PatternSegment
{
public abstract string Evaluate(RewriteContext context, BackReferenceCollection ruleBackReferences, BackReferenceCollection conditionBackReferences);
}

View File

@ -1,9 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Rewrite.Internal.PatternSegments
namespace Microsoft.AspNetCore.Rewrite.PatternSegments
{
public class ConditionMatchSegment : PatternSegment
internal class ConditionMatchSegment : PatternSegment
{
private readonly int _index;

View File

@ -4,9 +4,9 @@
using System;
using System.Globalization;
namespace Microsoft.AspNetCore.Rewrite.Internal.PatternSegments
namespace Microsoft.AspNetCore.Rewrite.PatternSegments
{
public class DateTimeSegment : PatternSegment
internal class DateTimeSegment : PatternSegment
{
private readonly DateTimePortion _portion;

View File

@ -1,9 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Rewrite.Internal.PatternSegments
namespace Microsoft.AspNetCore.Rewrite.PatternSegments
{
public class HeaderSegment : PatternSegment
internal class HeaderSegment : PatternSegment
{
private readonly string _header;

View File

@ -4,7 +4,7 @@
using System;
using Microsoft.AspNetCore.Http;
namespace Microsoft.AspNetCore.Rewrite.Internal.PatternSegments
namespace Microsoft.AspNetCore.Rewrite.PatternSegments
{
internal class IISServerVariableSegment : PatternSegment
{

View File

@ -1,9 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Rewrite.Internal.PatternSegments
namespace Microsoft.AspNetCore.Rewrite.PatternSegments
{
public class IsHttpsModSegment : PatternSegment
internal class IsHttpsModSegment : PatternSegment
{
// Note: Mod rewrite pattern matches on lower case "on" and "off"
// while IIS looks for capitalized "ON" and "OFF"

Some files were not shown because too many files have changed in this diff Show More