From 731b162c2557e2e825721820a996336d14eb9421 Mon Sep 17 00:00:00 2001 From: cneuwirt Date: Fri, 14 Dec 2007 01:49:17 +0000 Subject: [PATCH] Somehow missed this with earlier checkin of fluent interface. git-svn-id: https://svn.castleproject.org/svn/castle/trunk@4596 73e77b4c-caa6-f847-a29a-24ab75ae54b6 --- Core/Castle.Core/Model/InterceptorReference.cs | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/Core/Castle.Core/Model/InterceptorReference.cs b/Core/Castle.Core/Model/InterceptorReference.cs index 6b36ea1b2..9c226aa5e 100644 --- a/Core/Castle.Core/Model/InterceptorReference.cs +++ b/Core/Castle.Core/Model/InterceptorReference.cs @@ -29,8 +29,8 @@ namespace Castle.Core public class InterceptorReference { private readonly InterceptorReferenceType refType; - private Type serviceType; - private String componentKey; + private readonly Type serviceType; + private readonly String componentKey; /// /// Initializes a new instance of the class. @@ -88,5 +88,25 @@ namespace Castle.Core { get { return refType; } } + + /// + /// Gets an for the component key. + /// + /// The component key. + /// The + public static InterceptorReference WithKey(String key) + { + return new InterceptorReference(key); + } + + /// + /// Gets an for the service. + /// + /// The service. + /// The + public static InterceptorReference WithType(Type service) + { + return new InterceptorReference(service); + } } } \ No newline at end of file -- 2.11.4.GIT