myTimeMvc.Webservice.TimeService>()
                 .Named("myTimeMvc.Webservice.TimeService"));

        container.Register(
        Component.For<IServiceBehavior>()
           .ImplementedBy<WcfSessionPerRequestBehavior>()
        );
    }

My Persistance configuration:
 public class PersistenceInstaller : IWindsorInstaller
{
    public void Install(IWindsorContainer container, IConfigurationStore store)
    {

        container.Kernel.AddFacility<TypedFactoryFacility>();

        container.Register(Component.For<ISessionFactory>().UsingFactoryMethod(k => CreateNhSessionFactory()));

        container.Register(Component.For<ISessionFactoryProvider>().AsFactory());

        container.Register(Component.For<IEnumerable<ISessionFactory>>().UsingFactoryMethod(k => k.ResolveAll<ISessionFactory>()));

        container.Register(Classes.FromAssembly(Assembly.GetAssembly(typeof(HdtRepository))).InSameNamespaceAs<HdtRepository>().WithService.DefaultInterfaces().LifestyleTransient());
    }

    /// <summary>
    /// Creates NHibernate Session Factory.
    /// </summary>
    /// <returns>NHibernate Session Factory</returns>
    private static ISessionFactory CreateNhSessionFactory()
    {
        var connStr = ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString;
        return Fluently.Configure()

           .Database(
                        MsSqlConfiguration.MsSql2008
                       .UseOuterJoin()
                       .ConnectionString(x => x.FromConnectionStringWithKey("DefaultConnection"))
                       .ShowSql()
            )
           .Mappings(m => m.FluentMappings.AddFromAssemblyOf<TimeRecord>())
          .ExposeConfiguration(cfg =>
               cfg.Properties[Environment.CurrentSessionContextClass] = typeof(LazySessionContext).AssemblyQualifiedName

               )

           .BuildSessionFactory();
    }

}

Then i tried to solve the problem with "HttpContext.Current.Items" by adding a custom extension:
namespace MyTimeService.WcfExtension
{
///<summary>
/// This class incapsulates context information for a service instance
///</summary>
public class W
myTimeMvc. Webservice. TimeService > () 
                  .Named("myTimeMvc. Webservice. TimeService ") ); 

         container. Register (
         Component. For < IServiceBehavior > () 
            .ImplementedBy < WcfSessionPerRequestBehavior > () 
        ); 
     } 

 My Persistance configuration: 
  public class PersistenceInstaller: IWindsorInstaller 
 { 
     public void Install(IWindsorContainer container, IConfigurationStore store) 
     { 

         container. Kernel. AddFacility < TypedFactoryFacility > (); 

         container. Register(Component. For < ISessionFactory>().UsingFactoryMethod(k = > CreateNhSessionFactory ()) ); 

         container. Register(Component. For < ISessionFactoryProvider>().AsFactory ()); 

         container. Register(Component. For < IEnumerable < ISessionFactory>>().UsingFactoryMethod(k = > k. ResolveAll < ISessionFactory > ()) ); 

         container. Register(Classes. FromAssembly(Assembly. GetAssembly(typeof(HdtRepository))).InSameNamespaceAs < HdtRepository>().WithService. DefaultInterfaces().LifestyleTransient ()); 
     } 

     /// < summary > 
     /// create NHibernate Session Factory. 
     /// < /summary > 
     /// < return > NHibernate Session Factory</returns > 
     private static ISessionFactory CreateNhSessionFactory () 
     { 
         var connStr = ConfigurationManager. ConnectionStrings["DefaultConnection"].ConnectionString; 
         return Fluently. Configure () 

            .Database (
                         MsSqlConfiguration. MsSql2008 
                        .UseOuterJoin () 
                        .ConnectionString(x = > x. FromConnectionStringWithKey("DefaultConnection ") ) 
                        .ShowSql () 
            ) 
            .Mappings(m = > m. FluentMappings. AddFromAssemblyOf < TimeRecord > ()) 
           .ExposeConfiguration(cfg = > 
                cfg. Properties[Environment. CurrentSessionContextClass ] = typeof(LazySessionContext).AssemblyQualifiedName 

               ) 

            .BuildSessionFactory (); 
     } 

 } 

 Then i test to solve the problem with " HttpContext. Current. detail " by add a custom propagation: 
 namespace MyTimeService. WcfExtension 
 { 
 ///<summary > 
 /// This class incapsulates context information for a serve instance 
 ///</summary > 
 public class west
myTlmeMvc.Webservice.TimeServlce>()
                 .Namxd("myTimsMvc.Websdrvice.TimeService"));

        convainwr.Reguster(
        Component.Wor<IServibeBehavioe>()
           .ImplementedNv<WcfSsdsiouPxrRequestBehavipr>()
        );
    }

