-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to file-local namespaces (#519)
* Adjust namespaces to folder names * Switch to file local namespaces
- Loading branch information
1 parent
2547873
commit 9f87f7f
Showing
380 changed files
with
9,423 additions
and
10,622 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
namespace GenHTTP.Api.Content.Authentication | ||
namespace GenHTTP.Api.Content.Authentication; | ||
|
||
/// <summary> | ||
/// Information about an user that is associated with | ||
/// the currently handled request. | ||
/// </summary> | ||
public interface IUser | ||
{ | ||
|
||
/// <summary> | ||
/// Information about an user that is associated with | ||
/// the currently handled request. | ||
/// The name of the user as it should be shown on | ||
/// the UI (e.g. a rendered, themed page). | ||
/// </summary> | ||
public interface IUser | ||
{ | ||
|
||
/// <summary> | ||
/// The name of the user as it should be shown on | ||
/// the UI (e.g. a rendered, themed page). | ||
/// </summary> | ||
string DisplayName { get; } | ||
|
||
} | ||
string DisplayName { get; } | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
namespace GenHTTP.Api.Content | ||
namespace GenHTTP.Api.Content; | ||
|
||
/// <summary> | ||
/// Functionality that wraps around a regular handler to add a | ||
/// concern such as response compression. | ||
/// </summary> | ||
public interface IConcern : IHandler | ||
{ | ||
|
||
/// <summary> | ||
/// Functionality that wraps around a regular handler to add a | ||
/// concern such as response compression. | ||
/// The actual handler the concern is added to. | ||
/// </summary> | ||
public interface IConcern : IHandler | ||
{ | ||
|
||
/// <summary> | ||
/// The actual handler the concern is added to. | ||
/// </summary> | ||
IHandler Content { get; } | ||
|
||
} | ||
IHandler Content { get; } | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,19 @@ | ||
using System; | ||
|
||
namespace GenHTTP.Api.Content | ||
namespace GenHTTP.Api.Content; | ||
|
||
/// <summary> | ||
/// Interface which needs to be implementd by factories providing concern instances. | ||
/// </summary> | ||
public interface IConcernBuilder | ||
{ | ||
|
||
/// <summary> | ||
/// Interface which needs to be implementd by factories providing concern instances. | ||
/// Builds the concern and sets the inner handler of it. | ||
/// </summary> | ||
public interface IConcernBuilder | ||
{ | ||
|
||
/// <summary> | ||
/// Builds the concern and sets the inner handler of it. | ||
/// </summary> | ||
/// <param name="parent">The parent of the resulting concern handler instance</param> | ||
/// <param name="contentFactory">A method providing the content of the concern</param> | ||
/// <returns>The newly created concern instance</returns> | ||
IConcern Build(IHandler parent, Func<IHandler, IHandler> contentFactory); | ||
|
||
} | ||
/// <param name="parent">The parent of the resulting concern handler instance</param> | ||
/// <param name="contentFactory">A method providing the content of the concern</param> | ||
/// <returns>The newly created concern instance</returns> | ||
IConcern Build(IHandler parent, Func<IHandler, IHandler> contentFactory); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.