Beispiel #1
0
 /// <summary>
 /// create a new <see cref="AbstractSubscribableChannel{T}" with the <paramref name="dispatcher"/>/>
 /// </summary>
 /// <param name="dispatcher">the dispatcher for the <see cref="AbstractSubscribableChannel{T}"/></param>
 public AbstractSubscribableChannel(T dispatcher)
 {
     AssertUtils.ArgumentNotNull(dispatcher, "dispatcher", "must not be null");
     _dispatcher = dispatcher;
 }
        /// <summary>
        /// Do the connection mgmt.
        /// </summary>
        /// <param name="provider"></param>
        /// <returns></returns>
        public static IDbConnection GetConnection(IDbProvider provider)
        {
            AssertUtils.ArgumentNotNull(provider, "provider");

            return(GetConnectionTxPair(provider).Connection);
        }
Beispiel #3
0
 public MethodParameterMessageMapper(MethodInfo method)
 {
     AssertUtils.ArgumentNotNull(method, "method must not be null");
     _method = method;
     InitializeParameterMetadata();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="WebObjectDefinitionParserHelper"/> class.
 /// </summary>
 /// <param name="webObjectNameGenerator">used for generating object definition names from web object types (page, control)</param>
 /// <param name="readerContext">The reader context.</param>
 /// <param name="root">The root element of the xml document to parse</param>
 public WebObjectDefinitionParserHelper(IWebObjectNameGenerator webObjectNameGenerator, XmlReaderContext readerContext, XmlElement root)
     : base(readerContext, root)
 {
     AssertUtils.ArgumentNotNull(webObjectNameGenerator, "webObjectNameGenerator");
     this.webObjectNameGenerator = webObjectNameGenerator;
 }
Beispiel #5
0
 /// <summary>
 /// Creates a new instance of the
 /// <see cref="Spring.Aop.Framework.Adapter.MethodBeforeAdviceInterceptor"/>
 /// class.
 /// </summary>
 /// <param name="advice">
 /// The <see cref="Spring.Aop.IMethodBeforeAdvice"/> that is to be wrapped.
 /// </param>
 /// <exception cref="System.ArgumentNullException">
 /// If the supplied <paramref name="advice"/> is <see langword="null"/>.
 /// </exception>
 public MethodBeforeAdviceInterceptor(IMethodBeforeAdvice advice)
 {
     AssertUtils.ArgumentNotNull(advice, "advice");
     this.advice = advice;
 }
 /// <summary>
 /// Creates a new instance of the <see cref="RequiredValidator"/> class.
 /// </summary>
 /// <param name="test">The expression to validate.</param>
 /// <param name="when">The expression that determines if this validator should be evaluated.</param>
 public RequiredValidator(IExpression test, IExpression when) : base(test, when)
 {
     AssertUtils.ArgumentNotNull(test, "test");
 }