Couple of issues I've observed.
The first was that I had my service class had constructor dependencies
that I'd not registered, this was obviously silly of me but when
debugging all I kept getting was 502s when trying to contact my REST
resources (programatically or using Fiddler) and it took me
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. wrote:
>
> Is not the dependency nor logging facility... If I use the following
It is not any missing dependency nor logging facility... If I use the
following code and open ServiceHost explicitly it just works:
var factory = new DefaultServiceHostFactory
(IoC.Container.Kernel);
host = factory.CreateServiceHost("sms_wcf", new[] {new Uri
("http://local
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, C
2009/1/26 Victor Kornov :
> This cries for at least to mention those other patterns.
For not too complex domains, I prefer to combine Active Record and
Transaction Script. The latter is used widely in form of sagas.
-Markus
--~--~-~--~~~---~--~~
You received this
Code from the article you linked:
public virtual T FindOne(params ICriterion[] criteria)
{
return ActiveRecordMediator.FindOne(criteria);
}
This moves the responsibility for creating a particular query from the
repository to the higher layers, who need to know
Well I think what Ken's saying is that there are very few cases in which you
want to do a straight FindAll. Chances are you're going to want to bring
back a subset of all the data such as a page of 20 products or products in a
particular category, something like that. So it'll depend on your
applic
Hi Markus
Could you explain the contradictions a bit more for me?
thanks :)
On Jan 26, 1:22 pm, Markus Zywitza wrote:
> You lose nothing with dropping ActiveRecordBase but convenience.
>
> But keep in mind:
>
> 1) AR classes without ARBase make good DTOs, but still bad domain classes.
> 2) G
:)
so you would also do something like the example from the link shows,
but just remove the "FindAll" ?
On Jan 26, 12:20 pm, Ken Egozi wrote:
> my take:
> externally the domain API will expose specialised repositories for aggregate
> roots. (not all of them should have Save, and a generic FindA
This cries for at least to mention those other patterns.
On Mon, Jan 26, 2009 at 3:22 PM, Markus Zywitza wrote:
>
> The "Domain Model" is not the only enterprise pattern that
> yields maintainable software.
>
>
--~--~-~--~~~---~--~~
You received this message becau
You lose nothing with dropping ActiveRecordBase but convenience.
But keep in mind:
1) AR classes without ARBase make good DTOs, but still bad domain classes.
2) Generic repositories are an antipattern. A repository should
encapsulate the knowledge of an aggregate's persistence details. That
cont
my take:
externally the domain API will expose specialised repositories for aggregate
roots. (not all of them should have Save, and a generic FindAll is not
informative imo)
internally, in the repository implementations, they'd use ARMediator (or NH
queries) to retrieve manipulate data
On Mon, Ja
Well you wouldn't necessarily have to make a repo for every entity because
you'd have a generic Repo you could use. However you might create (as an
example) a UserRepo : BaseRepo with a FindByUsername method as a
little syntactic sugar.
I think many people would use a container such as windsor to
Hi
>From what i can read on the internet people do really like this
combination due to the placement of the persitance logic.
how ever, i know that Castles AR has something callsed
ActiveRecordMediator which seems to be the solution to the problem
above. (i also know ayendes rhino commons which
no problem :)
On Jan 26, 10:31 am, Flominator wrote:
> It worked. Thanks, Mark!
--~--~-~--~~~---~--~~
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
It worked. Thanks, Mark!
--~--~-~--~~~---~--~~
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 em
Forgot to mention: using RC3
Sorry,
Flo
--~--~-~--~~~---~--~~
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 th
Hi again,
since I'm quite new to VS08, C# and Castle I started programming by
linking to the dll files at "C:\Programm Files\Castle Project". Today
I wanted to do it better by creating a lib folder within the project
directory.
I seemed to have found all files necessary, all unit tests were gree
18 matches
Mail list logo