Created
June 21, 2021 10:19
-
-
Save gistlyn/36d4eb474fc546cff8905d4546411bbd to your computer and use it in GitHub Desktop.
validation
This file contains hidden or 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
using ServiceStack; | |
using ServiceStack.Data; | |
using ServiceStack.Validation; | |
namespace MyApp | |
{ | |
public class ConfigureValidation : IConfigureAppHost | |
{ | |
public void Configure(IAppHost appHost) | |
{ | |
appHost.Plugins.Add(new ValidationFeature()); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment