New Here?

If you're new here, you've missed out on a lot of posts. Don't worry, i've listed some of the 'highlights' of over 600 posts here so you can easily catch up with how i think about software development and being a software developer in general. I've also got plenty of technology-specific posts that may interest you, which you can find in the various categories on the bottom left side of this page.

Series

Various Posts

Writing Experiments

  • Brevin

    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

  • http://davybrion.com Davy Brion

    @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…

  • Akhil

    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

  • http://davybrion.com Davy Brion

    @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