The Inquisitive Coder – Davy Brion's Blog

Trying to walk that thin line between intelligence and ignorance

New Here?

If you’re new here, you’ve missed out on some good stuff. This page lists a few of my best posts, and some of my personal favorites as well. Hope you enjoy them :)

If you want to continue reading my posts, consider subscribing to my RSS Feed and you might also want to keep track of the comments from readers (they are usually pretty interesting as well ;) )

Note: there’s obviously a lot more in the archives, so be sure to check those too ;)

Series

Various

Opinions

Methodology

NHibernate

Performance

ASP.NET

4 Responses to “New Here?”

  1. Brevin Says:

    Hi Brion,

    I have been reading your posts and learns a lot from them . thank you very much.:)

    I have some questions about agatha:

    when I write data access layer with agatha, I also need register some service with IoC container,which place do you think is better to place it? In the data access Layer,or in the ServiceHost? normally we need a dto for transfering objects, which location you you think is better to use dto mapper? In handler layer or data access layer.
    Maybe in the futuer we’ll change the way to access database,but we don’t want also change our hanler’s ,can you give us some suggestions?

    Do you think it’s possilbe to merge Module(from Composite Application Guidance for WPF and Silverlight ) in the future?

    It’s better if you could give us some suggestions how to organize our projet solution.
    Thank you very much

    Brevin

  2. Davy Brion Says:

    @Brevin

    it doesn’t really matter that much where you register the service with your IOC container… the important thing is that it’s registered before it’s used the first time, so i usually register everything when the service host is started

    as for the dto mapper usage… if you can return the DTO’s directly from the data access library you’re using (through projections if you’re using NHibernate for example) then that is often better than retrieving entities only to map them to DTO’s. But there is no clear-cut rule on which is best… as usual, it depends :)

    not sure what you mean with the Module thing though…

  3. Akhil Says:

    Hi,

    Here is the line of code where I am getting problem,

    I am using Agatha for wcf communications, What I am trying to do is to create dynamic url for local services, so that I no need to specify or hardcode the url in .xap clientconfig path. But I always get Invalid URI: The format of the URI could not be determined. exception when I am trying to use below code

    //// Get Silverlight Application host URI
    var hostUri = Application.Current.Host.Source;

    //// Build Request Processor URI (using a convention for now)
    var navigatorProxyUri = new UriBuilder(hostUri.Scheme, hostUri.Host, hostUri.Port,
    string.Concat(hostUri.AbsolutePath.Substring(0, hostUri.AbsolutePath.IndexOf(“/ClientBin”)),
    “/Services/NavigatorProxyService.svc”)).ToString();

    var navigatorProxyUrl = new Uri(navigatorProxyUri, UriKind.RelativeOrAbsolute);
    new AsyncRequestProcessorProxy(“Agatha_IWcfRequestProcessor”, navigatorProxyUrl.AbsoluteUri);

    Immediate help wil be highly appricieted

    regards
    Akhil

  4. Davy Brion Says:

    @Akhil

    are you absolutely sure that the URI is indeed valid?

    also, for agatha related questions you’re better off on the Agatha google group

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>