move internal stuff to .Internal namespace

This commit is contained in:
half-ogre
2013-10-08 15:14:06 -07:00
parent 39b4c35e7c
commit 6f3fa81789
66 changed files with 67 additions and 76 deletions

View File

@@ -1,4 +1,4 @@
using Octokit.Http;
using Octokit.Internal;
namespace Octokit.Reactive
{

View File

@@ -1,4 +1,4 @@
using Octokit.Http;
using Octokit.Internal;
using Octokit.Reactive.Clients;
namespace Octokit.Reactive

View File

@@ -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; }

View File

@@ -1,6 +1,6 @@
using System.Net;
using System.Threading.Tasks;
using Octokit.Http;
using Octokit.Internal;
using Octokit.Tests.Helpers;
using Xunit;

View File

@@ -1,6 +1,5 @@
using System;
using Octokit.Authentication;
using Octokit.Http;
using Octokit.Internal;
using Xunit;
namespace Octokit.Tests

View File

@@ -1,5 +1,5 @@
using System;
using Octokit.Http;
using Octokit.Internal;
using Xunit;
namespace Octokit.Tests.Authentication

View File

@@ -1,7 +1,6 @@
using System;
using NSubstitute;
using Octokit.Authentication;
using Octokit.Http;
using Octokit.Internal;
using Xunit;
namespace Octokit.Tests

View File

@@ -1,6 +1,6 @@
using System;
using NSubstitute;
using Octokit.Http;
using Octokit.Internal;
using Xunit;
namespace Octokit.Tests.Clients

View File

@@ -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

View File

@@ -1,7 +1,7 @@
using System;
using System.Threading.Tasks;
using NSubstitute;
using Octokit.Http;
using Octokit.Internal;
using Octokit.Tests.Helpers;
using Xunit;

View File

@@ -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;

View File

@@ -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;

View File

@@ -1,7 +1,7 @@
using System;
using System.Threading.Tasks;
using NSubstitute;
using Octokit.Http;
using Octokit.Internal;
using Octokit.Tests.Helpers;
using Xunit;

View File

@@ -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;

View File

@@ -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;

View File

@@ -1,6 +1,6 @@
using System;
using NSubstitute;
using Octokit.Http;
using Octokit.Internal;
using Xunit;
namespace Octokit.Tests

View File

