示例#1
0
        /// <summary>
        /// Creates a wrapper around the given server factory instance.
        /// </summary>
        /// <param name="serverFactory"></param>
        public ServerFactoryAdapter(object serverFactory)
        {
            if (serverFactory == null)
            {
                throw new ArgumentNullException("serverFactory");
            }

            _serverFactory     = serverFactory;
            _serverFactoryType = serverFactory.GetType();
            _activator         = null;
        }
        /// <summary>
        /// Creates a wrapper around the given server factory instance.
        /// </summary>
        /// <param name="serverFactory"></param>
        public ServerFactoryAdapter(object serverFactory)
        {
            if (serverFactory == null)
            {
                throw new ArgumentNullException("serverFactory");
            }

            _serverFactory = serverFactory;
            _serverFactoryType = serverFactory.GetType();
            _activator = null;
        }
示例#3
0
        /// <summary>
        /// Creates a wrapper around the given server factory type.
        /// </summary>
        /// <param name="serverFactoryType"></param>
        /// <param name="activator"></param>
        public ServerFactoryAdapter(Type serverFactoryType, IServerFactoryActivator activator)
        {
            if (serverFactoryType == null)
            {
                throw new ArgumentNullException("serverFactoryType");
            }
            if (activator == null)
            {
                throw new ArgumentNullException("activator");
            }

            _serverFactoryType = serverFactoryType;
            _activator         = activator;
        }
        /// <summary>
        /// Creates a wrapper around the given server factory type.
        /// </summary>
        /// <param name="serverFactoryType"></param>
        /// <param name="activator"></param>
        public ServerFactoryAdapter(Type serverFactoryType, IServerFactoryActivator activator)
        {
            if (serverFactoryType == null)
            {
                throw new ArgumentNullException("serverFactoryType");
            }
            if (activator == null)
            {
                throw new ArgumentNullException("activator");
            }

            _serverFactoryType = serverFactoryType;
            _activator = activator;
        }
示例#5
0
 /// <summary>
 /// Allows for a Dependency Injection activator to be specified.
 /// </summary>
 /// <param name="activator"></param>
 public ServerFactoryLoader(IServerFactoryActivator activator)
 {
     _activator = activator;
 }
 /// <summary>
 /// Allows for a Dependency Injection activator to be specified.
 /// </summary>
 /// <param name="activator"></param>
 public ServerFactoryLoader(IServerFactoryActivator activator)
 {
     _activator = activator;
 }