Hi,
I recently posted a question about the 'best' usage of AR. (http://
groups.google.com/group/castle-project-users/browse_thread/thread/
9b0844236841102b). The main reason I have so much trouble finding an
answer, is the lack of real-world example-projects where AR is used. I
found very few on
Hello,
I am reading Krzysztof Koźmic's tutorial about Dynamic Proxy and I can't
figure out how to intercept all properties that have some custom attribute.
Example:
[Entity(MyEntityName)]
public class MyEntity
{
private Dictionarystring, object dict = new Dictionarystring,
object();
while intercepting you have access to the intercepted MethodInfo. from
there to the attributes set on that method the road is clear
On Tue, Aug 10, 2010 at 11:26 AM, omer katz o...@cinex.co.il wrote:
Hello,
I am reading Krzysztof Koźmic's tutorial about Dynamic Proxy and I can't
figure out
So I've gotten this far:
internal class LookupPropertyInterceptor : IInterceptor
{
public void Intercept(IInvocation invocation)
{
if (invocation.Method.Name.StartsWith(set_,
StringComparison.OrdinalIgnoreCase)
you've got (at least) two options at your disposal:
a. the invocation object has a reference to the object it was running on (I
don't remember the name of the reference by heart). you can then grab the
dictionary from there using reflection
a'. better yet, have the dictionary be an explicitly
Is it invocation.Proxy?
It's pretty annoying that the API is not documented.
2010/8/10 Ken Egozi egoz...@gmail.com
you've got (at least) two options at your disposal:
a. the invocation object has a reference to the object it was running on (I
don't remember the name of the reference by
isn't it self documenting enough?
it's an *open* project, *you *can improve the documentation.
On 10/08/2010 9:12 PM, omer katz wrote:
Is it invocation.Proxy?
It's pretty annoying that the API is not documented.
2010/8/10 Ken Egozi egoz...@gmail.com mailto:egoz...@gmail.com
you've got
plus you get xml docs on the interface if it wasnt obvious enough
/// summary
/// Encapsulates an invocation of a proxied method.
/// /summary
public interface IInvocation
{
/// summary
/// Gets the proxy object on which the intercepted method is
invoked.
It's much more comfortable to have them generated to webpages.
What auto-generation docs are you guys using?
2010/8/10 Krzysztof Koźmic krzysztof.koz...@gmail.com
plus you get xml docs on the interface if it wasnt obvious enough
/// summary
/// Encapsulates an invocation of a proxied
Why do you think it's noise?
2010/8/10 Krzysztof Koźmic krzysztof.koz...@gmail.com
none.
XML comments in code are usually noise and Dynamic Proxy is actually one of
very few places in Castle project that does have them.
On 10/08/2010 9:58 PM, omer katz wrote:
It's much more
Wish i did. I was just playing around, trying to figure out how as i am not
that familiar with debian packaging. You will notice that most of the
packages have missing descriptions and i don't think the packages conform to
the debian cli policy. Still, you should be able to get the source with
namespace DynamicProxyTest
{
internal class LookupPropertyInterceptor : IInterceptor
{
public void Intercept(IInvocation invocation)
{
string propertyName = invocation.Method.Name.Substring(4);
var attributes =
yes it's a bug in BCL..Use
Attribute.GetCustomAttribute(type,attributeType) instead.
2010/8/10 omer katz o...@cinex.co.il:
namespace DynamicProxyTest
{
internal class LookupPropertyInterceptor : IInterceptor
{
public void Intercept(IInvocation invocation)
{
Well, none version is planned before NH3.0 is at least beta or RC. The
problem is that we have two additional dependencies on NH in AR: NH
Linq and NH Search. NH Linq can be omitted if we change AR Linq to use
the new LINQ provider in NH3.0 (we should merge AR Linq into AR then
since NH3.0 won't
I believe I read somewhere recently that Ayende is working on porting
NH Search to NH 3.
I haven't used NH Search with Castle ActiveRecord yet so that wasn't a
dependency that I worked through.
Thanks for sharing your outlook Markus.
-Michael Maddox
My guess is that the lucene index query isn't returning any hits and
the result is that nhibernate is trying to execute a query with an
empty criterion.
Can you check your index and see if the query on it is returning any
results? You can use luke for that (http://code.google.com/p/luke/)
On Aug
could you please provide some reference on writing a helper method in
the installer? by installer do you mean application package? thanks
On Aug 10, 3:15 pm, Krzysztof Koźmic krzysztof.koz...@gmail.com
wrote:
Yes and no.
Yes there's no OOTB dedicated hook in the container for this.
No, you
http://stw.castleproject.org/Windsor.Installers.ashx
helper method as in a private method that you'll wrap your repetitive
code with.
Krzysztof
On 11/08/2010 9:08 AM, PB wrote:
could you please provide some reference on writing a helper method in
the installer? by installer do you mean
18 matches
Mail list logo