This project is read-only.


Add internal support to Factory<>


Allow Factory<> to also find internal factory/constructors rather than just public. This guarantees that only your DomainServices (or whatever assembly you allow with InternalsVisibleTo) project can create entities. This is useful for me as I have ID generation logic, and I don't want anywhere else to be able to create entities.
Closed Oct 6, 2012 at 1:19 AM by marcelgood
Fixed and released.


marcelgood wrote Oct 4, 2012 at 5:49 AM

Fixed for v2.0.2.

Note: Internals must be visible to Cocktail.SL in Silverlight as the base implementation of Factory<T> is in Cocktail and not one's solution.

[assembly: InternalsVisibleTo("Cocktail.SL, PublicKey=00240000048000009400000006020000002400005253413100040000010001000711e4133e5919"
                                                 + "6b877f67b04088121b1d6c3a25cb8791422c56986774125d0b805da768e11c38bbe2a395a98611"
                                                 + "5a66ef56c993ca31bef5d998cd98d53ba73a4c5b69fbbf197267b0b6c9ab232f8ff83794df4c7f"
                                                 + "e3ec9ce25e749ba984ed28135cca779fef9aca4e421831d13a6e8d2b3cb321002d5d3511895476"
                                                 + "a6a04dc8")]

wrote Oct 4, 2012 at 5:49 AM

wrote Oct 6, 2012 at 1:17 AM

wrote Oct 6, 2012 at 1:19 AM

wrote Feb 14, 2013 at 3:54 AM

wrote May 16, 2013 at 8:07 AM