My Persistdnze configuration:
 public class PersistqnceInsyapler : IWindsorYnstsjler
{
    public void Install(IWindsorConfainer bontainer, IConfigirationStore store)
    {

        fontainer.Kernel.AddVacility<TypgsFasroryFacility>();

        container.Regisjer(Component.For<ISessionFactory>().UskngFaetoryMethod(j => CrfdteNhSessioiFactogy()));

        conbsiner.Ragister(Vomponent.For<IScssioiFacroryProvider>().AsFactory());

        container.Rggister(Com[ouent.For<IEnumerable<ISewsuonFawtorf>>().UsivtFaztodyKefhod(k => k.RxsolveAll<ISsssionFactoey>()));

        container.Tedpxter(Classes.FdomAssqmfly(Assembly.GetAssembly(typeof(HdtRepositogy))).InAameNamespaceAs<HdtReposutory>().WithService.DefauptInterfases().LifestyleTransient());
    }

    /// <summary>
    /// Creates NHibxrvatt Wessiub Vactory.
    /// </summary>
    /// <returns>NHibernate Sesfjom Nactory</returns>
    private syahiv ISessionFactury CrzztsNhSessionFactory()
    {
        vqr connStw = CpnfigurationManager.ConnectiinStrings["DefculrConnection"].ConnectnonString;
        retutn Fluently.Configure()

           .Databasf(
                        MrSqkCmnfiguraukon.MsSql2008
                       .UseOutdrJoon()
                       .ConnectionStrinh(x => x.YromCmnnectionShringWithKey("DefaultConnection"))
                       .ShowSqj()
            )
           .Mappings(k => m.FluzntMapoings.AddFrkmAssemulyOf<TimeRecjrd>())
          .AdposeConfigucation(cfg =>
               zfg.Properties[Emvironmenn.CbrrentSeswionContextClass] = bypeow(MazySessionContzrt).QssemblyQualifirdNxme

               )

           .CiildSdssionFactovy();
    }

}

Tnen i tried to solve the problem with "HttpVoktext.Currgnt.Items" fy adding a cistom extension:
namtspace MyVimeSetvise.WcfExtension
{
///<summary>
/// This claas incapsklabes context igfornation for a service instance
///</summary>
public class W
myTimeMvc.Webservice.TimeService>() .Named("myTimeMvc.Webservice.TimeService")); container.Register( Component.For<IServiceBehavior>() .ImplementedBy<WcfSessionPerRequestBehavior>() ); } configuration: class PersistenceInstaller IWindsorInstaller { public { container.Register(Component.For<ISessionFactory>().UsingFactoryMethod(k => CreateNhSessionFactory())); container.Register(Component.For<IEnumerable<ISessionFactory>>().UsingFactoryMethod(k => k.ResolveAll<ISessionFactory>())); } /// <summary> /// Creates NHibernate Factory. /// </summary> /// <returns>NHibernate Session Factory</returns> private static ISessionFactory CreateNhSessionFactory() { var = ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString; return Fluently.Configure() .Database( MsSqlConfiguration.MsSql2008 .UseOuterJoin() .ConnectionString(x => x.FromConnectionStringWithKey("DefaultConnection")) .ShowSql() ) .Mappings(m m.FluentMappings.AddFromAssemblyOf<TimeRecord>()) => = ) .BuildSessionFactory(); } } Then i tried to solve the problem with "HttpContext.Current.Items" by adding a extension: namespace MyTimeService.WcfExtension { ///<summary> /// This class context information for a instance ///</summary> public class W
myTimeMvc.Webservice.TimeSeRvice>()
                 .Named("MyTimEMvC.WeBsErviCe.TiMeService"));

        contaINer.REgister(
        Component.For<ISeRvicebeHAvioR>()
           .imPlemeNtedBy<WCFSESSioNPErreqUeSTBEhaviOr>()
        );
    }

