mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-05 23:06:10 +00:00
move internal stuff to .Internal namespace
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
|
||||
namespace Octokit.Reactive
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
using Octokit.Reactive.Clients;
|
||||
|
||||
namespace Octokit.Reactive
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
|
||||
namespace Octokit.Tests.Integration
|
||||
{
|
||||
@@ -44,7 +44,7 @@ namespace Octokit.Tests.Integration
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <see cref="Octokit.Http.Credentials"/> for a GitHub test account (DO NOT USE A "REAL" ACCOUNT).
|
||||
/// <see cref="Octokit.Internal.Credentials"/> for a GitHub test account (DO NOT USE A "REAL" ACCOUNT).
|
||||
/// </summary>
|
||||
public Credentials GitHubCredentials { get; private set; }
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
using Octokit.Tests.Helpers;
|
||||
using Xunit;
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using Octokit.Authentication;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
using Xunit;
|
||||
|
||||
namespace Octokit.Tests
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
using Xunit;
|
||||
|
||||
namespace Octokit.Tests.Authentication
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using NSubstitute;
|
||||
using Octokit.Authentication;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
using Xunit;
|
||||
|
||||
namespace Octokit.Tests
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
using NSubstitute;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
using Xunit;
|
||||
|
||||
namespace Octokit.Tests.Clients
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using NSubstitute;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
using Xunit;
|
||||
|
||||
namespace Octokit.Tests.Clients
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using NSubstitute;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
using Octokit.Tests.Helpers;
|
||||
using Xunit;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using NSubstitute;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
using Octokit.Tests.Helpers;
|
||||
using Xunit;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ using System;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using NSubstitute;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
using Octokit.Tests.Helpers;
|
||||
using Xunit;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using NSubstitute;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
using Octokit.Tests.Helpers;
|
||||
using Xunit;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Collections.ObjectModel;
|
||||
#endif
|
||||
using System.Threading.Tasks;
|
||||
using NSubstitute;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
using Octokit.Tests.Helpers;
|
||||
using Xunit;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization.Formatters.Binary;
|
||||
using NSubstitute;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
using Xunit;
|
||||
using Xunit.Extensions;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
using NSubstitute;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
using Xunit;
|
||||
|
||||
namespace Octokit.Tests
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
using NSubstitute;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
|
||||
namespace Octokit.Tests
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using NSubstitute;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
using Octokit.Tests.Helpers;
|
||||
using Xunit;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
using Xunit;
|
||||
using Xunit.Extensions;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using NSubstitute;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
using Octokit.Tests.Helpers;
|
||||
using Xunit;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
using Xunit;
|
||||
using Xunit.Extensions;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
using Xunit;
|
||||
|
||||
namespace Octokit.Tests.Http
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
using Xunit;
|
||||
|
||||
namespace Octokit.Tests.Http
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
using Xunit;
|
||||
|
||||
namespace Octokit.Tests.Http
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
using Xunit;
|
||||
|
||||
namespace Octokit.Tests
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
using System.Collections.Generic;
|
||||
#endif
|
||||
using System.Threading.Tasks;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using Octokit.Http;
|
||||
|
||||
namespace Octokit.Authentication
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
class AnonymousAuthenticator : IAuthenticationHandler
|
||||
{
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using Octokit.Http;
|
||||
|
||||
namespace Octokit.Authentication
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
class Authenticator
|
||||
{
|
||||
|
||||
@@ -2,9 +2,8 @@
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.Text;
|
||||
using Octokit.Http;
|
||||
|
||||
namespace Octokit.Authentication
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
class BasicAuthenticator : IAuthenticationHandler
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using Octokit.Http;
|
||||
|
||||
namespace Octokit.Authentication
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
interface IAuthenticationHandler
|
||||
{
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using Octokit.Http;
|
||||
|
||||
namespace Octokit.Authentication
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
class TokenAuthenticator : IAuthenticationHandler
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
using System.Collections.Generic;
|
||||
#endif
|
||||
using System.Threading.Tasks;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using System.Collections.ObjectModel;
|
||||
#endif
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
using System.Collections.Generic;
|
||||
#endif
|
||||
using System.Threading.Tasks;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
#endif
|
||||
using System.Threading.Tasks;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
#endif
|
||||
using System.Threading.Tasks;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
using System.Collections.Generic;
|
||||
#endif
|
||||
using System.Threading.Tasks;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
#endif
|
||||
using System.Threading.Tasks;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Runtime.Serialization;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Octokit.Http
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
public class ApiConnection<T> : IApiConnection<T>
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
#endif
|
||||
|
||||
namespace Octokit.Http
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
/// <summary>
|
||||
/// Extra information returned as part of each api response.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace Octokit.Http
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
public static class ApiInfoExtensions
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace Octokit.Http
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
public class ApiInfoParser
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Net;
|
||||
|
||||
namespace Octokit.Http
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
public class ApiResponse<T> : IResponse<T>
|
||||
{
|
||||
|
||||
@@ -4,9 +4,8 @@ using System.Globalization;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using Octokit.Authentication;
|
||||
|
||||
namespace Octokit.Http
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
// NOTE: Every request method must go through the `RunRequest` code path. So if you need to add a new method
|
||||
// ensure it goes through there. :)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Octokit.Http
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
public class Credentials
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Octokit.Http
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
public static class CredentialsExtensions
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Octokit.Http
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
public class HttpClientAdapter : IHttpClient
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Net.Http;
|
||||
|
||||
namespace Octokit.Http
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
public static class HttpVerb
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Diagnostics.CodeAnalysis;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Octokit.Http
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
/// <summary>
|
||||
/// Wraps an IConnection and provides useful methods for an endpoint.
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Diagnostics.CodeAnalysis;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Octokit.Http
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
public interface IConnection
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Octokit.Http
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
public interface ICredentialStore
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Octokit.Http
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
/// <summary>
|
||||
/// Generic Http client. Useful for those who want to swap out System.Net.HttpClient with something else.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Octokit.Http
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
public interface IJsonSerializer
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
namespace Octokit.Http
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
public interface IRequest
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Net;
|
||||
|
||||
namespace Octokit.Http
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
public interface IResponse<T> : IResponse
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Octokit.Http
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
public class InMemoryCredentialStore : ICredentialStore
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.IO;
|
||||
using System.Net.Http;
|
||||
|
||||
namespace Octokit.Http
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
/// <summary>
|
||||
/// Responsible for serializing the request and response as JSON and
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Octokit.Http
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
public class ReadOnlyPagedCollection<T> : ReadOnlyCollection<T>, IReadOnlyPagedCollection<T>
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
namespace Octokit.Http
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
public class Request : IRequest
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Diagnostics.CodeAnalysis;
|
||||
using System.Reflection;
|
||||
using Octokit.Reflection;
|
||||
|
||||
namespace Octokit.Http
|
||||
namespace Octokit.Internal
|
||||
{
|
||||
public class SimpleJsonSerializer : IJsonSerializer
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Octokit.Http;
|
||||
using Octokit.Internal;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=Authentication/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=Clients/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=Exceptions/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=Helpers/@EntryIndexedValue">True</s:Boolean>
|
||||
|
||||
Reference in New Issue
Block a user