public void Register(IAppHost appHost) { appHost.RegisterServicesInAssembly(typeof(LayerTokenService).Assembly); // if nothing is registered, fallback to the default one. if (appHost.TryResolve <ILayerUserValidator>() == null) { appHost.RegisterAs <ServiceStackSessionUserValidator, ILayerUserValidator>(); } }
public void Register(IAppHost appHost) { appHost.RegisterServicesInAssembly(GetType().Assembly); }