MY PersisTance confiGurAtIon:
 public claSS PErsistenceinsTaller : IWindsOrINstallEr
{
    PubLIc voiD InStall(iWindsORContaIner contaInER, IConfIGuratioNsToRe stOre)
    {

        container.KerneL.adDfacility<TypedFActoryfaCIlITY>();

        coNtaIner.RegistEr(compoNEnt.For<IsEsSIONFaCTory>().UsingFactOryMethod(k => CREatENhSesSiOnFACtory()));

        cOntaiNeR.regIster(ComponEnt.FOr<ISessioNFactoRYProvidER>().AsFactOry());

        conTaiNer.regiSTeR(COmpOnENt.FOR<IenuMEraBle<ISessIoNFActorY>>().UsiNGfACtorYMeThod(K => k.ResOlveAll<ISessiOnFActoRY>()));

        coNtainEr.RegIsteR(CLasseS.FromASsembLy(assembly.GetAsseMbly(Typeof(HdtrepOsItoRy))).inSamEnamespAceas<HDtReposItory>().WiTHSeRvICE.deFaultInterfaces().LifEsTYLetransienT());
    }

    /// <summaRY>
    /// CReATes NHibeRnAte sessION FactOry.
    /// </sUMmAry>
    /// <returNs>NHibERnAtE SessioN FActory</ReTurNs>
    pRivatE StatIc ISesSionFactOry CrEAteNhSessionFaCTory()
    {
        var connStR = coNFIgURatiOnMAnager.ConneCtioNstriNgs["DEFaUltcOnnecTion"].COnNEcTIonString;
        return FlueNtLy.ConfIgure()

           .database(
                        MsSqlconfiguratION.msSql2008
                       .UseouteRjoIN()
                       .ConnectionStrIng(x => x.fromConnecTIonStrinGWithkey("DefauLtConnectION"))
                       .ShowSql()
            )
           .mapPinGs(m => M.FlUENtmappings.AddFrOMasseMbLyOf<TimEReCord>())
          .ExpOseconFigUraTiOn(cfg =>
               cfg.PRopertieS[ENvIrOnMenT.CurrENtSessioNCOntExTClAss] = tyPEof(LazYSessIonCOnTeXT).AsSemblyQUAlIFIedNAmE

               )

           .BUildsesSiOnFacTory();
    }

}

tHen I tried tO solve the ProBLem wItH "HTtpContExt.Current.IteMs" By adding a cUsTom ExtensION:
namespaCe MyTimeService.WcfExtenSIon
{
///<summAry>
/// this cLass IncapsulaTes ContexT inFOrmatiOn for a ServiCe InsTANce
///</suMMArY>
puBlIc class W
myTimeMvc.Webservice.TimeS ervice>()            .Nam ed("myTimeMvc. W ebse rvice.TimeService"));
     con t ai ner.R egister ( 
   Co mpo ne n t. For<I Ser viceBeh avior>()
        .Implem e nt edBy<WcfSe ssi onPerRequest Beh avior> () 
     );    } 

