Skip to content

Commit

Permalink
Updates namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
waldekmastykarz committed Feb 11, 2025
1 parent 59bfbc9 commit b55123e
Show file tree
Hide file tree
Showing 127 changed files with 223 additions and 223 deletions.
2 changes: 1 addition & 1 deletion dev-proxy-abstractions/BaseProxyPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;

namespace Microsoft.DevProxy.Abstractions;
namespace DevProxy.Abstractions;

public abstract class BaseProxyPlugin : IProxyPlugin
{
Expand Down
2 changes: 1 addition & 1 deletion dev-proxy-abstractions/BaseReportingPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;

namespace Microsoft.DevProxy.Abstractions;
namespace DevProxy.Abstractions;

public abstract class BaseReportingPlugin(IPluginEvents pluginEvents, IProxyContext context, ILogger logger, ISet<UrlToWatch> urlsToWatch, IConfigurationSection? configSection = null) : BaseProxyPlugin(pluginEvents, context, logger, urlsToWatch, configSection)
{
Expand Down
2 changes: 1 addition & 1 deletion dev-proxy-abstractions/CommandLineExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.CommandLine;
using System.CommandLine.Parsing;

namespace Microsoft.DevProxy.Abstractions;
namespace DevProxy.Abstractions;

public static class CommandLineExtensions
{
Expand Down
2 changes: 1 addition & 1 deletion dev-proxy-abstractions/FuncExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Titanium.Web.Proxy;
using Titanium.Web.Proxy.EventArguments;

namespace Microsoft.DevProxy.Abstractions;
namespace DevProxy.Abstractions;

public static class FuncExtensions
{
Expand Down
2 changes: 1 addition & 1 deletion dev-proxy-abstractions/GraphBatchRequestPayload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace Microsoft.DevProxy.Abstractions;
namespace DevProxy.Abstractions;

public class GraphBatchRequestPayload
{
Expand Down
2 changes: 1 addition & 1 deletion dev-proxy-abstractions/GraphBatchResponsePayload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace Microsoft.DevProxy.Abstractions;
namespace DevProxy.Abstractions;

public class GraphBatchResponsePayload
{
Expand Down
2 changes: 1 addition & 1 deletion dev-proxy-abstractions/ILoggerExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Text.Json;
using Microsoft.DevProxy.Abstractions;
using DevProxy.Abstractions;

#pragma warning disable IDE0130
namespace Microsoft.Extensions.Logging;
Expand Down
2 changes: 1 addition & 1 deletion dev-proxy-abstractions/IProxyConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using Microsoft.Extensions.Logging;

namespace Microsoft.DevProxy.Abstractions;
namespace DevProxy.Abstractions;

public interface IProxyConfiguration
{
Expand Down
2 changes: 1 addition & 1 deletion dev-proxy-abstractions/IProxyLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using Titanium.Web.Proxy.EventArguments;

namespace Microsoft.DevProxy.Abstractions;
namespace DevProxy.Abstractions;

public enum MessageType
{
Expand Down
2 changes: 1 addition & 1 deletion dev-proxy-abstractions/IProxyPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System.CommandLine;

namespace Microsoft.DevProxy.Abstractions;
namespace DevProxy.Abstractions;

public interface IProxyPlugin
{
Expand Down
2 changes: 1 addition & 1 deletion dev-proxy-abstractions/JsonExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System.Text.Json;

namespace Microsoft.DevProxy.Abstractions;
namespace DevProxy.Abstractions;

// from https://stackoverflow.com/questions/61553962/getting-nested-properties-with-system-text-json
public static partial class JsonExtensions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace Microsoft.DevProxy.Abstractions.LanguageModel;
namespace DevProxy.Abstractions.LanguageModel;

public interface ILanguageModelChatCompletionMessage
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace Microsoft.DevProxy.Abstractions.LanguageModel;
namespace DevProxy.Abstractions.LanguageModel;

public interface ILanguageModelClient
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace Microsoft.DevProxy.Abstractions.LanguageModel;
namespace DevProxy.Abstractions.LanguageModel;

public interface ILanguageModelCompletionResponse
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace Microsoft.DevProxy.Abstractions.LanguageModel;
namespace DevProxy.Abstractions.LanguageModel;

public class LanguageModelConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Net.Http.Json;
using Microsoft.Extensions.Logging;

namespace Microsoft.DevProxy.Abstractions.LanguageModel;
namespace DevProxy.Abstractions.LanguageModel;

public class OllamaLanguageModelClient(LanguageModelConfiguration? configuration, ILogger logger) : ILanguageModelClient
{
Expand Down
2 changes: 1 addition & 1 deletion dev-proxy-abstractions/LanguageModel/OllamaModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System.Text.Json.Serialization;

namespace Microsoft.DevProxy.Abstractions.LanguageModel;
namespace DevProxy.Abstractions.LanguageModel;

public abstract class OllamaResponse : ILanguageModelCompletionResponse
{
Expand Down
2 changes: 1 addition & 1 deletion dev-proxy-abstractions/MSGraphDbUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Microsoft.OpenApi.Models;
using Microsoft.OpenApi.Readers;

namespace Microsoft.DevProxy.Abstractions;
namespace DevProxy.Abstractions;

public static class MSGraphDbUtils
{
Expand Down
2 changes: 1 addition & 1 deletion dev-proxy-abstractions/MockRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace Microsoft.DevProxy.Abstractions;
namespace DevProxy.Abstractions;

public class MockRequest
{
Expand Down
2 changes: 1 addition & 1 deletion dev-proxy-abstractions/MockResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace Microsoft.DevProxy.Abstractions;
namespace DevProxy.Abstractions;

public class MockResponse
{
Expand Down
4 changes: 2 additions & 2 deletions dev-proxy-abstractions/PluginEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
using System.CommandLine.Invocation;
using System.Security.Cryptography.X509Certificates;
using System.Text.Json.Serialization;
using Microsoft.DevProxy.Abstractions.LanguageModel;
using DevProxy.Abstractions.LanguageModel;
using Titanium.Web.Proxy;
using Titanium.Web.Proxy.EventArguments;
using Titanium.Web.Proxy.Http;

namespace Microsoft.DevProxy.Abstractions;
namespace DevProxy.Abstractions;

public interface IProxyContext
{
Expand Down
2 changes: 1 addition & 1 deletion dev-proxy-abstractions/ProxyUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using System.Text.RegularExpressions;
using Titanium.Web.Proxy.Http;

namespace Microsoft.DevProxy.Abstractions;
namespace DevProxy.Abstractions;

class ParsedSample
{
Expand Down
2 changes: 1 addition & 1 deletion dev-proxy-abstractions/ResponseState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace Microsoft.DevProxy.Abstractions;
namespace DevProxy.Abstractions;

public class ResponseState
{
Expand Down
2 changes: 1 addition & 1 deletion dev-proxy-abstractions/UrlToWatch.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.RegularExpressions;

namespace Microsoft.DevProxy.Abstractions;
namespace DevProxy.Abstractions;

public class UrlToWatch(Regex url, bool exclude = false)
{
Expand Down
2 changes: 1 addition & 1 deletion dev-proxy-abstractions/dev-proxy-abstractions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<RootNamespace>Microsoft.DevProxy.Abstractions</RootNamespace>
<RootNamespace>DevProxy.Abstractions</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>0.24.0</Version>
Expand Down
4 changes: 2 additions & 2 deletions dev-proxy-plugins/ApiCenter/ApiCenterClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
using Azure.Core;
using Azure.Core.Diagnostics;
using Azure.Identity;
using Microsoft.DevProxy.Abstractions;
using DevProxy.Abstractions;
using Microsoft.Extensions.Logging;

namespace Microsoft.DevProxy.Plugins.ApiCenter;
namespace DevProxy.Plugins.ApiCenter;

internal class ApiCenterClientConfiguration
{
Expand Down
4 changes: 2 additions & 2 deletions dev-proxy-plugins/ApiCenter/ModelExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
// See the LICENSE file in the project root for more information.

using System.Diagnostics;
using Microsoft.DevProxy.Abstractions;
using DevProxy.Abstractions;
using Microsoft.Extensions.Logging;
using Microsoft.OpenApi.Readers;

namespace Microsoft.DevProxy.Plugins.ApiCenter;
namespace DevProxy.Plugins.ApiCenter;

public static class ModelExtensions
{
Expand Down
2 changes: 1 addition & 1 deletion dev-proxy-plugins/ApiCenter/Models.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using Microsoft.OpenApi.Models;

namespace Microsoft.DevProxy.Plugins.ApiCenter;
namespace DevProxy.Plugins.ApiCenter;

internal class Collection<T>()
{
Expand Down
2 changes: 1 addition & 1 deletion dev-proxy-plugins/AuthenticationDelegatingHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Net.Http.Headers;
using Azure.Core;

namespace Microsoft.DevProxy.Plugins;
namespace DevProxy.Plugins;

internal class AuthenticationDelegatingHandler(TokenCredential credential, string[] scopes) : DelegatingHandler
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
// See the LICENSE file in the project root for more information.

using Microsoft.Extensions.Logging;
using Microsoft.DevProxy.Abstractions;
using DevProxy.Abstractions;
using System.Text.Json;

namespace Microsoft.DevProxy.Plugins.Behavior;
namespace DevProxy.Plugins.Behavior;

internal class RateLimitingCustomResponseLoader(ILogger logger, RateLimitConfiguration configuration) : IDisposable
{
Expand Down
4 changes: 2 additions & 2 deletions dev-proxy-plugins/Behavior/RateLimitingPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Microsoft.DevProxy.Abstractions;
using DevProxy.Abstractions;
using System.Net;
using System.Text.Json;
using System.Text.RegularExpressions;
using Titanium.Web.Proxy.Http;
using Titanium.Web.Proxy.Models;

namespace Microsoft.DevProxy.Plugins.Behavior;
namespace DevProxy.Plugins.Behavior;

public enum RateLimitResponseWhenLimitExceeded
{
Expand Down
4 changes: 2 additions & 2 deletions dev-proxy-plugins/Behavior/RetryAfterPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Microsoft.DevProxy.Abstractions;
using DevProxy.Abstractions;
using System.Net;
using System.Text.Json;
using System.Text.RegularExpressions;
using Titanium.Web.Proxy.Http;
using Titanium.Web.Proxy.Models;

namespace Microsoft.DevProxy.Plugins.Behavior;
namespace DevProxy.Plugins.Behavior;

public class RetryAfterPlugin(IPluginEvents pluginEvents, IProxyContext context, ILogger logger, ISet<UrlToWatch> urlsToWatch, IConfigurationSection? configSection = null) : BaseProxyPlugin(pluginEvents, context, logger, urlsToWatch, configSection)
{
Expand Down
2 changes: 1 addition & 1 deletion dev-proxy-plugins/GenericErrorResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace Microsoft.DevProxy.Plugins;
namespace DevProxy.Plugins;

public class GenericErrorResponse
{
Expand Down
2 changes: 1 addition & 1 deletion dev-proxy-plugins/GraphErrorObjects.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System.Text.Json.Serialization;

namespace Microsoft.DevProxy.Plugins;
namespace DevProxy.Plugins;

public class GraphErrorResponseBody(GraphErrorResponseError error)
{
Expand Down
4 changes: 2 additions & 2 deletions dev-proxy-plugins/GraphUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
// See the LICENSE file in the project root for more information.

using System.Net.Http.Json;
using Microsoft.DevProxy.Plugins.MinimalPermissions;
using DevProxy.Plugins.MinimalPermissions;
using Microsoft.Extensions.Logging;
using Titanium.Web.Proxy.Http;

namespace Microsoft.DevProxy.Plugins;
namespace DevProxy.Plugins;

public class GraphUtils
{
Expand Down
4 changes: 2 additions & 2 deletions dev-proxy-plugins/Guidance/CachingGuidancePlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Microsoft.DevProxy.Abstractions;
using DevProxy.Abstractions;
using Titanium.Web.Proxy.Http;

namespace Microsoft.DevProxy.Plugins.Guidance;
namespace DevProxy.Plugins.Guidance;

public class CachingGuidancePluginConfiguration
{
Expand Down
4 changes: 2 additions & 2 deletions dev-proxy-plugins/Guidance/GraphBetaSupportGuidancePlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Microsoft.DevProxy.Abstractions;
using DevProxy.Abstractions;
using Titanium.Web.Proxy.Http;

namespace Microsoft.DevProxy.Plugins.Guidance;
namespace DevProxy.Plugins.Guidance;

public class GraphBetaSupportGuidancePlugin(IPluginEvents pluginEvents, IProxyContext context, ILogger logger, ISet<UrlToWatch> urlsToWatch, IConfigurationSection? configSection = null) : BaseProxyPlugin(pluginEvents, context, logger, urlsToWatch, configSection)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Microsoft.DevProxy.Abstractions;
using DevProxy.Abstractions;
using Titanium.Web.Proxy.Http;

namespace Microsoft.DevProxy.Plugins.Guidance;
namespace DevProxy.Plugins.Guidance;

public class GraphClientRequestIdGuidancePlugin(IPluginEvents pluginEvents, IProxyContext context, ILogger logger, ISet<UrlToWatch> urlsToWatch, IConfigurationSection? configSection = null) : BaseProxyPlugin(pluginEvents, context, logger, urlsToWatch, configSection)
{
Expand Down
Loading

0 comments on commit b55123e

Please sign in to comment.