@@ -1,6 +1,6 @@
using System;
using NSubstitute;
using Octokit.Http;
using Octokit.Internal;
namespace Octokit.Tests
{

View File

@@ -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;

View File

@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Octokit.Http;
using Octokit.Internal;
using Xunit;
using Xunit.Extensions;

View File

@@ -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;

View File

@@ -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;

View File

@@ -1,6 +1,6 @@
using System;
using System.IO;
using Octokit.Http;
using Octokit.Internal;
using Xunit;
namespace Octokit.Tests.Http

View File

@@ -1,4 +1,4 @@
using Octokit.Http;
using Octokit.Internal;
using Xunit;
namespace Octokit.Tests.Http

View File

@@ -1,4 +1,4 @@
using Octokit.Http;
using Octokit.Internal;
using Xunit;
namespace Octokit.Tests.Http

View File

@@ -1,5 +1,5 @@
using System;
using Octokit.Http;
using Octokit.Internal;
using Xunit;
namespace Octokit.Tests

View File

@@ -3,7 +3,7 @@
using System.Collections.Generic;
#endif
using System.Threading.Tasks;
using Octokit.Http;
using Octokit.Internal;
namespace Octokit
{

View File

@@ -1,6 +1,4 @@
using Octokit.Http;
namespace Octokit.Authentication
namespace Octokit.Internal
{
class AnonymousAuthenticator : IAuthenticationHandler
{

View File

@@ -1,7 +1,6 @@
using System.Collections.Generic;
using Octokit.Http;
namespace Octokit.Authentication
namespace Octokit.Internal
{
class Authenticator
{

View File

@@ -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
{

View File

@@ -1,6 +1,4 @@
using Octokit.Http;
namespace Octokit.Authentication
namespace Octokit.Internal
{
interface IAuthenticationHandler
{

View File

@@ -1,8 +1,7 @@
using System;
using System.Globalization;
using Octokit.Http;
namespace Octokit.Authentication
namespace Octokit.Internal
{
class TokenAuthenticator : IAuthenticationHandler
{

View File

@@ -1,4 +1,4 @@
using Octokit.Http;
using Octokit.Internal;
namespace Octokit
{

View File

@@ -3,7 +3,7 @@
using System.Collections.Generic;
#endif
using System.Threading.Tasks;
using Octokit.Http;
using Octokit.Internal;
namespace Octokit
{

View File

@@ -5,7 +5,7 @@ using System.Collections.ObjectModel;
#endif
using System.Linq;
using System.Threading.Tasks;
using Octokit.Http;
using Octokit.Internal;
namespace Octokit
{

View File

@@ -3,7 +3,7 @@
using System.Collections.Generic;
#endif
using System.Threading.Tasks;
using Octokit.Http;
using Octokit.Internal;
namespace Octokit
{

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
#endif
using System.Threading.Tasks;
using Octokit.Http;
using Octokit.Internal;
namespace Octokit
{

View File

@@ -3,7 +3,7 @@ using System;
using System.Collections.Generic;
#endif
using System.Threading.Tasks;
using Octokit.Http;
using Octokit.Internal;
namespace Octokit
{

View File

@@ -3,7 +3,7 @@
using System.Collections.Generic;
#endif
using System.Threading.Tasks;
using Octokit.Http;
using Octokit.Internal;
namespace Octokit
{

View File

@@ -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
{

View File

@@ -1,7 +1,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.Serialization;
using Octokit.Http;
using Octokit.Internal;
namespace Octokit
{

View File

@@ -1,5 +1,5 @@
using System;
using Octokit.Http;
using Octokit.Internal;
namespace Octokit
{

View File

@@ -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>
{

View File

@@ -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.

View File

@@ -1,6 +1,6 @@
using System;
namespace Octokit.Http
namespace Octokit.Internal
{
public static class ApiInfoExtensions
{

View File

@@ -4,7 +4,7 @@ using System.Globalization;
using System.Linq;
using System.Text.RegularExpressions;
namespace Octokit.Http
namespace Octokit.Internal
{
public class ApiInfoParser
{

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Net;
namespace Octokit.Http
namespace Octokit.Internal
{
public class ApiResponse<T> : IResponse<T>
{

View File

@@ -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. :)

View File

@@ -1,6 +1,6 @@
using System.Diagnostics.CodeAnalysis;
namespace Octokit.Http
namespace Octokit.Internal
{
public class Credentials
{

View File

@@ -1,4 +1,4 @@
namespace Octokit.Http
namespace Octokit.Internal
{
public static class CredentialsExtensions
{

View File

@@ -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
{

View File

@@ -1,6 +1,6 @@
using System.Net.Http;
namespace Octokit.Http
namespace Octokit.Internal
{
public static class HttpVerb
{

View File

@@ -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.

View File

@@ -4,7 +4,7 @@ using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Threading.Tasks;
namespace Octokit.Http
namespace Octokit.Internal
{
public interface IConnection
{

View File

@@ -1,6 +1,6 @@
using System.Diagnostics.CodeAnalysis;
namespace Octokit.Http
namespace Octokit.Internal
{
public interface ICredentialStore
{

View File

@@ -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.

View File

@@ -1,4 +1,4 @@
namespace Octokit.Http
namespace Octokit.Internal
{
public interface IJsonSerializer
{

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Net.Http;
namespace Octokit.Http
namespace Octokit.Internal
{
public interface IRequest
{

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Net;
namespace Octokit.Http
namespace Octokit.Internal
{
public interface IResponse<T> : IResponse
{

View File

@@ -1,4 +1,4 @@
namespace Octokit.Http
namespace Octokit.Internal
{
public class InMemoryCredentialStore : ICredentialStore
{

View File

@@ -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

View File

@@ -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>
{

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Net.Http;
namespace Octokit.Http
namespace Octokit.Internal
{
public class Request : IRequest
{

View File

@@ -4,7 +4,7 @@ using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using Octokit.Reflection;
namespace Octokit.Http
namespace Octokit.Internal
{
public class SimpleJsonSerializer : IJsonSerializer
{

View File

@@ -1,4 +1,4 @@
using Octokit.Http;
using Octokit.Internal;
namespace Octokit
{

View File

@@ -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
{

View File

@@ -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>