using System; using ServiceStack.FluentValidation; using ServiceStack.ServiceInterface.Auth; using ServiceStack.WebHost.Endpoints; namespace ServiceStack.ServiceInterface { /// /// Enable the Registration feature and configure the RegistrationService. /// public class RegistrationFeature : IPlugin { private string AtRestPath { get; set; } public RegistrationFeature() { this.AtRestPath = "/register"; } public void Register(IAppHost appHost) { appHost.RegisterService(AtRestPath); appHost.RegisterAs>(); } } }