That will always create the service host regardless of missing
dependencies.  However, when you invoke it, it would then fail.

What is the definition os sms_wcf component?

On Mon, Jan 26, 2009 at 1:33 PM, Robert M. <robertcmir...@gmail.com> wrote:

>
> Is not the dependency nor logging facility... If I use the following
> code it just works:
>
>            var factory = new DefaultServiceHostFactory
> (IoC.Container.Kernel);
>            host = factory.CreateServiceHost("sms_wcf", new[] {new Uri
> (Config.WebserviceListenUri)});
>
>
>
> On Jan 26, 12:27 am, Craig Neuwirt <cneuw...@gmail.com> wrote:
> > It's probable that you one or more dependencies have not been satisfied
> so
> > the ServiceHost is not available.  Since you are using logging, you need
> to
> > register the logger facility
> >
> >
> >
> > On Sun, Jan 25, 2009 at 5:25 AM, Robert M. <robertcmir...@gmail.com>
> wrote:
> >
> > > Does anyone can help with an example on how can I configure and start
> > > a webservice using WCF facility in a console application?
> >
> > > I used the following configuration, but although it compiles and runs,
> > > the endpoint is not available (I believe the host is not started).
> >
> > >            IoC.Container
> > >                .AddFacility<WcfFacility>()
> > >                .Register(
> >
> > >                Component.For<IMyService>().ImplementedBy<MyService>()
> > >                    .Named("my_wcf")
> > >                    .ActAs(
> > >                        new DefaultServiceModel().LogMessages()
> > >                            .AddEndpoints(
> > >                                WcfEndpoint.BoundTo(new
> > > BasicHttpBinding("Basic")).At("http://localhost:9001/my/service.svc";)
> > >                    )
> > >                ));
> >
> > > The problem I am trying to resolve is to use a WCF webservice setup
> > > with WCF facility but with config settings taken from App.config. All
> > > examples found in facility's unit tests use a web hosted service which
> > > works just fine. My app is a console application only.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to castle-project-users@googlegroups.com
To unsubscribe from this group, send email to 
castle-project-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to