Skip to content

Commit

Permalink
Updated accessibility of Ceen classes to be Internal
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickRitchie committed May 14, 2024
1 parent a980444 commit dd1f148
Show file tree
Hide file tree
Showing 55 changed files with 450 additions and 433 deletions.
2 changes: 1 addition & 1 deletion libraries/MTConnect.NET-HTTP/Ceen/Common/AppDomainTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Ceen
/// <summary>
/// Implementation of a Task that works across app domains
/// </summary>
public class AppDomainTask : MarshalByRefObject
internal class AppDomainTask : MarshalByRefObject
{
/// <summary>
/// A task completion source
Expand Down
12 changes: 6 additions & 6 deletions libraries/MTConnect.NET-HTTP/Ceen/Common/AsyncLock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

namespace Ceen
{
// Implementation based on: http://blogs.msdn.com/b/pfxteam/archive/2012/02/12/10266988.aspx
// Implementation based on: http://blogs.msdn.com/b/pfxteam/archive/2012/02/12/10266988.aspx

// Added support for cancellation tokens
// Added support for cancellation tokens

/// <summary>
/// Implementation of a Semaphore that is usable with await statements
/// </summary>
public class AsyncSemaphore
/// <summary>
/// Implementation of a Semaphore that is usable with await statements
/// </summary>
internal class AsyncSemaphore
{
/// <summary>
/// A task signaling completion
Expand Down
12 changes: 6 additions & 6 deletions libraries/MTConnect.NET-HTTP/Ceen/Common/Attributes.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System;
namespace Ceen
{
/// <summary>
/// An attribute used to require a dependency on a particular handler.
/// This can be used to force an authentication or cookie module to
/// be loaded before a method can be called
/// </summary>
public class RequireHandlerAttribute : Attribute
/// <summary>
/// An attribute used to require a dependency on a particular handler.
/// This can be used to force an authentication or cookie module to
/// be loaded before a method can be called
/// </summary>
internal class RequireHandlerAttribute : Attribute
{
/// <summary>
/// Gets or sets a value indicating whether derived handlers are allowed.
Expand Down
6 changes: 3 additions & 3 deletions libraries/MTConnect.NET-HTTP/Ceen/Common/ContextUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Ceen
/// <summary>
/// Helper class for providing a context for each run
/// </summary>
public static class LoaderContext
internal static class LoaderContext
{
/// <summary>
/// Interface for allowing the caller to freeze the scope
Expand Down Expand Up @@ -142,7 +142,7 @@ public static ILoaderContextInstance StartContext()
/// <summary>
/// Helper class for providing the current execution context via the call context
/// </summary>
public static class Context
internal static class Context
{
/// <summary>
/// The scope data, using AsyncLocal
Expand All @@ -166,7 +166,7 @@ public static void SetCurrentContext(IHttpContext current)
/// <summary>
/// Gets the current active request
/// </summary>
public static IHttpRequest Request => m_activeContext.Value?.Request;
public static IHttpRequestInternal Request => m_activeContext.Value?.Request;
/// <summary>
/// Gets the current active response
/// </summary>
Expand Down
8 changes: 4 additions & 4 deletions libraries/MTConnect.NET-HTTP/Ceen/Common/DerivedSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Ceen
{
/// <summary>
/// A class that allows a base class to store common settings, that can then be overridden in the sub-classes
/// </summary>
public abstract class DerivedSettings<TBaseClass>
/// <summary>
/// A class that allows a base class to store common settings, that can then be overridden in the sub-classes
/// </summary>
internal abstract class DerivedSettings<TBaseClass>
{
/// <summary>
/// The base dictionary with all the settings
Expand Down
2 changes: 1 addition & 1 deletion libraries/MTConnect.NET-HTTP/Ceen/Common/Exceptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Ceen
/// as an HTTP error message
/// </summary>
[Serializable]
public class HttpException : Exception
internal class HttpException : Exception
{
/// <summary>
/// Gets the status code.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Ceen
{
/// <summary>
/// List of supported HTTP status codes
/// </summary>
public enum HttpStatusCode
/// <summary>
/// List of supported HTTP status codes
/// </summary>
internal enum HttpStatusCode
{
Continue = 100,
SwitchingProtocols = 101,
Expand Down Expand Up @@ -72,10 +72,10 @@ public enum HttpStatusCode
NetworkAuthenticationRequired = 511,
}

/// <summary>
/// List of default messags to return for a HTTP status code
/// </summary>
public static class HttpStatusMessages
/// <summary>
/// List of default messags to return for a HTTP status code
/// </summary>
internal static class HttpStatusMessages
{
public static string DefaultMessage(HttpStatusCode code)
{
Expand Down
Loading

0 comments on commit dd1f148

Please sign in to comment.