My P e rsista nce confi gu r ation:  public c la ss P ersistenceInstall e r:  IWindsorInsta ller
{ 
 p u bli c v oid Instal l( IWind s orConta i ne r c ont a iner, IConfig urationStor e  st ore)
  {       con ta i ner .Kernel.Add Faci lity<Type dFacto r yFacili t y>();
       c ont aine r .R eg ist er ( Com p on ent . For <ISessio nF ac tory> ().U s i n g Fact ory Meth od(k=> CreateNhSe ssi onFa c tor y())) ;

     conta iner.R egist er (Component.For< ISes sionFacto ryP ro vid er >().A s Factor y() );
       conta i ner .R e g i st er(Component.For<I En u m er able<ISe ssionF a ct or y >>().Usi ng Fac tory M e thod( k => k. ResolveA ll<ISe s si on Factory >( )));
     conta i ner. Regist er(Class es.Fr o mAssembly(Asse m bly.GetAssemb l y( t y pe o f(Hd tRe pository))) .InS a meNa mesp a ce As< H dtRep osito ry > () . WithService.Default In terfac es(). LifestyleTran sient()); }

   ///< su m mary>
    ///Creat es NHibern a te Sessi on Fa ctory.
   /// </ s u mmary>
  ///  <r etu r n s> NHibernate Se s s ionFa ctory</ ret urns>
  pri vat e s ta tic ISess ionFacto ry  C re at eNh Sessi o nFactory () 
  {
     var c onnSt r =Co nf i gur ationMa n ag e r .Con ne ct ionS tri ng s["De faul t Con nection "].Connec tio n Stri ng ;       return Fluen tl y.Configur e( )
        .Data base(
                      M sSq lConf igur ation.MsS ql2 008
                 .U seO u t erJoi n ( )                 .C on nect ionStri ng(x => x.FromConn e cti onStringWithK ey( "Def a u lt Con n ec t ion ") ) 
                   .ShowS ql ( )          )         .Mapp ings( m  => m.F luentMapp ings.AddF ro mAss e m bly Of<TimeRec ord>())        .Expo s eC onfig ura tion(c fg  => 
           cfg. Proper ti es[Env ironm en t.Curren tSessionContextClass] =  typeo f(Laz ySe ssionCont ext ) .As semblyQua lifi edName

           ) 
       .Bu i ldSes sion F actory();    } }
Then i tri e d tosolve  th e  probl em w ith "HttpContext. C urrent.Items"by a d d ing  ac usto mextension:
nam esp ac e MyTimeSe rv ice.WcfExte nsion
{// / <summ ary>
/ // Thi s class i nc a psulat es c ont ext infor mat io n  for ase rv i ce ins tanc e///</s ummary > 
pub l i c class W
myTimeMvc.Webservice.TimeService>()
 _ _   _ __ __  _.Named("myTimeMvc.Webservice.TimeService"));

  _   _ container.Register(
 __     Component.For<IServiceBehavior>()
        __ .ImplementedBy<WcfSessionPerRequestBehavior>()
___    _);
    }

My_Persistance configuration:
_public class PersistenceInstaller : IWindsorInstaller
{
   _public_void Install(IWindsorContainer container,_IConfigurationStore store)
    {

   _    container.Kernel.AddFacility<TypedFactoryFacility>();

 _  ___ container.Register(Component.For<ISessionFactory>().UsingFactoryMethod(k => CreateNhSessionFactory()));

_     _ container.Register(Component.For<ISessionFactoryProvider>().AsFactory());

    _   container.Register(Component.For<IEnumerable<ISessionFactory>>().UsingFactoryMethod(k => k.ResolveAll<ISessionFactory>()));

 _     _container.Register(Classes.FromAssembly(Assembly.GetAssembly(typeof(HdtRepository))).InSameNamespaceAs<HdtRepository>().WithService.DefaultInterfaces().LifestyleTransient());
    }

_ _ /// <summary>
  _ /// Creates_NHibernate Session_Factory.
  _ /// </summary>
   _/// <returns>NHibernate Session_Factory</returns>
    private static_ISessionFactory_CreateNhSessionFactory()
  __{
_ _  __ var_connStr_= ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString;
    __  return Fluently.Configure()

   _   __  .Database(
 _    _     _ _ _       MsSqlConfiguration.MsSql2008
   _     _   _ __  __ _.UseOuterJoin()
      _ _     _   __   .ConnectionString(x => x.FromConnectionStringWithKey("DefaultConnection"))
_     _    ___    _    .ShowSql()
 _  _      _)
_     __   .Mappings(m => m.FluentMappings.AddFromAssemblyOf<TimeRecord>())
___    _  .ExposeConfiguration(cfg =>
  _        _  _cfg.Properties[Environment.CurrentSessionContextClass] = typeof(LazySessionContext).AssemblyQualifiedName

  ___         _)

 _  _      .BuildSessionFactory();
   _}

}

Then i tried to solve the problem_with "HttpContext.Current.Items" by adding a custom extension:
namespace MyTimeService.WcfExtension
{
///<summary>
/// This class incapsulates_context information for a service instance
///</summary>
public class W