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);
 }
コード例 #3
0
 public void Register(IAppHost appHost)
 {
     appHost.RegisterServicesInAssembly(GetType().Assembly);
 }