-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Added documentation for changes
- Loading branch information
1 parent
2d5b1ba
commit 7bd40a2
Showing
6 changed files
with
115 additions
and
6 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
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,6 +1,17 @@ | ||
namespace Wolverine.Http.Resources; | ||
|
||
#region sample_IResourceWriterPolicy | ||
/// <summary> | ||
/// Use to apply custom handling to the primary result of an HTTP endpoint handler | ||
/// </summary> | ||
public interface IResourceWriterPolicy | ||
{ | ||
/// <summary> | ||
/// Called during bootstrapping to see whether this policy can handle the chain. If yes no further policies are tried. | ||
/// </summary> | ||
/// <param name="chain"> The chain to test against</param> | ||
/// <returns>True if it applies to the chain, false otherwise</returns> | ||
bool TryApply(HttpChain chain); | ||
} | ||
} | ||
|
||
#endregion |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using Wolverine.Http; | ||
using Wolverine.Http.Resources; | ||
|
||
public class CustomResourceWriterPolicy : IResourceWriterPolicy | ||
{ | ||
public bool TryApply(HttpChain chain) | ||
{ | ||
return false; | ||
} | ||
} |
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