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>();
            }
        }
Пример #2
0
 public void Register(IAppHost appHost)
 {
     appHost.RegisterServicesInAssembly(GetType().Assembly);
 }
 public void Register(IAppHost appHost)
 {
     appHost.RegisterServicesInAssembly(GetType().Assembly);
 }