Fixing unit tests and warnings

This commit is contained in:
Sebastien Ros
2014-03-26 17:37:01 -07:00
parent 35d2a6c8fd
commit 0fbc2e47bc
80 changed files with 450 additions and 92979 deletions

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -1,27 +0,0 @@
Autofac IoC Container
Copyright (c) 2007-2008 Autofac Contributors
http://code.google.com/p/autofac/wiki/Contributing
Other software included in this distribution is owned and
licensed separately, see the included license files for details.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -1,57 +0,0 @@
Apache License, Version 2.0
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
1. You must give any other recipients of the Work or Derivative Works a copy of this License; and
2. You must cause any modified files to carry prominent notices stating that You changed the files; and
3. You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
4. If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -1,13 +0,0 @@
Copyright 2004-2005 Castle Project - http://www.castleproject.org/
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,280 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>Microsoft.Practices.ServiceLocation</name>
</assembly>
<members>
<member name="T:Microsoft.Practices.ServiceLocation.ActivationException">
<summary>
The standard exception thrown when a ServiceLocator has an error in resolving an object.
</summary>
</member>
<member name="M:Microsoft.Practices.ServiceLocation.ActivationException.#ctor">
<summary>
Initializes a new instance of the <see cref="T:System.Exception" /> class.
</summary>
</member>
<member name="M:Microsoft.Practices.ServiceLocation.ActivationException.#ctor(System.String)">
<summary>
Initializes a new instance of the <see cref="T:System.Exception" /> class with a specified error message.
</summary>
<param name="message">
The message that describes the error.
</param>
</member>
<member name="M:Microsoft.Practices.ServiceLocation.ActivationException.#ctor(System.String,System.Exception)">
<summary>
Initializes a new instance of the <see cref="T:System.Exception" /> class with a specified error message and a reference to the inner exception that is the cause of this exception.
</summary>
<param name="message">
The error message that explains the reason for the exception.
</param>
<param name="innerException">
The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
</param>
</member>
<member name="M:Microsoft.Practices.ServiceLocation.ActivationException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
<summary>
Initializes a new instance of the <see cref="T:System.Exception" /> class with serialized data.
</summary>
<param name="info">
The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.
</param>
<param name="context">
The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.
</param>
<exception cref="T:System.ArgumentNullException">
The <paramref name="info" /> parameter is null.
</exception>
<exception cref="T:System.Runtime.Serialization.SerializationException">
The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0).
</exception>
</member>
<member name="T:Microsoft.Practices.ServiceLocation.IServiceLocator">
<summary>
The generic Service Locator interface. This interface is used
to retrieve services (instances identified by type and optional
name) from a container.
</summary>
</member>
<member name="M:Microsoft.Practices.ServiceLocation.IServiceLocator.GetInstance(System.Type)">
<summary>
Get an instance of the given <paramref name="serviceType"/>.
</summary>
<param name="serviceType">Type of object requested.</param>
<exception cref="T:Microsoft.Practices.ServiceLocation.ActivationException">if there is an error resolving
the service instance.</exception>
<returns>The requested service instance.</returns>
</member>
<member name="M:Microsoft.Practices.ServiceLocation.IServiceLocator.GetInstance(System.Type,System.String)">
<summary>
Get an instance of the given named <paramref name="serviceType"/>.
</summary>
<param name="serviceType">Type of object requested.</param>
<param name="key">Name the object was registered with.</param>
<exception cref="T:Microsoft.Practices.ServiceLocation.ActivationException">if there is an error resolving
the service instance.</exception>
<returns>The requested service instance.</returns>
</member>
<member name="M:Microsoft.Practices.ServiceLocation.IServiceLocator.GetAllInstances(System.Type)">
<summary>
Get all instances of the given <paramref name="serviceType"/> currently
registered in the container.
</summary>
<param name="serviceType">Type of object requested.</param>
<exception cref="T:Microsoft.Practices.ServiceLocation.ActivationException">if there is are errors resolving
the service instance.</exception>
<returns>A sequence of instances of the requested <paramref name="serviceType"/>.</returns>
</member>
<member name="M:Microsoft.Practices.ServiceLocation.IServiceLocator.GetInstance``1">
<summary>
Get an instance of the given <typeparamref name="TService"/>.
</summary>
<typeparam name="TService">Type of object requested.</typeparam>
<exception cref="T:Microsoft.Practices.ServiceLocation.ActivationException">if there is are errors resolving
the service instance.</exception>
<returns>The requested service instance.</returns>
</member>
<member name="M:Microsoft.Practices.ServiceLocation.IServiceLocator.GetInstance``1(System.String)">
<summary>
Get an instance of the given named <typeparamref name="TService"/>.
</summary>
<typeparam name="TService">Type of object requested.</typeparam>
<param name="key">Name the object was registered with.</param>
<exception cref="T:Microsoft.Practices.ServiceLocation.ActivationException">if there is are errors resolving
the service instance.</exception>
<returns>The requested service instance.</returns>
</member>
<member name="M:Microsoft.Practices.ServiceLocation.IServiceLocator.GetAllInstances``1">
<summary>
Get all instances of the given <typeparamref name="TService"/> currently
registered in the container.
</summary>
<typeparam name="TService">Type of object requested.</typeparam>
<exception cref="T:Microsoft.Practices.ServiceLocation.ActivationException">if there is are errors resolving
the service instance.</exception>
<returns>A sequence of instances of the requested <typeparamref name="TService"/>.</returns>
</member>
<member name="T:Microsoft.Practices.ServiceLocation.Properties.Resources">
<summary>
A strongly-typed resource class, for looking up localized strings, etc.
</summary>
</member>
<member name="P:Microsoft.Practices.ServiceLocation.Properties.Resources.ResourceManager">
<summary>
Returns the cached ResourceManager instance used by this class.
</summary>
</member>
<member name="P:Microsoft.Practices.ServiceLocation.Properties.Resources.Culture">
<summary>
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
</summary>
</member>
<member name="P:Microsoft.Practices.ServiceLocation.Properties.Resources.ActivateAllExceptionMessage">
<summary>
Looks up a localized string similar to Activation error occured while trying to get all instances of type {0}.
</summary>
</member>
<member name="P:Microsoft.Practices.ServiceLocation.Properties.Resources.ActivationExceptionMessage">
<summary>
Looks up a localized string similar to Activation error occured while trying to get instance of type {0}, key &quot;{1}&quot;.
</summary>
</member>
<member name="T:Microsoft.Practices.ServiceLocation.ServiceLocator">
<summary>
This class provides the ambient container for this application. If your
framework defines such an ambient container, use ServiceLocator.Current
to get it.
</summary>
</member>
<member name="M:Microsoft.Practices.ServiceLocation.ServiceLocator.SetLocatorProvider(Microsoft.Practices.ServiceLocation.ServiceLocatorProvider)">
<summary>
Set the delegate that is used to retrieve the current container.
</summary>
<param name="newProvider">Delegate that, when called, will return
the current ambient container.</param>
</member>
<member name="P:Microsoft.Practices.ServiceLocation.ServiceLocator.Current">
<summary>
The current ambient container.
</summary>
</member>
<member name="T:Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase">
<summary>
This class is a helper that provides a default implementation
for most of the methods of <see cref="T:Microsoft.Practices.ServiceLocation.IServiceLocator"/>.
</summary>
</member>
<member name="M:Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetService(System.Type)">
<summary>
Implementation of <see cref="M:System.IServiceProvider.GetService(System.Type)"/>.
</summary>
<param name="serviceType">The requested service.</param>
<exception cref="T:Microsoft.Practices.ServiceLocation.ActivationException">if there is an error in resolving the service instance.</exception>
<returns>The requested object.</returns>
</member>
<member name="M:Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance(System.Type)">
<summary>
Get an instance of the given <paramref name="serviceType"/>.
</summary>
<param name="serviceType">Type of object requested.</param>
<exception cref="T:Microsoft.Practices.ServiceLocation.ActivationException">if there is an error resolving
the service instance.</exception>
<returns>The requested service instance.</returns>
</member>
<member name="M:Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance(System.Type,System.String)">
<summary>
Get an instance of the given named <paramref name="serviceType"/>.
</summary>
<param name="serviceType">Type of object requested.</param>
<param name="key">Name the object was registered with.</param>
<exception cref="T:Microsoft.Practices.ServiceLocation.ActivationException">if there is an error resolving
the service instance.</exception>
<returns>The requested service instance.</returns>
</member>
<member name="M:Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetAllInstances(System.Type)">
<summary>
Get all instances of the given <paramref name="serviceType"/> currently
registered in the container.
</summary>
<param name="serviceType">Type of object requested.</param>
<exception cref="T:Microsoft.Practices.ServiceLocation.ActivationException">if there is are errors resolving
the service instance.</exception>
<returns>A sequence of instances of the requested <paramref name="serviceType"/>.</returns>
</member>
<member name="M:Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance``1">
<summary>
Get an instance of the given <typeparamref name="TService"/>.
</summary>
<typeparam name="TService">Type of object requested.</typeparam>
<exception cref="T:Microsoft.Practices.ServiceLocation.ActivationException">if there is are errors resolving
the service instance.</exception>
<returns>The requested service instance.</returns>
</member>
<member name="M:Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance``1(System.String)">
<summary>
Get an instance of the given named <typeparamref name="TService"/>.
</summary>
<typeparam name="TService">Type of object requested.</typeparam>
<param name="key">Name the object was registered with.</param>
<exception cref="T:Microsoft.Practices.ServiceLocation.ActivationException">if there is are errors resolving
the service instance.</exception>
<returns>The requested service instance.</returns>
</member>
<member name="M:Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetAllInstances``1">
<summary>
Get all instances of the given <typeparamref name="TService"/> currently
registered in the container.
</summary>
<typeparam name="TService">Type of object requested.</typeparam>
<exception cref="T:Microsoft.Practices.ServiceLocation.ActivationException">if there is are errors resolving
the service instance.</exception>
<returns>A sequence of instances of the requested <typeparamref name="TService"/>.</returns>
</member>
<member name="M:Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.DoGetInstance(System.Type,System.String)">
<summary>
When implemented by inheriting classes, this method will do the actual work of resolving
the requested service instance.
</summary>
<param name="serviceType">Type of instance requested.</param>
<param name="key">Name of registered service you want. May be null.</param>
<returns>The requested service instance.</returns>
</member>
<member name="M:Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.DoGetAllInstances(System.Type)">
<summary>
When implemented by inheriting classes, this method will do the actual work of
resolving all the requested service instances.
</summary>
<param name="serviceType">Type of service requested.</param>
<returns>Sequence of service instance objects.</returns>
</member>
<member name="M:Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.FormatActivationExceptionMessage(System.Exception,System.Type,System.String)">
<summary>
Format the exception message for use in an <see cref="T:Microsoft.Practices.ServiceLocation.ActivationException"/>
that occurs while resolving a single service.
</summary>
<param name="actualException">The actual exception thrown by the implementation.</param>
<param name="serviceType">Type of service requested.</param>
<param name="key">Name requested.</param>
<returns>The formatted exception message string.</returns>
</member>
<member name="M:Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.FormatActivateAllExceptionMessage(System.Exception,System.Type)">
<summary>
Format the exception message for use in an <see cref="T:Microsoft.Practices.ServiceLocation.ActivationException"/>
that occurs while resolving multiple service instances.
</summary>
<param name="actualException">The actual exception thrown by the implementation.</param>
<param name="serviceType">Type of service requested.</param>
<returns>The formatted exception message string.</returns>
</member>
<member name="T:Microsoft.Practices.ServiceLocation.ServiceLocatorProvider">
<summary>
This delegate type is used to provide a method that will
return the current container. Used with the <see cref="T:Microsoft.Practices.ServiceLocation.ServiceLocator"/>
static accessor class.
</summary>
<returns>An <see cref="T:Microsoft.Practices.ServiceLocation.IServiceLocator"/>.</returns>
</member>
</members>
</doc>

View File

@@ -1 +0,0 @@
New BSD License linked at http://www.opensource.org/licenses/bsd-license.php

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -1,10 +0,0 @@
Copyright (c) 2005-2006, NMock 2 Development Team.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of NMock nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Binary file not shown.

View File

@@ -1,15 +0,0 @@
Copyright <20> 2002-2007 Charlie Poole
Copyright <20> 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov
Copyright <20> 2000-2002 Philip A. Craig
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment (see the following) in the product documentation is required.
Portions Copyright <20> 2002-2007 Charlie Poole or Copyright <20> 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov or Copyright <20> 2000-2002 Philip A. Craig
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.

Binary file not shown.

View File

@@ -1,201 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

File diff suppressed because it is too large Load Diff

View File

@@ -616,6 +616,11 @@
Looks up a localized string similar to Unable to convert object of type &apos;{0}&apos; to type &apos;{1}&apos;..
</summary>
</member>
<member name="P:Autofac.Configuration.ConfigurationSettingsReaderResources.TypeConverterAttributeTypeNotConverter">
<summary>
Looks up a localized string similar to The type &apos;{0}&apos; specified in the TypeConverterAttribute is not a TypeConverter..
</summary>
</member>
<member name="P:Autofac.Configuration.ConfigurationSettingsReaderResources.TypeNotFound">
<summary>
Looks up a localized string similar to The type &apos;{0}&apos; could not be found. It may require assembly qualification, e.g. &quot;MyType, MyAssembly&quot;..
@@ -663,7 +668,7 @@
</member>
<member name="T:Autofac.Configuration.Elements.ListElementCollection.ListElementTypeConverter">
<summary>
Helps convert the configuration element into an actuall generic list
Helps convert the configuration element into an actual generic list
</summary>
</member>
<member name="T:Autofac.Configuration.Util.Enforce">
@@ -1114,7 +1119,7 @@
Some handy type conversion routines.
</summary>
</member>
<member name="M:Autofac.Configuration.Util.TypeManipulation.ChangeToCompatibleType(System.Object,System.Type)">
<member name="M:Autofac.Configuration.Util.TypeManipulation.ChangeToCompatibleType(System.Object,System.Type,System.Reflection.ICustomAttributeProvider)">
<summary>
Does its best to convert whatever the value is into the destination
type. Null in yields null out for value types and the default(T)
@@ -1122,6 +1127,7 @@
</summary>
<param name="value">The value.</param>
<param name="destinationType">Type of the destination.</param>
<param name="memberInfo">Reflected property or member info for the destination, if available, for retrieving custom type converter information.</param>
<returns>An object of the destination type.</returns>
</member>
<member name="T:Autofac.Configuration.Elements.ListItemElement">

View File

@@ -1,353 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>Autofac.Integration.Mef</name>
</assembly>
<members>
<member name="T:Autofac.Integration.Mef.ContractBasedService">
<summary>
Identifies a service by the MEF contract name it supports.
</summary>
</member>
<member name="M:Autofac.Integration.Mef.ContractBasedService.#ctor(System.String,System.String)">
<summary>
Initializes a new instance of the <see cref="T:Autofac.Integration.Mef.ContractBasedService"/> class.
</summary>
<param name="contractName">The contract name.</param>
<param name="exportTypeIdentity">Type identity of the objects exported under the contract.</param>
</member>
<member name="M:Autofac.Integration.Mef.ContractBasedService.Equals(System.Object)">
<summary>
Determines whether the specified <see cref="T:System.Object"/> is equal to the current <see cref="T:System.Object"/>.
</summary>
<param name="obj">The <see cref="T:System.Object"/> to compare with the current <see cref="T:System.Object"/>.</param>
<returns>
true if the specified <see cref="T:System.Object"/> is equal to the current <see cref="T:System.Object"/>; otherwise, false.
</returns>
<exception cref="T:System.NullReferenceException">The <paramref name="obj"/> parameter is null.</exception>
</member>
<member name="M:Autofac.Integration.Mef.ContractBasedService.GetHashCode">
<summary>
Serves as a hash function for a particular ExportDefinition.
</summary>
<returns>
A hash code for the current <see cref="T:System.Object"/>.
</returns>
</member>
<member name="P:Autofac.Integration.Mef.ContractBasedService.ExportTypeIdentity">
<summary>
Type identity of the objects exported under the contract.
</summary>
</member>
<member name="P:Autofac.Integration.Mef.ContractBasedService.ContractName">
<summary>
Gets or sets the name of the contract.
</summary>
<value>The name of the contract.</value>
</member>
<member name="P:Autofac.Integration.Mef.ContractBasedService.Description">
<summary>
Gets a human-readable description of the service.
</summary>
<value>The description.</value>
</member>
<member name="T:Autofac.Integration.Mef.ContractBasedServiceResources">
<summary>
A strongly-typed resource class, for looking up localized strings, etc.
</summary>
</member>
<member name="P:Autofac.Integration.Mef.ContractBasedServiceResources.ResourceManager">
<summary>
Returns the cached ResourceManager instance used by this class.
</summary>
</member>
<member name="P:Autofac.Integration.Mef.ContractBasedServiceResources.Culture">
<summary>
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
</summary>
</member>
<member name="P:Autofac.Integration.Mef.ContractBasedServiceResources.DescriptionFormat">
<summary>
Looks up a localized string similar to ContractName={0}.
</summary>
</member>
<member name="T:Autofac.Integration.Mef.ExportConfigurationBuilder">
<summary>
Configures an Export on an Autofac component.
</summary>
</member>
<member name="M:Autofac.Integration.Mef.ExportConfigurationBuilder.As``1">
<summary>
Export the component under typed contract <typeparamref name="TContract"/>.
</summary>
<typeparam name="TContract">Contract type.</typeparam>
<returns>Builder for additional configuration.</returns>
</member>
<member name="M:Autofac.Integration.Mef.ExportConfigurationBuilder.AsNamed``1(System.String)">
<summary>
Export the component under named contract <paramref name="name"/>.
</summary>
<typeparam name="TExportedValue">Exported value type.</typeparam>
<param name="name">Contract name.</param>
<returns>Builder for additional configuration.</returns>
</member>
<member name="M:Autofac.Integration.Mef.ExportConfigurationBuilder.WithMetadata(System.String,System.Object)">
<summary>
Add metadata to the export.
</summary>
<param name="key">Metadata key.</param>
<param name="value">Metadata value.</param>
<returns>Builder for additional configuration.</returns>
</member>
<member name="M:Autofac.Integration.Mef.ExportConfigurationBuilder.WithMetadata(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.Object}})">
<summary>
Add metadata to the export.
</summary>
<param name="metadata">Metadata.</param>
<returns>Builder for additional configuration.</returns>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="metadata"/> is <see langword="null"/>.
</exception>
</member>
<member name="T:Autofac.Integration.Mef.IMetadataConfiguration">
<summary>
Implementors are able to provide metadata for a component.
</summary>
</member>
<member name="P:Autofac.Integration.Mef.IMetadataConfiguration.Properties">
<summary>
Gets the metadata properties and values.
</summary>
</member>
<member name="T:Autofac.Integration.Mef.LazyWithMetadataRegistrationSourceResources">
<summary>
A strongly-typed resource class, for looking up localized strings, etc.
</summary>
</member>
<member name="P:Autofac.Integration.Mef.LazyWithMetadataRegistrationSourceResources.ResourceManager">
<summary>
Returns the cached ResourceManager instance used by this class.
</summary>
</member>
<member name="P:Autofac.Integration.Mef.LazyWithMetadataRegistrationSourceResources.Culture">
<summary>
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
</summary>
</member>
<member name="P:Autofac.Integration.Mef.LazyWithMetadataRegistrationSourceResources.LazyWithMetadataRegistrationSourceDescription">
<summary>
Looks up a localized string similar to Lazy&lt;T, TMetadata&gt; Support.
</summary>
</member>
<member name="T:Autofac.Integration.Mef.LazyWithMetadataRegistrationSource">
<summary>
Support the <see cref="T:System.Lazy`2"/>
types automatically whenever type T is registered with the container.
Metadata values come from the component registration's metadata.
When a dependency of a lazy type is used, the instantiation of the underlying
component will be delayed until the Value property is first accessed.
</summary>
</member>
<member name="T:Autofac.Integration.Mef.StronglyTypedMetaRegistrationSource">
<summary>
Support the <see cref="T:Autofac.Features.Metadata.Meta`2"/>
types automatically whenever type T is registered with the container.
Metadata values come from the component registration's metadata.
</summary>
</member>
<member name="T:Autofac.Integration.Mef.Util.ReflectionExtensions">
<summary>
Extension methods for reflection-related types.
</summary>
</member>
<member name="M:Autofac.Integration.Mef.Util.ReflectionExtensions.TryGetDeclaringProperty(System.Reflection.ParameterInfo,System.Reflection.PropertyInfo@)">
<summary>
Maps from a property-set-value parameter to the declaring property.
</summary>
<param name="pi">Parameter to the property setter.</param>
<param name="prop">The property info on which the setter is specified.</param>
<returns>True if the parameter is a property setter.</returns>
</member>
<member name="M:Autofac.Integration.Mef.Util.ReflectionExtensions.GetProperty``2(System.Linq.Expressions.Expression{System.Func{``0,``1}})">
<summary>
Get a PropertyInfo object from an expression of the form
x =&gt; x.P.
</summary>
<typeparam name="TDeclaring">Type declaring the property.</typeparam>
<typeparam name="TProperty">The type of the property.</typeparam>
<param name="propertyAccessor">Expression mapping an instance of the
declaring type to the property value.</param>
<returns>Property info.</returns>
</member>
<member name="T:Autofac.Integration.Mef.Util.ReflectionExtensionsResources">
<summary>
A strongly-typed resource class, for looking up localized strings, etc.
</summary>
</member>
<member name="P:Autofac.Integration.Mef.Util.ReflectionExtensionsResources.ResourceManager">
<summary>
Returns the cached ResourceManager instance used by this class.
</summary>
</member>
<member name="P:Autofac.Integration.Mef.Util.ReflectionExtensionsResources.Culture">
<summary>
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
</summary>
</member>
<member name="P:Autofac.Integration.Mef.Util.ReflectionExtensionsResources.ExpressionNotPropertyAccessor">
<summary>
Looks up a localized string similar to The provided expression must be of the form x =&gt;x.P, but the provided expression was {0}..
</summary>
</member>
<member name="T:Autofac.Integration.Mef.StronglyTypedMetaRegistrationSourceResources">
<summary>
A strongly-typed resource class, for looking up localized strings, etc.
</summary>
</member>
<member name="P:Autofac.Integration.Mef.StronglyTypedMetaRegistrationSourceResources.ResourceManager">
<summary>
Returns the cached ResourceManager instance used by this class.
</summary>
</member>
<member name="P:Autofac.Integration.Mef.StronglyTypedMetaRegistrationSourceResources.Culture">
<summary>
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
</summary>
</member>
<member name="P:Autofac.Integration.Mef.StronglyTypedMetaRegistrationSourceResources.StronglyTypedMetaRegistrationSourceDescription">
<summary>
Looks up a localized string similar to Meta&lt;T, TMetadata&gt; Support.
</summary>
</member>
<member name="T:Autofac.Integration.Mef.RegistrationExtensions">
<summary>
Extension methods that add MEF hosting capabilities to the container building classes.
</summary>
</member>
<member name="F:Autofac.Integration.Mef.RegistrationExtensions._contractNameServices">
<summary>
Reference to the internal <see cref="T:System.Type"/> for <c>System.ComponentModel.Composition.ContractNameServices</c>,
which is responsible for mapping types to MEF contract names.
</summary>
</member>
<member name="F:Autofac.Integration.Mef.RegistrationExtensions._typeIdentityCache">
<summary>
Reference to the property <c>System.ComponentModel.Composition.ContractNameServices.TypeIdentityCache</c>,
which holds the dictionary of <see cref="T:System.Type"/> to <see cref="T:System.String"/> contract name mappings.
</summary>
</member>
<member name="M:Autofac.Integration.Mef.RegistrationExtensions.RegisterMetadataRegistrationSources(Autofac.ContainerBuilder)">
<summary>
Registers the <see cref="T:Autofac.Integration.Mef.LazyWithMetadataRegistrationSource"/> and
<see cref="T:Autofac.Integration.Mef.StronglyTypedMetaRegistrationSource"/> registration sources.
</summary>
<param name="builder">The container builder.</param>
</member>
<member name="M:Autofac.Integration.Mef.RegistrationExtensions.Exported``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2},System.Action{Autofac.Integration.Mef.ExportConfigurationBuilder})">
<summary>
Expose the registered service to MEF parts as an export.
</summary>
<param name="registration">The component being registered.</param>
<param name="configurationAction">Action on an object that configures the export.</param>
<returns>A registration allowing registration to continue.</returns>
</member>
<member name="M:Autofac.Integration.Mef.RegistrationExtensions.RegisterComposablePartType(Autofac.ContainerBuilder,System.Type)">
<summary>
Register a MEF-attributed type as a component.
</summary>
<param name="builder">The container builder.</param>
<param name="partType">The attributed type to register.</param>
<remarks>
A simple heuristic/type scanning technique will be used to determine which MEF exports
are exposed to other components in the Autofac container.
</remarks>
</member>
<member name="M:Autofac.Integration.Mef.RegistrationExtensions.RegisterComposablePartType(Autofac.ContainerBuilder,System.Type,System.Func{System.ComponentModel.Composition.Primitives.ExportDefinition,System.Collections.Generic.IEnumerable{Autofac.Core.Service}})">
<summary>
Register a MEF-attributed type as a component.
</summary>
<param name="builder">The container builder.</param>
<param name="partType">The attributed type to register.</param>
<param name="exposedServicesMapper">A mapping function to transform ExportDefinitions into Services.</param>
</member>
<member name="M:Autofac.Integration.Mef.RegistrationExtensions.RegisterComposablePartCatalog(Autofac.ContainerBuilder,System.ComponentModel.Composition.Primitives.ComposablePartCatalog)">
<summary>
Register a MEF catalog.
</summary>
<param name="builder">The container builder.</param>
<param name="catalog">The catalog to register.</param>
<remarks>
A simple heuristic/type scanning technique will be used to determine which MEF exports
are exposed to other components in the Autofac container.
</remarks>
</member>
<member name="M:Autofac.Integration.Mef.RegistrationExtensions.RegisterComposablePartCatalog(Autofac.ContainerBuilder,System.ComponentModel.Composition.Primitives.ComposablePartCatalog,Autofac.Core.Service[])">
<summary>
Register a MEF catalog.
</summary>
<param name="builder">The container builder.</param>
<param name="catalog">The catalog to register.</param>
<param name="interchangeServices">The services that will be exposed to other components in the container.</param>
<remarks>
Named and typed services only can be matched in the <paramref name="interchangeServices"/> collection.
</remarks>
</member>
<member name="M:Autofac.Integration.Mef.RegistrationExtensions.RegisterComposablePartCatalog(Autofac.ContainerBuilder,System.ComponentModel.Composition.Primitives.ComposablePartCatalog,System.Func{System.ComponentModel.Composition.Primitives.ExportDefinition,System.Collections.Generic.IEnumerable{Autofac.Core.Service}})">
<summary>
Register a MEF catalog.
</summary>
<param name="builder">The container builder.</param>
<param name="catalog">The catalog to register.</param>
<param name="exposedServicesMapper">A mapping function to transform ExportDefinitions into Services.</param>
</member>
<member name="M:Autofac.Integration.Mef.RegistrationExtensions.RegisterComposablePartDefinition(Autofac.ContainerBuilder,System.ComponentModel.Composition.Primitives.ComposablePartDefinition,System.Func{System.ComponentModel.Composition.Primitives.ExportDefinition,System.Collections.Generic.IEnumerable{Autofac.Core.Service}})">
<summary>
Register a MEF part definition.
</summary>
<param name="builder">The container builder.</param>
<param name="partDefinition">The part definition to register.</param>
<param name="exposedServicesMapper">A mapping function to transform ExportDefinitions into Services.</param>
</member>
<member name="M:Autofac.Integration.Mef.RegistrationExtensions.ResolveExports``1(Autofac.IComponentContext)">
<summary>
Locate all of the MEF exports registered as supplying contract type T.
</summary>
<typeparam name="T">The contract type.</typeparam>
<param name="context">The context to resolve exports from.</param>
<returns>A list of exports.</returns>
</member>
<member name="M:Autofac.Integration.Mef.RegistrationExtensions.ResolveExports``1(Autofac.IComponentContext,System.String)">
<summary>
Locate all of the MEF exports registered as supplying contract type T.
</summary>
<param name="contractName">The contract name.</param>
<param name="context">The context to resolve exports from.</param>
<returns>A list of exports.</returns>
</member>
<member name="T:Autofac.Integration.Mef.RegistrationExtensionsResources">
<summary>
A strongly-typed resource class, for looking up localized strings, etc.
</summary>
</member>
<member name="P:Autofac.Integration.Mef.RegistrationExtensionsResources.ResourceManager">
<summary>
Returns the cached ResourceManager instance used by this class.
</summary>
</member>
<member name="P:Autofac.Integration.Mef.RegistrationExtensionsResources.Culture">
<summary>
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
</summary>
</member>
<member name="P:Autofac.Integration.Mef.RegistrationExtensionsResources.ContractBasedOnly">
<summary>
Looks up a localized string similar to Import &apos;{0}&apos; is not supported: only contract-based imports are supported..
</summary>
</member>
</members>
</doc>

View File

@@ -1,713 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>Autofac.Integration.Mvc</name>
</assembly>
<members>
<member name="T:Autofac.Integration.Mvc.AutofacDependencyResolver">
<summary>
Autofac implementation of the <see cref="T:System.Web.Mvc.IDependencyResolver"/> interface.
</summary>
</member>
<member name="M:Autofac.Integration.Mvc.AutofacDependencyResolver.#ctor(Autofac.ILifetimeScope)">
<summary>
Initializes a new instance of the <see cref="T:Autofac.Integration.Mvc.AutofacDependencyResolver"/> class.
</summary>
<param name="container">The container that nested lifetime scopes will be create from.</param>
</member>
<member name="M:Autofac.Integration.Mvc.AutofacDependencyResolver.#ctor(Autofac.ILifetimeScope,System.Action{Autofac.ContainerBuilder})">
<summary>
Initializes a new instance of the <see cref="T:Autofac.Integration.Mvc.AutofacDependencyResolver"/> class.
</summary>
<param name="container">The container that nested lifetime scopes will be create from.</param>
<param name="configurationAction">Action on a <see cref="T:Autofac.ContainerBuilder"/>
that adds component registations visible only in nested lifetime scopes.</param>
</member>
<member name="M:Autofac.Integration.Mvc.AutofacDependencyResolver.#ctor(Autofac.ILifetimeScope,Autofac.Integration.Mvc.ILifetimeScopeProvider)">
<summary>
Initializes a new instance of the <see cref="T:Autofac.Integration.Mvc.AutofacDependencyResolver"/> class.
</summary>
<param name="container">The container that nested lifetime scopes will be create from.</param>
<param name="lifetimeScopeProvider">A <see cref="T:Autofac.Integration.Mvc.ILifetimeScopeProvider"/> implementation for
creating new lifetime scopes.</param>
</member>
<member name="M:Autofac.Integration.Mvc.AutofacDependencyResolver.#ctor(Autofac.ILifetimeScope,Autofac.Integration.Mvc.ILifetimeScopeProvider,System.Action{Autofac.ContainerBuilder})">
<summary>
Initializes a new instance of the <see cref="T:Autofac.Integration.Mvc.AutofacDependencyResolver"/> class.
</summary>
<param name="container">The container that nested lifetime scopes will be create from.</param>
<param name="lifetimeScopeProvider">A <see cref="T:Autofac.Integration.Mvc.ILifetimeScopeProvider"/> implementation for
creating new lifetime scopes.</param>
<param name="configurationAction">Action on a <see cref="T:Autofac.ContainerBuilder"/>
that adds component registations visible only in nested lifetime scopes.</param>
</member>
<member name="M:Autofac.Integration.Mvc.AutofacDependencyResolver.GetService(System.Type)">
<summary>
Get a single instance of a service.
</summary>
<param name="serviceType">Type of the service.</param>
<returns>The single instance if resolved; otherwise, <c>null</c>.</returns>
</member>
<member name="M:Autofac.Integration.Mvc.AutofacDependencyResolver.GetServices(System.Type)">
<summary>
Gets all available instances of a services.
</summary>
<param name="serviceType">Type of the service.</param>
<returns>The list of instances if any were resolved; otherwise, an empty list.</returns>
</member>
<member name="P:Autofac.Integration.Mvc.AutofacDependencyResolver.Current">
<summary>
Gets the Autofac implementation of the dependency resolver.
</summary>
</member>
<member name="P:Autofac.Integration.Mvc.AutofacDependencyResolver.RequestLifetimeScope">
<summary>
The lifetime containing components for processing the current HTTP request.
</summary>
</member>
<member name="P:Autofac.Integration.Mvc.AutofacDependencyResolver.ApplicationContainer">
<summary>
Gets the application container that was provided to the constructor.
</summary>
</member>
<member name="T:Autofac.Integration.Mvc.AutofacFilterProvider">
<summary>
Defines a filter provider for filter attributes that performs property injection.
</summary>
</member>
<member name="M:Autofac.Integration.Mvc.AutofacFilterProvider.#ctor">
<summary>
Initializes a new instance of the <see cref="T:Autofac.Integration.Mvc.AutofacFilterProvider"/> class.
</summary>
<remarks>
The <c>false</c> constructor parameter passed to base here ensures that attribute instances are not cached.
</remarks>
</member>
<member name="M:Autofac.Integration.Mvc.AutofacFilterProvider.GetFilters(System.Web.Mvc.ControllerContext,System.Web.Mvc.ActionDescriptor)">
<summary>
Aggregates the filters from all of the filter providers into one collection.
</summary>
<param name="controllerContext">The controller context.</param>
<param name="actionDescriptor">The action descriptor.</param>
<returns>
The collection filters from all of the filter providers with properties injected.
</returns>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="controllerContext"/> is <see langword="null"/>.
</exception>
</member>
<member name="T:Autofac.Integration.Mvc.AutofacModelBinderProvider">
<summary>
Autofac implementation of the <see cref="T:System.Web.Mvc.IModelBinderProvider"/> interface.
</summary>
</member>
<member name="F:Autofac.Integration.Mvc.AutofacModelBinderProvider.MetadataKey">
<summary>
Metadata key for the supported model types.
</summary>
</member>
<member name="M:Autofac.Integration.Mvc.AutofacModelBinderProvider.GetBinder(System.Type)">
<summary>
Gets the model binder associated with the provided model type.
</summary>
<param name="modelType">Type of the model.</param>
<returns>An <see cref="T:System.Web.Mvc.IModelBinder"/> instance if found; otherwise, <c>null</c>.</returns>
</member>
<member name="T:Autofac.Integration.Mvc.AutofacWebTypesModule">
<summary>
Dependency injection module that registers abstractions for common
web application properties.
</summary>
<remarks>
<para>
This <see cref="T:Autofac.Module"/> is primarily used during
application startup (in <c>Global.asax</c>) to register
mappings from commonly referenced contextual application properties
to their corresponding abstraction.
</para>
<para>
The following mappings are made:
</para>
<list type="table">
<listheader>
<term>Common Construct</term>
<description>Abstraction</description>
</listheader>
<item>
<term><c>HttpContext.Current</c></term>
<description><see cref="T:System.Web.HttpContextBase"/></description>
</item>
<item>
<term><c>HttpContext.Current.Application</c></term>
<description><see cref="T:System.Web.HttpApplicationStateBase"/></description>
</item>
<item>
<term><c>HttpContext.Current.Request</c></term>
<description><see cref="T:System.Web.HttpRequestBase"/></description>
</item>
<item>
<term><c>HttpContext.Current.Request.Browser</c></term>
<description><see cref="T:System.Web.HttpBrowserCapabilitiesBase"/></description>
</item>
<item>
<term><c>HttpContext.Current.Request.Files</c></term>
<description><see cref="T:System.Web.HttpFileCollectionBase"/></description>
</item>
<item>
<term><c>HttpContext.Current.Request.RequestContext</c></term>
<description><see cref="T:System.Web.Routing.RequestContext"/></description>
</item>
<item>
<term><c>HttpContext.Current.Response</c></term>
<description><see cref="T:System.Web.HttpResponseBase"/></description>
</item>
<item>
<term><c>HttpContext.Current.Response.Cache</c></term>
<description><see cref="T:System.Web.HttpCachePolicyBase"/></description>
</item>
<item>
<term><c>HttpContext.Current.Server</c></term>
<description><see cref="T:System.Web.HttpServerUtilityBase"/></description>
</item>
<item>
<term><c>HttpContext.Current.Session</c></term>
<description><see cref="T:System.Web.HttpSessionStateBase"/></description>
</item>
<item>
<term><c>HostingEnvironment.VirtualPathProvider</c></term>
<description><see cref="T:System.Web.Hosting.VirtualPathProvider"/></description>
</item>
</list>
<para>
In addition, the <see cref="T:System.Web.Mvc.UrlHelper"/> type is registered
for construction based on the current <see cref="T:System.Web.Routing.RequestContext"/>.
</para>
<para>
The lifetime for each of these items is one web request.
</para>
</remarks>
</member>
<member name="M:Autofac.Integration.Mvc.AutofacWebTypesModule.Load(Autofac.ContainerBuilder)">
<summary>
Registers web abstractions with dependency injection.
</summary>
<param name="builder">
The <see cref="T:Autofac.ContainerBuilder"/> in which registration
should take place.
</param>
<remarks>
<para>
This method registers mappings between common current context-related
web constructs and their associated abstract counterparts. See
<see cref="T:Autofac.Integration.Mvc.AutofacWebTypesModule"/> for the complete
list of mappings that get registered.
</para>
</remarks>
</member>
<member name="T:Autofac.Integration.Mvc.FilterMetadata">
<summary>
Metadata interface for filter registrations.
</summary>
</member>
<member name="P:Autofac.Integration.Mvc.FilterMetadata.ControllerType">
<summary>
Gets the type of the controller.
</summary>
</member>
<member name="P:Autofac.Integration.Mvc.FilterMetadata.FilterScope">
<summary>
Gets the filter scope.
</summary>
</member>
<member name="P:Autofac.Integration.Mvc.FilterMetadata.MethodInfo">
<summary>
Gets the method info.
</summary>
</member>
<member name="P:Autofac.Integration.Mvc.FilterMetadata.Order">
<summary>
Gets the order in which the filter is applied.
</summary>
</member>
<member name="T:Autofac.Integration.Mvc.RegistrationExtensionsResources">
<summary>
A strongly-typed resource class, for looking up localized strings, etc.
</summary>
</member>
<member name="P:Autofac.Integration.Mvc.RegistrationExtensionsResources.ResourceManager">
<summary>
Returns the cached ResourceManager instance used by this class.
</summary>
</member>
<member name="P:Autofac.Integration.Mvc.RegistrationExtensionsResources.Culture">
<summary>
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
</summary>
</member>
<member name="P:Autofac.Integration.Mvc.RegistrationExtensionsResources.InvalidActionExpress">
<summary>
Looks up a localized string similar to The action method Expression is invalid. It should consist only of a Method call to a controller action method..
</summary>
</member>
<member name="P:Autofac.Integration.Mvc.RegistrationExtensionsResources.InvalidModelBinderType">
<summary>
Looks up a localized string similar to Type list may not be empty or contain all null values..
</summary>
</member>
<member name="P:Autofac.Integration.Mvc.RegistrationExtensionsResources.MustBeAssignableToFilterType">
<summary>
Looks up a localized string similar to The type &apos;{0}&apos; must be assignable to the filter type &apos;{1}&apos;..
</summary>
</member>
<member name="T:Autofac.Integration.Mvc.RequestLifetimeScopeProvider">
<summary>
Creates and disposes HTTP request based lifetime scopes.
</summary>
<remarks>
The provider is notified when a HTTP request ends by the <see cref="T:Autofac.Integration.Mvc.RequestLifetimeHttpModule"/>.
</remarks>
</member>
<member name="T:Autofac.Integration.Mvc.ILifetimeScopeProvider">
<summary>
Implementors are able to control the creation of nested lifetime scopes.
</summary>
</member>
<member name="M:Autofac.Integration.Mvc.ILifetimeScopeProvider.GetLifetimeScope(System.Action{Autofac.ContainerBuilder})">
<summary>
Gets a nested lifetime scope that services can be resolved from.
</summary>
<param name="configurationAction">
A configuration action that will execute during lifetime scope creation.
</param>
<returns>A new or existing nested lifetime scope.</returns>
</member>
<member name="M:Autofac.Integration.Mvc.ILifetimeScopeProvider.EndLifetimeScope">
<summary>
Ends the current lifetime scope.
</summary>
</member>
<member name="P:Autofac.Integration.Mvc.ILifetimeScopeProvider.ApplicationContainer">
<summary>
Gets the global, application-wide container.
</summary>
</member>
<member name="F:Autofac.Integration.Mvc.RequestLifetimeScopeProvider.HttpRequestTag">
<summary>
Tag used to identify registrations that are scoped to the HTTP request level.
</summary>
</member>
<member name="M:Autofac.Integration.Mvc.RequestLifetimeScopeProvider.#ctor(Autofac.ILifetimeScope)">
<summary>
Initializes a new instance of the <see cref="T:Autofac.Integration.Mvc.RequestLifetimeScopeProvider"/> class.
</summary>
<param name="container">The parent container, usually the application container.</param>
</member>
<member name="M:Autofac.Integration.Mvc.RequestLifetimeScopeProvider.GetLifetimeScope(System.Action{Autofac.ContainerBuilder})">
<summary>
Gets a nested lifetime scope that services can be resolved from.
</summary>
<param name="configurationAction">
A configuration action that will execute during lifetime scope creation.
</param>
<returns>A new or existing nested lifetime scope.</returns>
</member>
<member name="M:Autofac.Integration.Mvc.RequestLifetimeScopeProvider.EndLifetimeScope">
<summary>
Ends the current HTTP request lifetime scope.
</summary>
</member>
<member name="M:Autofac.Integration.Mvc.RequestLifetimeScopeProvider.GetLifetimeScopeCore(System.Action{Autofac.ContainerBuilder})">
<summary>
Gets a lifetime scope for the current HTTP request. This method can be overridden
to alter the way that the life time scope is constructed.
</summary>
<param name="configurationAction">
A configuration action that will execute during lifetime scope creation.
</param>
<returns>A new lifetime scope for the current HTTP request.</returns>
</member>
<member name="P:Autofac.Integration.Mvc.RequestLifetimeScopeProvider.ApplicationContainer">
<summary>
Gets the global, application-wide container.
</summary>
</member>
<member name="T:Autofac.Integration.Mvc.ExtensibleActionInvoker">
<summary>
Injects services from the container into the ASP.NET MVC invocation pipeline.
This is a Async Controller Action Invoker which can be used for both async and non-async scenarios
</summary>
<remarks>
<para>
Action methods can include parameters that will be resolved from the
container, along with regular parameters.
</para>
</remarks>
</member>
<member name="M:Autofac.Integration.Mvc.ExtensibleActionInvoker.GetParameterValue(System.Web.Mvc.ControllerContext,System.Web.Mvc.ParameterDescriptor)">
<summary>
Gets the parameter value.
</summary>
<param name="controllerContext">The controller context.</param><param name="parameterDescriptor">The parameter descriptor.</param>
<returns>
The parameter value.
</returns>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="parameterDescriptor"/> is <see langword="null"/>.
</exception>
</member>
<member name="T:Autofac.Integration.Mvc.ModelBinderTypeAttribute">
<summary>
Indicates what types a model binder supports.
</summary>
</member>
<member name="M:Autofac.Integration.Mvc.ModelBinderTypeAttribute.#ctor(System.Type[])">
<summary>
Initializes a new instance of the <see cref="T:Autofac.Integration.Mvc.ModelBinderTypeAttribute"/> class.
</summary>
<param name="targetTypes">The target types.</param>
</member>
<member name="M:Autofac.Integration.Mvc.ModelBinderTypeAttribute.#ctor(System.Type)">
<summary>
Initializes a new instance of the <see cref="T:Autofac.Integration.Mvc.ModelBinderTypeAttribute"/> class.
</summary>
<param name="targetType">The target type.</param>
</member>
<member name="P:Autofac.Integration.Mvc.ModelBinderTypeAttribute.TargetTypes">
<summary>
Gets the target types.
</summary>
</member>
<member name="T:Autofac.Integration.Mvc.PreApplicationStartCode">
<summary>
Container class for the ASP.NET application startup method.
</summary>
</member>
<member name="M:Autofac.Integration.Mvc.PreApplicationStartCode.Start">
<summary>
Performs ASP.NET application startup logic early in the pipeline.
</summary>
</member>
<member name="T:Autofac.Integration.Mvc.RegistrationExtensions">
<summary>
Extends <see cref="T:Autofac.ContainerBuilder"/> with methods to support ASP.NET MVC.
</summary>
</member>
<member name="M:Autofac.Integration.Mvc.RegistrationExtensions.InstancePerHttpRequest``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2})">
<summary>
Share one instance of the component within the context of a single
HTTP request.
</summary>
<typeparam name="TLimit">Registration limit type.</typeparam>
<typeparam name="TStyle">Registration style.</typeparam>
<typeparam name="TActivatorData">Activator data type.</typeparam>
<param name="registration">The registration to configure.</param>
<returns>A registration builder allowing further configuration of the component.</returns>
</member>
<member name="M:Autofac.Integration.Mvc.RegistrationExtensions.RegisterControllers(Autofac.ContainerBuilder,System.Reflection.Assembly[])">
<summary>
Register types that implement IController in the provided assemblies.
</summary>
<param name="builder">The container builder.</param>
<param name="controllerAssemblies">Assemblies to scan for controllers.</param>
<returns>Registration builder allowing the controller components to be customised.</returns>
</member>
<member name="M:Autofac.Integration.Mvc.RegistrationExtensions.InjectActionInvoker``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2})">
<summary>
Inject an IActionInvoker into the controller's ActionInvoker property.
</summary>
<typeparam name="TLimit">Limit type.</typeparam>
<typeparam name="TActivatorData">Activator data.</typeparam>
<typeparam name="TRegistrationStyle">Registration style.</typeparam>
<param name="registrationBuilder">The registration builder.</param>
<returns>A registration builder.</returns>
</member>
<member name="M:Autofac.Integration.Mvc.RegistrationExtensions.InjectActionInvoker``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2},Autofac.Core.Service)">
<summary>
Inject an IActionInvoker into the controller's ActionInvoker property.
</summary>
<typeparam name="TLimit">Limit type.</typeparam>
<typeparam name="TActivatorData">Activator data.</typeparam>
<typeparam name="TRegistrationStyle">Registration style.</typeparam>
<param name="registrationBuilder">The registration builder.</param>
<param name="actionInvokerService">Service used to resolve the action invoker.</param>
<returns>A registration builder.</returns>
</member>
<member name="M:Autofac.Integration.Mvc.RegistrationExtensions.RegisterModelBinderProvider(Autofac.ContainerBuilder)">
<summary>
Registers the <see cref="T:Autofac.Integration.Mvc.AutofacModelBinderProvider"/>.
</summary>
<param name="builder">The container builder.</param>
</member>
<member name="M:Autofac.Integration.Mvc.RegistrationExtensions.AsModelBinderForTypes``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2},System.Type[])">
<summary>
Sets a provided registration to act as an <see cref="T:System.Web.Mvc.IModelBinder"/>
for the specified list of types.
</summary>
<param name="registration">
The registration for the type or object instance that will act as
the model binder.
</param>
<param name="types">
The list of model <see cref="T:System.Type"/> for which the <paramref name="registration"/>
should be a model binder.
</param>
<typeparam name="TLimit">
Registration limit type.
</typeparam>
<typeparam name="TActivatorData">
Activator data type.
</typeparam>
<typeparam name="TRegistrationStyle">
Registration style.
</typeparam>
<returns>
An Autofac registration that can be modified as needed.
</returns>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="registration"/> or <paramref name="types"/> is <see langword="null"/>.
</exception>
<exception cref="T:System.ArgumentException">
Thrown if <paramref name="types"/> is empty or contains all <see langword="null"/>
values.
</exception>
<remarks>
<para>
The declarative mechanism of registering model binders with Autofac
is through use of <see cref="M:Autofac.Integration.Mvc.RegistrationExtensions.RegisterModelBinders(Autofac.ContainerBuilder,System.Reflection.Assembly[])"/>
and the <see cref="T:Autofac.Integration.Mvc.ModelBinderTypeAttribute"/>.
This method is an imperative alternative.
</para>
<para>
The two mechanisms are mutually exclusive. If you register a model
binder using <see cref="M:Autofac.Integration.Mvc.RegistrationExtensions.RegisterModelBinders(Autofac.ContainerBuilder,System.Reflection.Assembly[])"/>
and register the same model binder with this method, the results
are not automatically merged together - standard dependency
registration/resolution rules will be used to manage the conflict.
</para>
<para>
Any <see langword="null"/> values provided in <paramref name="types"/>
will be removed prior to registration.
</para>
</remarks>
</member>
<member name="M:Autofac.Integration.Mvc.RegistrationExtensions.RegisterModelBinders(Autofac.ContainerBuilder,System.Reflection.Assembly[])">
<summary>
Register types that implement <see cref="T:System.Web.Mvc.IModelBinder"/> in the provided assemblies
and have a <see cref="T:Autofac.Integration.Mvc.ModelBinderTypeAttribute"/>.
</summary>
<param name="builder">The container builder.</param>
<param name="modelBinderAssemblies">Assemblies to scan for model binders.</param>
<returns>A registration builder.</returns>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="builder"/> or <paramref name="modelBinderAssemblies"/> is <see langword="null"/>.
</exception>
<remarks>
<para>
The declarative mechanism of registering model binders with Autofac
is through use of this method and the
<see cref="T:Autofac.Integration.Mvc.ModelBinderTypeAttribute"/>.
If you would like more imperative control over registration for your
model binders, see the <see cref="M:Autofac.Integration.Mvc.RegistrationExtensions.AsModelBinderForTypes``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2},System.Type[])"/>
method.
</para>
<para>
The two mechanisms are mutually exclusive. If you register a model
binder using <see cref="M:Autofac.Integration.Mvc.RegistrationExtensions.AsModelBinderForTypes``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2},System.Type[])"/>
and register the same model binder with this method, the results
are not automatically merged together - standard dependency
registration/resolution rules will be used to manage the conflict.
</para>
<para>
This method only registers types that implement <see cref="T:System.Web.Mvc.IModelBinder"/>
and are marked with the <see cref="T:Autofac.Integration.Mvc.ModelBinderTypeAttribute"/>.
The model binder must have the attribute because the
<see cref="T:Autofac.Integration.Mvc.AutofacModelBinderProvider"/> uses
the associated metadata - from the attribute(s) - to resolve the
binder based on model type. If there aren't any attributes, there
won't be any metadata, so the model binder will be technically
registered but will never actually be resolved.
</para>
<para>
If your model is not marked with the attribute, or if you don't want
to use attributes, use the
<see cref="M:Autofac.Integration.Mvc.RegistrationExtensions.AsModelBinderForTypes``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2},System.Type[])"/>
extension instead.
</para>
</remarks>
</member>
<member name="M:Autofac.Integration.Mvc.RegistrationExtensions.RegisterFilterProvider(Autofac.ContainerBuilder)">
<summary>
Registers the <see cref="T:Autofac.Integration.Mvc.AutofacFilterProvider"/>.
</summary>
<param name="builder">The container builder.</param>
</member>
<member name="M:Autofac.Integration.Mvc.RegistrationExtensions.CacheInSession``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2})">
<summary>
Cache instances in the web session. This implies external ownership (disposal is not
available.) All dependencies must also have external ownership.
</summary>
<remarks>
It is strongly recommended that components cached per-session do not take dependencies on
other services.
</remarks>
<typeparam name="TLimit">Registration limit type.</typeparam>
<typeparam name="TSingleRegistrationStyle">Registration style.</typeparam>
<typeparam name="TActivatorData">Activator data type.</typeparam>
<param name="registration">The registration to configure.</param>
<returns>A registration builder allowing further configuration of the component.</returns>
</member>
<member name="M:Autofac.Integration.Mvc.RegistrationExtensions.AsActionFilterFor``1(Autofac.Builder.IRegistrationBuilder{System.Object,Autofac.Builder.IConcreteActivatorData,Autofac.Builder.SingleRegistrationStyle},System.Linq.Expressions.Expression{System.Action{``0}},System.Int32)">
<summary>
Sets the provided registration to act as an <see cref="T:System.Web.Mvc.IActionFilter"/> for the specified controller action.
</summary>
<typeparam name="TController">The type of the controller.</typeparam>
<param name="registration">The registration.</param>
<param name="actionSelector">The action selector.</param>
<param name="order">The order in which the filter is applied.</param>
<returns>A registration builder allowing further configuration of the component.</returns>
</member>
<member name="M:Autofac.Integration.Mvc.RegistrationExtensions.AsActionFilterFor``1(Autofac.Builder.IRegistrationBuilder{System.Object,Autofac.Builder.IConcreteActivatorData,Autofac.Builder.SingleRegistrationStyle},System.Int32)">
<summary>
Sets the provided registration to act as an <see cref="T:System.Web.Mvc.IActionFilter"/> for the specified controller.
</summary>
<typeparam name="TController">The type of the controller.</typeparam>
<param name="registration">The registration.</param>
<param name="order">The order in which the filter is applied.</param>
<returns>A registration builder allowing further configuration of the component.</returns>
</member>
<member name="M:Autofac.Integration.Mvc.RegistrationExtensions.AsAuthorizationFilterFor``1(Autofac.Builder.IRegistrationBuilder{System.Object,Autofac.Builder.IConcreteActivatorData,Autofac.Builder.SingleRegistrationStyle},System.Linq.Expressions.Expression{System.Action{``0}},System.Int32)">
<summary>
Sets the provided registration to act as an <see cref="T:System.Web.Mvc.IAuthorizationFilter"/> for the specified controller action.
</summary>
<typeparam name="TController">The type of the controller.</typeparam>
<param name="registration">The registration.</param>
<param name="actionSelector">The action selector.</param>
<param name="order">The order in which the filter is applied.</param>
<returns>A registration builder allowing further configuration of the component.</returns>
</member>
<member name="M:Autofac.Integration.Mvc.RegistrationExtensions.AsAuthorizationFilterFor``1(Autofac.Builder.IRegistrationBuilder{System.Object,Autofac.Builder.IConcreteActivatorData,Autofac.Builder.SingleRegistrationStyle},System.Int32)">
<summary>
Sets the provided registration to act as an <see cref="T:System.Web.Mvc.IAuthorizationFilter"/> for the specified controller.
</summary>
<typeparam name="TController">The type of the controller.</typeparam>
<param name="registration">The registration.</param>
<param name="order">The order in which the filter is applied.</param>
<returns>A registration builder allowing further configuration of the component.</returns>
</member>
<member name="M:Autofac.Integration.Mvc.RegistrationExtensions.AsExceptionFilterFor``1(Autofac.Builder.IRegistrationBuilder{System.Object,Autofac.Builder.IConcreteActivatorData,Autofac.Builder.SingleRegistrationStyle},System.Linq.Expressions.Expression{System.Action{``0}},System.Int32)">
<summary>
Sets the provided registration to act as an <see cref="T:System.Web.Mvc.IExceptionFilter"/> for the specified controller action.
</summary>
<typeparam name="TController">The type of the controller.</typeparam>
<param name="registration">The registration.</param>
<param name="actionSelector">The action selector.</param>
<param name="order">The order in which the filter is applied.</param>
<returns>A registration builder allowing further configuration of the component.</returns>
</member>
<member name="M:Autofac.Integration.Mvc.RegistrationExtensions.AsExceptionFilterFor``1(Autofac.Builder.IRegistrationBuilder{System.Object,Autofac.Builder.IConcreteActivatorData,Autofac.Builder.SingleRegistrationStyle},System.Int32)">
<summary>
Sets the provided registration to act as an <see cref="T:System.Web.Mvc.IExceptionFilter"/> for the specified controller.
</summary>
<typeparam name="TController">The type of the controller.</typeparam>
<param name="registration">The registration.</param>
<param name="order">The order in which the filter is applied.</param>
<returns>A registration builder allowing further configuration of the component.</returns>
</member>
<member name="M:Autofac.Integration.Mvc.RegistrationExtensions.AsResultFilterFor``1(Autofac.Builder.IRegistrationBuilder{System.Object,Autofac.Builder.IConcreteActivatorData,Autofac.Builder.SingleRegistrationStyle},System.Linq.Expressions.Expression{System.Action{``0}},System.Int32)">
<summary>
Sets the provided registration to act as an <see cref="T:System.Web.Mvc.IResultFilter"/> for the specified controller action.
</summary>
<typeparam name="TController">The type of the controller.</typeparam>
<param name="registration">The registration.</param>
<param name="actionSelector">The action selector.</param>
<param name="order">The order in which the filter is applied.</param>
<returns>A registration builder allowing further configuration of the component.</returns>
</member>
<member name="M:Autofac.Integration.Mvc.RegistrationExtensions.AsResultFilterFor``1(Autofac.Builder.IRegistrationBuilder{System.Object,Autofac.Builder.IConcreteActivatorData,Autofac.Builder.SingleRegistrationStyle},System.Int32)">
<summary>
Sets the provided registration to act as an <see cref="T:System.Web.Mvc.IResultFilter"/> for the specified controller.
</summary>
<typeparam name="TController">The type of the controller.</typeparam>
<param name="registration">The registration.</param>
<param name="order">The order in which the filter is applied.</param>
<returns>A registration builder allowing further configuration of the component.</returns>
</member>
<member name="T:Autofac.Integration.Mvc.RequestLifetimeHttpModule">
<summary>
An <see cref="T:System.Web.IHttpModule"/> and <see cref="T:Autofac.Integration.Mvc.ILifetimeScopeProvider"/> implementation
that creates a nested lifetime scope for each HTTP request.
</summary>
</member>
<member name="M:Autofac.Integration.Mvc.RequestLifetimeHttpModule.Init(System.Web.HttpApplication)">
<summary>
Initializes a module and prepares it to handle requests.
</summary>
<param name="context">An <see cref="T:System.Web.HttpApplication"/> that provides access to the
methods, properties, and events common to all application objects within an ASP.NET application</param>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="context"/> is <see langword="null"/>.
</exception>
</member>
<member name="M:Autofac.Integration.Mvc.RequestLifetimeHttpModule.Dispose">
<summary>
Disposes of the resources (other than memory) used by the module that implements <see cref="T:System.Web.IHttpModule"/>.
</summary>
</member>
<member name="P:Autofac.Integration.Mvc.RequestLifetimeHttpModule.LifetimeScopeProvider">
<summary>
Gets the lifetime scope provider that should be notified when a HTTP request ends.
</summary>
</member>
<member name="T:Autofac.Integration.Mvc.RequestLifetimeScopeProviderResources">
<summary>
A strongly-typed resource class, for looking up localized strings, etc.
</summary>
</member>
<member name="P:Autofac.Integration.Mvc.RequestLifetimeScopeProviderResources.ResourceManager">
<summary>
Returns the cached ResourceManager instance used by this class.
</summary>
</member>
<member name="P:Autofac.Integration.Mvc.RequestLifetimeScopeProviderResources.Culture">
<summary>
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
</summary>
</member>
<member name="P:Autofac.Integration.Mvc.RequestLifetimeScopeProviderResources.HttpContextNotAvailable">
<summary>
Looks up a localized string similar to The request lifetime scope cannot be created because the HttpContext is not available..
</summary>
</member>
<member name="P:Autofac.Integration.Mvc.RequestLifetimeScopeProviderResources.NullLifetimeScopeReturned">
<summary>
Looks up a localized string similar to The &apos;GetLifetimeScopeCore&apos; method implementation on &apos;{0}&apos; returned a null ILifetimeScope instance. When overridden this method must return a valid ILifetimeScope instance for the current HTTP request..
</summary>
</member>
<member name="T:Autofac.Integration.Mvc.ViewRegistrationSource">
<summary>
A registration source for building view registrations.
</summary>
<remarks>
Supports view registrations for <see cref="T:System.Web.Mvc.WebViewPage"/>, <see cref="T:System.Web.Mvc.ViewPage"/>,
<see cref="T:System.Web.Mvc.ViewMasterPage"/> and <see cref="T:System.Web.Mvc.ViewUserControl"/> derived types.
</remarks>
</member>
<member name="M:Autofac.Integration.Mvc.ViewRegistrationSource.RegistrationsFor(Autofac.Core.Service,System.Func{Autofac.Core.Service,System.Collections.Generic.IEnumerable{Autofac.Core.IComponentRegistration}})">
<summary>
Retrieve registrations for an unregistered service, to be used
by the container.
</summary>
<param name="service">The service that was requested.</param>
<param name="registrationAccessor">A function that will return existing registrations for a service.</param>
<returns>Registrations providing the service.</returns>
</member>
<member name="P:Autofac.Integration.Mvc.ViewRegistrationSource.IsAdapterForIndividualComponents">
<summary>
Gets whether the registrations provided by this source are 1:1 adapters on top
of other components (I.e. like Meta, Func or Owned.)
</summary>
</member>
</members>
</doc>

View File

@@ -1,73 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>Autofac.Integration.SignalR</name>
</assembly>
<members>
<member name="T:Autofac.Integration.SignalR.AutofacDependencyResolver">
<summary>
Autofac implementation of the <see cref="T:Microsoft.AspNet.SignalR.IDependencyResolver"/> interface.
</summary>
</member>
<member name="M:Autofac.Integration.SignalR.AutofacDependencyResolver.#ctor(Autofac.ILifetimeScope)">
<summary>
Initializes a new instance of the <see cref="T:Autofac.Integration.SignalR.AutofacDependencyResolver"/> class.
</summary>
<param name="lifetimeScope">The lifetime scope that services will be resolved from.</param>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="lifetimeScope"/> is <see langword="null"/>.
</exception>
</member>
<member name="M:Autofac.Integration.SignalR.AutofacDependencyResolver.GetService(System.Type)">
<summary>
Get a single instance of a service.
</summary>
<param name="serviceType">Type of the service.</param>
<returns>The single instance if resolved; otherwise, <c>null</c>.</returns>
</member>
<member name="M:Autofac.Integration.SignalR.AutofacDependencyResolver.GetServices(System.Type)">
<summary>
Gets all available instances of a services.
</summary>
<param name="serviceType">Type of the service.</param>
<returns>The list of instances if any were resolved; otherwise, an empty list.</returns>
</member>
<member name="M:Autofac.Integration.SignalR.AutofacDependencyResolver.RegistrationsFor(Autofac.Core.Service,System.Func{Autofac.Core.Service,System.Collections.Generic.IEnumerable{Autofac.Core.IComponentRegistration}})">
<summary>
Retrieve registrations for an unregistered service, to be used by the container.
</summary>
<param name="service">The service that was requested.</param>
<param name="registrationAccessor">A function that will return existing registrations for a service.</param>
<returns>Registrations providing the service.</returns>
</member>
<member name="P:Autofac.Integration.SignalR.AutofacDependencyResolver.Current">
<summary>
Gets the Autofac implementation of the dependency resolver.
</summary>
</member>
<member name="P:Autofac.Integration.SignalR.AutofacDependencyResolver.LifetimeScope">
<summary>
Gets the <see cref="T:Autofac.ILifetimeScope"/> that was provided to the constructor.
</summary>
</member>
<member name="P:Autofac.Integration.SignalR.AutofacDependencyResolver.IsAdapterForIndividualComponents">
<summary>
Gets whether the registrations provided by this source are 1:1 adapters on top
of other components (I.e. like Meta, Func or Owned.)
</summary>
</member>
<member name="T:Autofac.Integration.SignalR.RegistrationExtensions">
<summary>
Extends <see cref="T:Autofac.ContainerBuilder"/> with methods to support ASP.NET SignalR.
</summary>
</member>
<member name="M:Autofac.Integration.SignalR.RegistrationExtensions.RegisterHubs(Autofac.ContainerBuilder,System.Reflection.Assembly[])">
<summary>
Register types that implement <see cref="T:Microsoft.AspNet.SignalR.Hubs.IHub"/> in the provided assemblies.
</summary>
<param name="builder">The container builder.</param>
<param name="controllerAssemblies">Assemblies to scan for controllers.</param>
<returns>Registration builder allowing the controller components to be customised.</returns>
</member>
</members>
</doc>

View File

@@ -1,612 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>Autofac.Integration.Wcf</name>
</assembly>
<members>
<member name="T:Autofac.Integration.Wcf.AutofacDependencyInjectionServiceBehavior">
<summary>
Sets the instance provider to an AutofacInstanceProvider.
</summary>
</member>
<member name="M:Autofac.Integration.Wcf.AutofacDependencyInjectionServiceBehavior.#ctor(Autofac.ILifetimeScope,Autofac.Integration.Wcf.ServiceImplementationData)">
<summary>
Initializes a new instance of the <see cref="T:Autofac.Integration.Wcf.AutofacDependencyInjectionServiceBehavior"/> class.
</summary>
<param name="rootLifetimeScope">
The container from which service implementations should be resolved.
</param>
<param name="serviceData">
Data about which service type should be hosted and how to resolve
the type to use for the service implementation.
</param>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="rootLifetimeScope"/> or <paramref name="serviceData"/> is <see langword="null"/>.
</exception>
</member>
<member name="M:Autofac.Integration.Wcf.AutofacDependencyInjectionServiceBehavior.Validate(System.ServiceModel.Description.ServiceDescription,System.ServiceModel.ServiceHostBase)">
<summary>
Provides the ability to inspect the service host and the service description to confirm that the service can run successfully.
</summary>
<param name="serviceDescription">The service description.</param>
<param name="serviceHostBase">The service host that is currently being constructed.</param>
</member>
<member name="M:Autofac.Integration.Wcf.AutofacDependencyInjectionServiceBehavior.AddBindingParameters(System.ServiceModel.Description.ServiceDescription,System.ServiceModel.ServiceHostBase,System.Collections.ObjectModel.Collection{System.ServiceModel.Description.ServiceEndpoint},System.ServiceModel.Channels.BindingParameterCollection)">
<summary>
Provides the ability to pass custom data to binding elements to support the contract implementation.
</summary>
<param name="serviceDescription">The service description of the service.</param>
<param name="serviceHostBase">The host of the service.</param>
<param name="endpoints">The service endpoints.</param>
<param name="bindingParameters">Custom objects to which binding elements have access.</param>
</member>
<member name="M:Autofac.Integration.Wcf.AutofacDependencyInjectionServiceBehavior.ApplyDispatchBehavior(System.ServiceModel.Description.ServiceDescription,System.ServiceModel.ServiceHostBase)">
<summary>
Provides the ability to change run-time property values or insert custom extension objects such as error handlers, message or parameter interceptors, security extensions, and other custom extension objects.
</summary>
<param name="serviceDescription">The service description.</param>
<param name="serviceHostBase">The host that is currently being built.</param>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="serviceDescription"/> or
<paramref name="serviceHostBase"/> is <see langword="null"/>.
</exception>
</member>
<member name="T:Autofac.Integration.Wcf.AutofacInstanceContext">
<summary>
Manages instance lifecycle using an Autofac inner container.
</summary>
<remarks>
<para>
This instance context extension creates a child lifetime scope based
on a scope provided and resolves service instances from that child scope.
</para>
<para>
When this instance context is disposed, the lifetime scope it creates
(which contains the resolved service instance) is also disposed.
</para>
</remarks>
</member>
<member name="M:Autofac.Integration.Wcf.AutofacInstanceContext.#ctor(Autofac.ILifetimeScope)">
<summary>
Initializes a new instance of the <see cref="T:Autofac.Integration.Wcf.AutofacInstanceContext"/> class.
</summary>
<param name="container">
The outer container/lifetime scope from which the instance scope
will be created.
</param>
</member>
<member name="M:Autofac.Integration.Wcf.AutofacInstanceContext.Finalize">
<summary>
Finalizes an instance of the <see cref="T:Autofac.Integration.Wcf.AutofacInstanceContext"/> class.
</summary>
</member>
<member name="M:Autofac.Integration.Wcf.AutofacInstanceContext.Attach(System.ServiceModel.InstanceContext)">
<summary>
Enables an extension object to find out when it has been aggregated.
Called when the extension is added to the
<see cref="P:System.ServiceModel.IExtensibleObject`1.Extensions"/> property.
</summary>
<param name="owner">The extensible object that aggregates this extension.</param>
</member>
<member name="M:Autofac.Integration.Wcf.AutofacInstanceContext.Detach(System.ServiceModel.InstanceContext)">
<summary>
Enables an object to find out when it is no longer aggregated.
Called when an extension is removed from the
<see cref="P:System.ServiceModel.IExtensibleObject`1.Extensions"/> property.
</summary>
<param name="owner">The extensible object that aggregates this extension.</param>
</member>
<member name="M:Autofac.Integration.Wcf.AutofacInstanceContext.Dispose">
<summary>
Performs application-defined tasks associated with freeing, releasing, or
resetting unmanaged resources.
</summary>
</member>
<member name="M:Autofac.Integration.Wcf.AutofacInstanceContext.Dispose(System.Boolean)">
<summary>
Handles disposal of managed and unmanaged resources.
</summary>
<param name="disposing">
<see langword="true"/> to dispose of managed resources (during a manual execution
of <see cref="M:Autofac.Integration.Wcf.AutofacInstanceContext.Dispose"/>); or
<see langword="false"/> if this is getting run as part of finalization where
managed resources may have already been cleaned up.
</param>
</member>
<member name="M:Autofac.Integration.Wcf.AutofacInstanceContext.ResolveComponent(Autofac.Core.IComponentRegistration,System.Collections.Generic.IEnumerable{Autofac.Core.Parameter})">
<summary>
Resolve an instance of the provided registration within the context.
</summary>
<param name="registration">The registration.</param>
<param name="parameters">Parameters for the instance.</param>
<returns>
The component instance.
</returns>
<exception cref="T:Autofac.Core.Registration.ComponentNotRegisteredException"/>
<exception cref="T:Autofac.Core.DependencyResolutionException"/>
</member>
<member name="M:Autofac.Integration.Wcf.AutofacInstanceContext.Resolve(Autofac.Integration.Wcf.ServiceImplementationData)">
<summary>
Retrieve a service instance from the context.
</summary>
<param name="serviceData">
Data object containing information about how to resolve the service
implementation instance.
</param>
<returns>The service instance.</returns>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="serviceData"/> is <see langword="null"/>.
</exception>
</member>
<member name="P:Autofac.Integration.Wcf.AutofacInstanceContext.Current">
<summary>
Gets the current <see cref="T:Autofac.Integration.Wcf.AutofacInstanceContext"/>
for the operation.
</summary>
<value>
The <see cref="T:Autofac.Integration.Wcf.AutofacInstanceContext"/> associated
with the current <see cref="T:System.ServiceModel.OperationContext"/> if
one exists; or <see langword="null"/> if there isn't one.
</value>
<remarks>
<para>
In a singleton service, there won't be a current <see cref="T:Autofac.Integration.Wcf.AutofacInstanceContext"/>
because singleton services are resolved at the time the service host begins
rather than on each operation.
</para>
</remarks>
</member>
<member name="P:Autofac.Integration.Wcf.AutofacInstanceContext.OperationLifetime">
<summary>
Gets the request/operation lifetime.
</summary>
<value>
An <see cref="T:Autofac.ILifetimeScope"/> that this instance
context will use to resolve service instances.
</value>
</member>
<member name="P:Autofac.Integration.Wcf.AutofacInstanceContext.ComponentRegistry">
<summary>
Associates services with the components that provide them.
</summary>
</member>
<member name="T:Autofac.Integration.Wcf.AutofacInstanceProvider">
<summary>
Retrieves service instances from an Autofac container.
</summary>
</member>
<member name="M:Autofac.Integration.Wcf.AutofacInstanceProvider.#ctor(Autofac.ILifetimeScope,Autofac.Integration.Wcf.ServiceImplementationData)">
<summary>
Initializes a new instance of the <see cref="T:Autofac.Integration.Wcf.AutofacInstanceProvider"/> class.
</summary>
<param name="rootLifetimeScope">
The lifetime scope from which service instances should be resolved.
</param>
<param name="serviceData">
Data object containing information about how to resolve the service
implementation instance.
</param>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="rootLifetimeScope"/> or <paramref name="serviceData"/> is <see langword="null"/>.
</exception>
</member>
<member name="M:Autofac.Integration.Wcf.AutofacInstanceProvider.GetInstance(System.ServiceModel.InstanceContext)">
<summary>
Returns a service object given the specified <see cref="T:System.ServiceModel.InstanceContext"/> object.
</summary>
<param name="instanceContext">The current <see cref="T:System.ServiceModel.InstanceContext"/> object.</param>
<returns>A user-defined service object.</returns>
</member>
<member name="M:Autofac.Integration.Wcf.AutofacInstanceProvider.GetInstance(System.ServiceModel.InstanceContext,System.ServiceModel.Channels.Message)">
<summary>
Returns a service object given the specified <see cref="T:System.ServiceModel.InstanceContext"/> object.
</summary>
<param name="instanceContext">The current <see cref="T:System.ServiceModel.InstanceContext"/> object.</param>
<param name="message">The message that triggered the creation of a service object.</param>
<returns>The service object.</returns>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="instanceContext"/> is <see langword="null"/>.
</exception>
</member>
<member name="M:Autofac.Integration.Wcf.AutofacInstanceProvider.ReleaseInstance(System.ServiceModel.InstanceContext,System.Object)">
<summary>
Called when an <see cref="T:System.ServiceModel.InstanceContext"/> object recycles a service object.
</summary>
<param name="instanceContext">The service's instance context.</param>
<param name="instance">The service object to be recycled.</param>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="instanceContext"/> is <see langword="null"/>.
</exception>
</member>
<member name="T:Autofac.Integration.Wcf.AutofacServiceHostFactory">
<summary>
Creates <see cref="T:System.ServiceModel.ServiceHost"/> instances for WCF.
</summary>
</member>
<member name="T:Autofac.Integration.Wcf.AutofacHostFactory">
<summary>
Creates service host instances for WCF.
</summary>
<remarks>
<para>
The Autofac service host factory allows you to change
the strategy by which service implementations are resolved. You do this by
setting the <see cref="P:Autofac.Integration.Wcf.AutofacHostFactory.ServiceImplementationDataProvider"/>
with a strategy implementation.
</para>
<para>
If <see cref="P:Autofac.Integration.Wcf.AutofacHostFactory.ServiceImplementationDataProvider"/>
is <see langword="null"/> a new instance of <see cref="T:Autofac.Integration.Wcf.DefaultServiceImplementationDataProvider"/>
will be used.
</para>
<para>
You may configure additional behaviors or other aspects of generated
service instances by setting the <see cref="P:Autofac.Integration.Wcf.AutofacHostFactory.HostConfigurationAction"/>.
If this value is not <see langword="null"/>, generated host instances
will be run through that action.
</para>
</remarks>
</member>
<member name="M:Autofac.Integration.Wcf.AutofacHostFactory.CreateServiceHost(System.String,System.Uri[])">
<summary>
Creates a <see cref="T:System.ServiceModel.ServiceHost"/> with specific base addresses and initializes it with specified data.
</summary>
<param name="constructorString">The initialization data passed to the <see cref="T:System.ServiceModel.ServiceHostBase"/> instance being constructed by the factory.</param>
<param name="baseAddresses">The <see cref="T:System.Array"/> of type <see cref="T:System.Uri"/> that contains the base addresses for the service hosted.</param>
<returns>
A <see cref="T:System.ServiceModel.ServiceHost"/> with specific base addresses.
</returns>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="constructorString"/> or <paramref name="baseAddresses"/> is <see langword="null"/>.
</exception>
<exception cref="T:System.ArgumentException">
Thrown if <paramref name="constructorString"/> is empty.
</exception>
<exception cref="T:System.InvalidOperationException">
Thrown if the <see cref="P:Autofac.Integration.Wcf.AutofacHostFactory.Container"/>
is <see langword="null"/>.
</exception>
<remarks>
<para>
If <see cref="P:Autofac.Integration.Wcf.AutofacHostFactory.HostConfigurationAction"/>
is not <see langword="null"/>, the new service host instance is run
through the configuration action prior to being returned. This allows
you to programmatically configure behaviors or other aspects of the
host.
</para>
</remarks>
</member>
<member name="M:Autofac.Integration.Wcf.AutofacHostFactory.CreateSingletonServiceHost(System.Object,System.Uri[])">
<summary>
Creates a <see cref="T:System.ServiceModel.ServiceHost"/> for a specified type of service with a specific base address.
</summary>
<param name="singletonInstance">Specifies the singleton service instance to host.</param>
<param name="baseAddresses">The <see cref="T:System.Array"/> of type <see cref="T:System.Uri"/> that contains the base addresses for the service hosted.</param>
<returns>
A <see cref="T:System.ServiceModel.ServiceHost"/> for the singleton service instance specified with a specific base address.
</returns>
</member>
<member name="P:Autofac.Integration.Wcf.AutofacHostFactory.Container">
<summary>
Gets or sets the container or lifetime scope from which service instances will be retrieved.
</summary>
<value>
An <see cref="T:Autofac.ILifetimeScope"/> that will be used to resolve service
implementation instances.
</value>
</member>
<member name="P:Autofac.Integration.Wcf.AutofacHostFactory.HostConfigurationAction">
<summary>
Gets or sets an action that can be used to programmatically configure
service host instances this factory generates.
</summary>
<value>
An <see cref="T:System.Action`1"/> that can be used to configure service host
instances that this factory creates. This action can be used to add
behaviors or otherwise modify the host before it gets returned by
the factory.
</value>
</member>
<member name="P:Autofac.Integration.Wcf.AutofacHostFactory.ServiceImplementationDataProvider">
<summary>
Gets or sets the service implementation data strategy.
</summary>
<value>
An <see cref="T:Autofac.Integration.Wcf.IServiceImplementationDataProvider"/>
that will be used to determine the proper service implementation given
a service constructor string.
</value>
</member>
<member name="M:Autofac.Integration.Wcf.AutofacServiceHostFactory.CreateServiceHost(System.Type,System.Uri[])">
<summary>
Creates a <see cref="T:System.ServiceModel.ServiceHost"/> for a specified type of service with a specific base address.
</summary>
<param name="serviceType">Specifies the type of service to host.</param>
<param name="baseAddresses">The <see cref="T:System.Array"/> of type <see cref="T:System.Uri"/> that contains the base addresses for the service hosted.</param>
<returns>
A <see cref="T:System.ServiceModel.ServiceHost"/> for the type of service specified with a specific base address.
</returns>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="serviceType"/> or <paramref name="baseAddresses"/> is <see langword="null"/>.
</exception>
</member>
<member name="M:Autofac.Integration.Wcf.AutofacServiceHostFactory.CreateSingletonServiceHost(System.Object,System.Uri[])">
<summary>
Creates a <see cref="T:System.ServiceModel.ServiceHost"/> for a specified type of service with a specific base address.
</summary>
<param name="singletonInstance">Specifies the singleton service instance to host.</param>
<param name="baseAddresses">The <see cref="T:System.Array"/> of type <see cref="T:System.Uri"/> that contains the base addresses for the service hosted.</param>
<returns>
A <see cref="T:System.ServiceModel.ServiceHost"/> for the singleton service instance specified with a specific base address.
</returns>
</member>
<member name="T:Autofac.Integration.Wcf.AutofacHostFactoryResources">
<summary>
A strongly-typed resource class, for looking up localized strings, etc.
</summary>
</member>
<member name="P:Autofac.Integration.Wcf.AutofacHostFactoryResources.ResourceManager">
<summary>
Returns the cached ResourceManager instance used by this class.
</summary>
</member>
<member name="P:Autofac.Integration.Wcf.AutofacHostFactoryResources.Culture">
<summary>
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
</summary>
</member>
<member name="P:Autofac.Integration.Wcf.AutofacHostFactoryResources.ContainerIsNull">
<summary>
Looks up a localized string similar to The AutofacServiceHost.Container static property must be set before services can be instantiated..
</summary>
</member>
<member name="P:Autofac.Integration.Wcf.AutofacHostFactoryResources.ImplementationTypeUnknown">
<summary>
Looks up a localized string similar to Service &apos;{0}&apos; is registered in such a way that its implementation type could not be derived. This is required for WCF integration. Consider using a reflection-based registration or an expression-based registration where the return value is a class type. The current default registration is &apos;{1}&apos;..
</summary>
</member>
<member name="P:Autofac.Integration.Wcf.AutofacHostFactoryResources.NoServiceTypeToHost">
<summary>
Looks up a localized string similar to No type to host was provided by the &apos;{0}&apos; for the service &apos;{1}&apos;..
</summary>
</member>
<member name="P:Autofac.Integration.Wcf.AutofacHostFactoryResources.ServiceMustBeSingleInstance">
<summary>
Looks up a localized string similar to The WCF service &apos;{0}&apos; has an InstanceContextMode of Single and is not registered as SingleInstance with the Autofac container..
</summary>
</member>
<member name="P:Autofac.Integration.Wcf.AutofacHostFactoryResources.ServiceMustNotBeSingleInstance">
<summary>
Looks up a localized string similar to The WCF service &apos;{0}&apos; does not have an InstanceContextMode of Single and is registered as SingleInstance with the Autofac container..
</summary>
</member>
<member name="P:Autofac.Integration.Wcf.AutofacHostFactoryResources.ServiceNotRegistered">
<summary>
Looks up a localized string similar to The service &apos;{0}&apos; configured for WCF is not registered with the Autofac container..
</summary>
</member>
<member name="T:Autofac.Integration.Wcf.AutofacWebServiceHostFactory">
<summary>
Creates ServiceHost instances for WCF.
</summary>
</member>
<member name="M:Autofac.Integration.Wcf.AutofacWebServiceHostFactory.CreateServiceHost(System.Type,System.Uri[])">
<summary>
Creates a <see cref="T:System.ServiceModel.ServiceHost"/> for a specified type of service with a specific base address.
</summary>
<param name="serviceType">Specifies the type of service to host.</param>
<param name="baseAddresses">The <see cref="T:System.Array"/> of type <see cref="T:System.Uri"/> that contains the base addresses for the service hosted.</param>
<returns>
A <see cref="T:System.ServiceModel.Web.WebServiceHost"/> for the type of service specified with a specific base address.
</returns>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="serviceType"/> or <paramref name="baseAddresses"/> is <see langword="null"/>.
</exception>
</member>
<member name="M:Autofac.Integration.Wcf.AutofacWebServiceHostFactory.CreateSingletonServiceHost(System.Object,System.Uri[])">
<summary>
Creates a <see cref="T:System.ServiceModel.ServiceHost"/> for a specified type of service with a specific base address.
</summary>
<param name="singletonInstance">Specifies the singleton service instance to host.</param>
<param name="baseAddresses">The <see cref="T:System.Array"/> of type <see cref="T:System.Uri"/> that contains the base addresses for the service hosted.</param>
<returns>
A <see cref="T:System.ServiceModel.Web.WebServiceHost"/> for the singleton service instance specified with a specific base address.
</returns>
</member>
<member name="T:Autofac.Integration.Wcf.DefaultServiceImplementationDataProvider">
<summary>
Simple resolver for WCF service implementations. Allows for single-tenant
handling of named or typed services.
</summary>
</member>
<member name="T:Autofac.Integration.Wcf.IServiceImplementationDataProvider">
<summary>
Defines a strategy for resolving which service type should be
used for hosting vs. which type is the actual service implementation.
</summary>
</member>
<member name="M:Autofac.Integration.Wcf.IServiceImplementationDataProvider.GetServiceImplementationData(System.String)">
<summary>
Gets data about a service implementation.
</summary>
<param name="value">
The constructor string passed in to the service host factory
that is used to determine which type to host/use as a service
implementation.
</param>
<returns>
A <see cref="T:Autofac.Integration.Wcf.ServiceImplementationData"/>
object containing information about which type to use in
the service host and how to resolve the implementation.
</returns>
</member>
<member name="M:Autofac.Integration.Wcf.DefaultServiceImplementationDataProvider.GetServiceImplementationData(System.String)">
<summary>
Gets data about a service implementation.
</summary>
<param name="value">
The constructor string passed in to the service host factory
that is used to determine which type to host/use as a service
implementation.
</param>
<returns>
A <see cref="T:Autofac.Integration.Wcf.ServiceImplementationData"/>
object containing information about which type to use in
the service host and which type to use to resolve the implementation.
</returns>
<remarks>
<para>
This resolver takes the constructor string stored in the .svc file
and resolves a matching keyed or typed service from the root
application container. That resolved type is used both for the
service host as well as the implementation type.
</para>
</remarks>
<exception cref="T:System.InvalidOperationException">
Thrown if the <see cref="P:Autofac.Integration.Wcf.AutofacHostFactory.Container"/>
is <see langword="null"/>;
if the service indicated by <paramref name="value"/>
is not registered with the <see cref="P:Autofac.Integration.Wcf.AutofacHostFactory.Container"/>;
or if the service is a singleton that isn't registered as a singleton.
</exception>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="value"/> is <see langword="null"/>.
</exception>
<exception cref="T:System.ArgumentException">
Thrown if <paramref name="value"/> is empty.
</exception>
</member>
<member name="T:Autofac.Integration.Wcf.Properties.Resources">
<summary>
A strongly-typed resource class, for looking up localized strings, etc.
</summary>
</member>
<member name="P:Autofac.Integration.Wcf.Properties.Resources.ResourceManager">
<summary>
Returns the cached ResourceManager instance used by this class.
</summary>
</member>
<member name="P:Autofac.Integration.Wcf.Properties.Resources.Culture">
<summary>
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
</summary>
</member>
<member name="P:Autofac.Integration.Wcf.Properties.Resources.ArgumentException_StringEmpty">
<summary>
Looks up a localized string similar to &apos;{0}&apos; may not be empty..
</summary>
</member>
<member name="T:Autofac.Integration.Wcf.RegistrationExtensions">
<summary>
Extend the registration syntax with WCF-specific helpers.
</summary>
</member>
<member name="M:Autofac.Integration.Wcf.RegistrationExtensions.UseWcfSafeRelease``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2})">
<summary>
Dispose the channel instance in such a way that exceptions
</summary>
<typeparam name="TLimit">Registration limit type.</typeparam>
<typeparam name="TActivatorData">Activator data type.</typeparam>
<typeparam name="TRegistrationStyle">Registration style.</typeparam>
<param name="registration">Registration to set release action for.</param>
<returns>Registration builder allowing the registration to be configured.</returns>
<remarks>This will eat exceptions generated in the closing of the channel.</remarks>
</member>
<member name="T:Autofac.Integration.Wcf.ServiceHostExtensions">
<summary>
Adds dependency injection related methods to service hosts.
</summary>
</member>
<member name="M:Autofac.Integration.Wcf.ServiceHostExtensions.AddDependencyInjectionBehavior``1(System.ServiceModel.ServiceHostBase,Autofac.ILifetimeScope)">
<summary>
Adds the custom service behavior required for dependency injection.
</summary>
<typeparam name="T">The web service contract type.</typeparam>
<param name="serviceHost">The service host.</param>
<param name="container">The container.</param>
</member>
<member name="M:Autofac.Integration.Wcf.ServiceHostExtensions.AddDependencyInjectionBehavior(System.ServiceModel.ServiceHostBase,System.Type,Autofac.ILifetimeScope)">
<summary>
Adds the custom service behavior required for dependency injection.
</summary>
<param name="serviceHost">The service host.</param>
<param name="contractType">The web service contract type.</param>
<param name="container">The container.</param>
</member>
<member name="T:Autofac.Integration.Wcf.ServiceHostExtensionsResources">
<summary>
A strongly-typed resource class, for looking up localized strings, etc.
</summary>
</member>
<member name="P:Autofac.Integration.Wcf.ServiceHostExtensionsResources.ResourceManager">
<summary>
Returns the cached ResourceManager instance used by this class.
</summary>
</member>
<member name="P:Autofac.Integration.Wcf.ServiceHostExtensionsResources.Culture">
<summary>
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
</summary>
</member>
<member name="P:Autofac.Integration.Wcf.ServiceHostExtensionsResources.ContractTypeNotRegistered">
<summary>
Looks up a localized string similar to The service contract type &apos;{0}&apos; has not been registered in the container..
</summary>
</member>
<member name="T:Autofac.Integration.Wcf.ServiceImplementationData">
<summary>
Contains data about a WCF service implementation.
</summary>
<remarks>
<para>
This data transfer object class is used in conjunction with
<see cref="T:Autofac.Integration.Wcf.IServiceImplementationDataProvider"/>
implementations for resolving service implementation instance information.
</para>
</remarks>
<seealso cref="T:Autofac.Integration.Wcf.IServiceImplementationDataProvider"/>
</member>
<member name="P:Autofac.Integration.Wcf.ServiceImplementationData.ConstructorString">
<summary>
Gets or sets the string used to generate the data.
</summary>
<value>
A <see cref="T:System.String"/> used to generate this service
implementation data.
</value>
</member>
<member name="P:Autofac.Integration.Wcf.ServiceImplementationData.HostAsSingleton">
<summary>
Gets or sets an indicator of whether the service should be hosted as a singleton.
</summary>
<value>
<see langword="true" /> if this service should be a singleton; <see langword="false" /> if not.
</value>
</member>
<member name="P:Autofac.Integration.Wcf.ServiceImplementationData.ServiceTypeToHost">
<summary>
Gets or sets the concrete type to host.
</summary>
<value>
A <see cref="T:System.Type"/> that indicates the type to pass to the
service host when it is initially created. This type must be a concrete
class and not an interface.
</value>
</member>
<member name="P:Autofac.Integration.Wcf.ServiceImplementationData.ImplementationResolver">
<summary>
Gets or sets a mechanism that allows the <see cref="T:Autofac.Integration.Wcf.AutofacInstanceContext"/>
to get the actual implementation for a service.
</summary>
<value>
An <see cref="T:System.Func`2"/> that takes in a lifetime scope returns
an <see cref="T:System.Object"/> that is the implementation type for the
given service. This is the object that the service host will use
and should be assignable from the <see cref="P:Autofac.Integration.Wcf.ServiceImplementationData.ServiceTypeToHost"/>.
</value>
</member>
</members>
</doc>

View File

@@ -442,7 +442,7 @@
Extends registration syntax for common web scenarios.
</summary>
</member>
<member name="M:Autofac.Integration.Web.RegistrationExtensions.InstancePerHttpRequest``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2})">
<member name="M:Autofac.Integration.Web.RegistrationExtensions.InstancePerHttpRequest``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2},System.Object[])">
<summary>
Share one instance of the component within the context of a single
HTTP request.
@@ -451,6 +451,7 @@
<typeparam name="TStyle">Registration style.</typeparam>
<typeparam name="TActivatorData">Activator data type.</typeparam>
<param name="registration">The registration to configure.</param>
<param name="lifetimeScopeTags">Additional tags applied for matching lifetime scopes.</param>
<returns>A registration builder allowing further configuration of the component.</returns>
</member>
<member name="M:Autofac.Integration.Web.RegistrationExtensions.CacheInSession``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2})">

View File

@@ -1,542 +0,0 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>Autofac.Integration.WebApi</name>
</assembly>
<members>
<member name="T:Autofac.Integration.WebApi.ActionFilterWrapper">
<summary>
Resolves a filter for the specified metadata for each controller request.
</summary>
</member>
<member name="T:Autofac.Integration.WebApi.IAutofacActionFilter">
<summary>
An action filter that will be created for each controller request.
</summary>
</member>
<member name="M:Autofac.Integration.WebApi.IAutofacActionFilter.OnActionExecuting(System.Web.Http.Controllers.HttpActionContext)">
<summary>
Occurs before the action method is invoked.
</summary>
<param name="actionContext">The context for the action.</param>
</member>
<member name="M:Autofac.Integration.WebApi.IAutofacActionFilter.OnActionExecuted(System.Web.Http.Filters.HttpActionExecutedContext)">
<summary>
Occurs after the action method is invoked.
</summary>
<param name="actionExecutedContext">The context for the action.</param>
</member>
<member name="M:Autofac.Integration.WebApi.ActionFilterWrapper.#ctor(Autofac.Integration.WebApi.FilterMetadata)">
<summary>
Initializes a new instance of the <see cref="T:Autofac.Integration.WebApi.ActionFilterWrapper"/> class.
</summary>
<param name="filterMetadata">The filter metadata.</param>
</member>
<member name="M:Autofac.Integration.WebApi.ActionFilterWrapper.OnActionExecuting(System.Web.Http.Controllers.HttpActionContext)">
<summary>
Occurs before the action method is invoked.
</summary>
<param name="actionContext">The context for the action.</param>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="actionContext"/> is <see langword="null"/>.
</exception>
</member>
<member name="M:Autofac.Integration.WebApi.ActionFilterWrapper.OnActionExecuted(System.Web.Http.Filters.HttpActionExecutedContext)">
<summary>
Occurs after the action method is invoked.
</summary>
<param name="actionExecutedContext">The context for the action.</param>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="actionExecutedContext"/> is <see langword="null"/>.
</exception>
</member>
<member name="T:Autofac.Integration.WebApi.AuthorizationFilterWrapper">
<summary>
Resolves a filter for the specified metadata for each controller request.
</summary>
</member>
<member name="T:Autofac.Integration.WebApi.IAutofacAuthorizationFilter">
<summary>
An authorization filter that will be created for each controller request.
</summary>
</member>
<member name="M:Autofac.Integration.WebApi.IAutofacAuthorizationFilter.OnAuthorization(System.Web.Http.Controllers.HttpActionContext)">
<summary>
Called when a process requests authorization.
</summary>
<param name="actionContext">The context for the action.</param>
</member>
<member name="M:Autofac.Integration.WebApi.AuthorizationFilterWrapper.#ctor(Autofac.Integration.WebApi.FilterMetadata)">
<summary>
Initializes a new instance of the <see cref="T:Autofac.Integration.WebApi.AuthorizationFilterWrapper"/> class.
</summary>
<param name="filterMetadata">The filter metadata.</param>
</member>
<member name="M:Autofac.Integration.WebApi.AuthorizationFilterWrapper.OnAuthorization(System.Web.Http.Controllers.HttpActionContext)">
<summary>
Called when a process requests authorization.
</summary>
<param name="actionContext">The context for the action.</param>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="actionContext"/> is <see langword="null"/>.
</exception>
</member>
<member name="T:Autofac.Integration.WebApi.AutofacWebApiDependencyResolver">
<summary>
Autofac implementation of the <see cref="T:System.Web.Http.Dependencies.IDependencyResolver"/> interface.
</summary>
</member>
<member name="F:Autofac.Integration.WebApi.AutofacWebApiDependencyResolver.ApiRequestTag">
<summary>
Tag used to identify registrations that are scoped to the API request level.
</summary>
</member>
<member name="M:Autofac.Integration.WebApi.AutofacWebApiDependencyResolver.#ctor(Autofac.ILifetimeScope)">
<summary>
Initializes a new instance of the <see cref="T:Autofac.Integration.WebApi.AutofacWebApiDependencyResolver"/> class.
</summary>
<param name="container">The container that nested lifetime scopes will be create from.</param>
</member>
<member name="M:Autofac.Integration.WebApi.AutofacWebApiDependencyResolver.Finalize">
<summary>
Finalizes an instance of the <see cref="T:Autofac.Integration.WebApi.AutofacWebApiDependencyResolver"/> class.
</summary>
</member>
<member name="M:Autofac.Integration.WebApi.AutofacWebApiDependencyResolver.GetService(System.Type)">
<summary>
Try to get a service of the given type.
</summary>
<param name="serviceType">Type of service to request.</param>
<returns>An instance of the service, or null if the service is not found.</returns>
</member>
<member name="M:Autofac.Integration.WebApi.AutofacWebApiDependencyResolver.GetServices(System.Type)">
<summary>
Try to get a list of services of the given type.
</summary>
<param name="serviceType">ControllerType of services to request.</param>
<returns>An enumeration (possibly empty) of the service.</returns>
</member>
<member name="M:Autofac.Integration.WebApi.AutofacWebApiDependencyResolver.BeginScope">
<summary>
Starts a resolution scope. Objects which are resolved in the given scope will belong to
that scope, and when the scope is disposed, those objects are returned to the container.
</summary>
<returns>
The dependency scope.
</returns>
</member>
<member name="M:Autofac.Integration.WebApi.AutofacWebApiDependencyResolver.Dispose">
<summary>
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
</summary>
</member>
<member name="P:Autofac.Integration.WebApi.AutofacWebApiDependencyResolver.Container">
<summary>
Gets the root container provided to the dependency resolver.
</summary>
</member>
<member name="T:Autofac.Integration.WebApi.AutofacWebApiDependencyScope">
<summary>
Autofac implementation of the <see cref="T:System.Web.Http.Dependencies.IDependencyScope"/> interface.
</summary>
</member>
<member name="M:Autofac.Integration.WebApi.AutofacWebApiDependencyScope.#ctor(Autofac.ILifetimeScope)">
<summary>
Initializes a new instance of the <see cref="T:Autofac.Integration.WebApi.AutofacWebApiDependencyScope"/> class.
</summary>
<param name="lifetimeScope">The lifetime scope to resolve services from.</param>
</member>
<member name="M:Autofac.Integration.WebApi.AutofacWebApiDependencyScope.Finalize">
<summary>
Finalizes an instance of the <see cref="T:Autofac.Integration.WebApi.AutofacWebApiDependencyScope"/> class.
</summary>
</member>
<member name="M:Autofac.Integration.WebApi.AutofacWebApiDependencyScope.GetService(System.Type)">
<summary>
Try to get a service of the given type.
</summary>
<param name="serviceType">ControllerType of service to request.</param>
<returns>An instance of the service, or null if the service is not found.</returns>
</member>
<member name="M:Autofac.Integration.WebApi.AutofacWebApiDependencyScope.GetServices(System.Type)">
<summary>
Try to get a list of services of the given type.
</summary>
<param name="serviceType">ControllerType of services to request.</param>
<returns>An enumeration (possibly empty) of the service.</returns>
</member>
<member name="M:Autofac.Integration.WebApi.AutofacWebApiDependencyScope.Dispose">
<summary>
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
</summary>
</member>
<member name="P:Autofac.Integration.WebApi.AutofacWebApiDependencyScope.LifetimeScope">
<summary>
Gets the lifetime scope for the current dependency scope.
</summary>
</member>
<member name="T:Autofac.Integration.WebApi.AutofacWebApiFilterProvider">
<summary>
A filter provider for performing property injection on filter attributes.
</summary>
</member>
<member name="M:Autofac.Integration.WebApi.AutofacWebApiFilterProvider.#ctor(Autofac.ILifetimeScope)">
<summary>
Initializes a new instance of the <see cref="T:Autofac.Integration.WebApi.AutofacWebApiFilterProvider"/> class.
</summary>
</member>
<member name="M:Autofac.Integration.WebApi.AutofacWebApiFilterProvider.GetFilters(System.Web.Http.HttpConfiguration,System.Web.Http.Controllers.HttpActionDescriptor)">
<summary>
Returns the collection of filters associated with <paramref name="actionDescriptor"/>.
</summary>
<param name="configuration">The configuration.</param>
<param name="actionDescriptor">The action descriptor.</param>
<returns>A collection of filters with instances property injected.</returns>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="configuration"/> is <see langword="null"/>.
</exception>
</member>
<member name="T:Autofac.Integration.WebApi.AutofacWebApiModelBinderProvider">
<summary>
Autofac implementation of the <see cref="T:System.Web.Http.ModelBinding.ModelBinderProvider"/> class.
</summary>
</member>
<member name="F:Autofac.Integration.WebApi.AutofacWebApiModelBinderProvider.MetadataKey">
<summary>
Metadata key for the supported model types.
</summary>
</member>
<member name="M:Autofac.Integration.WebApi.AutofacWebApiModelBinderProvider.GetBinder(System.Web.Http.HttpConfiguration,System.Type)">
<summary>
Find a binder for the given type.
</summary>
<param name="configuration">A configuration object.</param>
<param name="modelType">The type of the model to bind against.</param>
<returns>A binder, which can attempt to bind this type. Or null if the binder knows statically that it will never be able to bind the type.</returns>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="configuration"/> is <see langword="null"/>.
</exception>
</member>
<member name="T:Autofac.Integration.WebApi.ControllerTypeKey">
<summary>
A service key used to register services per controller type.
</summary>
</member>
<member name="M:Autofac.Integration.WebApi.ControllerTypeKey.#ctor(System.Type)">
<summary>
Initializes a new instance of the <see cref="T:Autofac.Integration.WebApi.ControllerTypeKey"/> class.
</summary>
<param name="controllerType">Type of the controller.</param>
</member>
<member name="M:Autofac.Integration.WebApi.ControllerTypeKey.Equals(Autofac.Integration.WebApi.ControllerTypeKey)">
<summary>
Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Object" />.
</summary>
<param name="other"></param>
<returns>
true if the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Object" />; otherwise, false.
</returns>
</member>
<member name="M:Autofac.Integration.WebApi.ControllerTypeKey.Equals(System.Object)">
<summary>
Determines whether the specified <see cref="T:System.Object"/> is equal to the current <see cref="T:System.Object"/>.
</summary>
<param name="obj">The <see cref="T:System.Object"/> to compare with the current <see cref="T:System.Object"/>.</param>
<returns>
true if the specified <see cref="T:System.Object"/> is equal to the current <see cref="T:System.Object"/>; otherwise, false.
</returns>
<exception cref="T:System.NullReferenceException">The <paramref name="obj"/> parameter is null.</exception>
</member>
<member name="M:Autofac.Integration.WebApi.ControllerTypeKey.GetHashCode">
<summary>
Serves as a hash function for a particular type.
</summary>
<returns>
A hash code for the current <see cref="T:System.Object"/>.
</returns>
</member>
<member name="P:Autofac.Integration.WebApi.ControllerTypeKey.ControllerType">
<summary>
Gets the type of the controller.
</summary>
</member>
<member name="T:Autofac.Integration.WebApi.DependencyResolverExtensions">
<summary>
Extension methods to the <see cref="T:System.Web.Http.Dependencies.IDependencyResolver"/> interface.
</summary>
</member>
<member name="M:Autofac.Integration.WebApi.DependencyResolverExtensions.GetRootLifetimeScope(System.Web.Http.Dependencies.IDependencyResolver)">
<summary>
Gets the root lifetime scope from the Autofac dependency resolver.
</summary>
</member>
<member name="M:Autofac.Integration.WebApi.DependencyResolverExtensions.GetRequestLifetimeScope(System.Web.Http.Dependencies.IDependencyScope)">
<summary>
Gets the request lifetime scope from the Autofac dependency scope.
</summary>
</member>
<member name="T:Autofac.Integration.WebApi.ExceptionFilterWrapper">
<summary>
Resolves a filter for the specified metadata for each controller request.
</summary>
</member>
<member name="T:Autofac.Integration.WebApi.IAutofacExceptionFilter">
<summary>
An exception filter that will be created for each controller request.
</summary>
</member>
<member name="M:Autofac.Integration.WebApi.IAutofacExceptionFilter.OnException(System.Web.Http.Filters.HttpActionExecutedContext)">
<summary>
Called when an exception is thrown.
</summary>
<param name="actionExecutedContext">The context for the action.</param>
</member>
<member name="M:Autofac.Integration.WebApi.ExceptionFilterWrapper.#ctor(Autofac.Integration.WebApi.FilterMetadata)">
<summary>
Initializes a new instance of the <see cref="T:Autofac.Integration.WebApi.ExceptionFilterWrapper"/> class.
</summary>
<param name="filterMetadata">The filter metadata.</param>
</member>
<member name="M:Autofac.Integration.WebApi.ExceptionFilterWrapper.OnException(System.Web.Http.Filters.HttpActionExecutedContext)">
<summary>
Called when an exception is thrown.
</summary>
<param name="actionExecutedContext">The context for the action.</param>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="actionExecutedContext"/> is <see langword="null"/>.
</exception>
</member>
<member name="T:Autofac.Integration.WebApi.FilterMetadata">
<summary>
Metadata interface for filter registrations.
</summary>
</member>
<member name="P:Autofac.Integration.WebApi.FilterMetadata.ControllerType">
<summary>
Gets the type of the controller.
</summary>
</member>
<member name="P:Autofac.Integration.WebApi.FilterMetadata.FilterScope">
<summary>
Gets the filter scope.
</summary>
</member>
<member name="P:Autofac.Integration.WebApi.FilterMetadata.MethodInfo">
<summary>
Gets the method info.
</summary>
</member>
<member name="T:Autofac.Integration.WebApi.AutofacControllerConfigurationAttribute">
<summary>
Configures the controller descriptor with per-controller services from the container.
</summary>
</member>
<member name="M:Autofac.Integration.WebApi.AutofacControllerConfigurationAttribute.Initialize(System.Web.Http.Controllers.HttpControllerSettings,System.Web.Http.Controllers.HttpControllerDescriptor)">
<summary>
Callback invoked to set per-controller overrides for this controllerDescriptor.
</summary>
<param name="controllerSettings">The controller settings to initialize.</param>
<param name="controllerDescriptor">The controller descriptor. Note that the
<see cref="T:System.Web.Http.Controllers.HttpControllerDescriptor"/> can be
associated with the derived controller type given that <see cref="T:System.Web.Http.Controllers.IControllerConfiguration"/>
is inherited.</param>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="controllerSettings"/> or <paramref name="controllerDescriptor"/> is <see langword="null"/>.
</exception>
</member>
<member name="T:Autofac.Integration.WebApi.AutofacControllerConfigurationAttributeResources">
<summary>
A strongly-typed resource class, for looking up localized strings, etc.
</summary>
</member>
<member name="P:Autofac.Integration.WebApi.AutofacControllerConfigurationAttributeResources.ResourceManager">
<summary>
Returns the cached ResourceManager instance used by this class.
</summary>
</member>
<member name="P:Autofac.Integration.WebApi.AutofacControllerConfigurationAttributeResources.Culture">
<summary>
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
</summary>
</member>
<member name="P:Autofac.Integration.WebApi.AutofacControllerConfigurationAttributeResources.DependencyResolverMissing">
<summary>
Looks up a localized string similar to The &apos;{0}&apos; must be configured as the dependency resolver for Web API before the &apos;{1}&apos; can resolve services from the container for a controller type..
</summary>
</member>
<member name="T:Autofac.Integration.WebApi.RegistrationExtensions">
<summary>
Adds registration syntax to the <see cref="T:Autofac.ContainerBuilder"/> type.
</summary>
</member>
<member name="M:Autofac.Integration.WebApi.RegistrationExtensions.RegisterApiControllers(Autofac.ContainerBuilder,System.Reflection.Assembly[])">
<summary>
Register types that implement <see cref="T:System.Web.Http.Controllers.IHttpController"/> in the provided assemblies.
</summary>
<param name="builder">The container builder.</param>
<param name="controllerAssemblies">Assemblies to scan for controllers.</param>
<returns>Registration builder allowing the controller components to be customised.</returns>
</member>
<member name="M:Autofac.Integration.WebApi.RegistrationExtensions.InstancePerApiRequest``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2})">
<summary>
Share one instance of the component within the context of a
single <see cref="T:System.Web.Http.ApiController"/> request.
</summary>
<typeparam name="TLimit">Registration limit type.</typeparam>
<typeparam name="TStyle">Registration style.</typeparam>
<typeparam name="TActivatorData">Activator data type.</typeparam>
<param name="registration">The registration to configure.</param>
<returns>A registration builder allowing further configuration of the component.</returns>
</member>
<member name="M:Autofac.Integration.WebApi.RegistrationExtensions.InstancePerApiControllerType``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2},System.Type)">
<summary>
Share one instance of the component within the context of a controller type.
</summary>
<typeparam name="TLimit">Registration limit type.</typeparam>
<typeparam name="TStyle">Registration style.</typeparam>
<typeparam name="TActivatorData">Activator data type.</typeparam>
<param name="registration">The registration to configure.</param>
<param name="controllerType">The controller type.</param>
<returns>A registration builder allowing further configuration of the component.</returns>
</member>
<member name="M:Autofac.Integration.WebApi.RegistrationExtensions.InstancePerApiControllerType``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2},System.Type,System.Boolean)">
<summary>
Share one instance of the component within the context of a controller type.
</summary>
<typeparam name="TLimit">Registration limit type.</typeparam>
<typeparam name="TStyle">Registration style.</typeparam>
<typeparam name="TActivatorData">Activator data type.</typeparam>
<param name="registration">The registration to configure.</param>
<param name="controllerType">The controller type.</param>
<param name="clearExistingServices">Clear the existing list of controller level services before adding.</param>
<returns>A registration builder allowing further configuration of the component.</returns>
</member>
<member name="M:Autofac.Integration.WebApi.RegistrationExtensions.RegisterWebApiModelBinderProvider(Autofac.ContainerBuilder)">
<summary>
Registers the <see cref="T:Autofac.Integration.WebApi.AutofacWebApiModelBinderProvider"/>.
</summary>
<param name="builder">The container builder.</param>
</member>
<member name="M:Autofac.Integration.WebApi.RegistrationExtensions.RegisterWebApiModelBinders(Autofac.ContainerBuilder,System.Reflection.Assembly[])">
<summary>
Register types that implement <see cref="T:System.Web.Http.ModelBinding.IModelBinder"/> in the provided assemblies.
</summary>
<param name="builder">The container builder.</param>
<param name="modelBinderAssemblies">Assemblies to scan for model binders.</param>
<returns>A registration builder allowing further configuration of the component.</returns>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="builder"/> or <paramref name="modelBinderAssemblies"/> is <see langword="null"/>.
</exception>
</member>
<member name="M:Autofac.Integration.WebApi.RegistrationExtensions.AsModelBinderForTypes``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2},System.Type[])">
<summary>
Sets a provided registration to act as an <see cref="T:System.Web.Http.ModelBinding.IModelBinder"/> for the specified list of types.
</summary>
<param name="registration">The registration for the type or object instance that will act as the model binder.</param>
<param name="types">The list of model <see cref="T:System.Type"/> for which the <paramref name="registration"/> should be a model binder.</param>
<typeparam name="TLimit">Registration limit type.</typeparam>
<typeparam name="TActivatorData">Activator data type.</typeparam>
<typeparam name="TRegistrationStyle">Registration style.</typeparam>
<returns>An Autofac registration that can be modified as needed.</returns>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="registration"/> or <paramref name="types"/> is <see langword="null"/>.
</exception>
<exception cref="T:System.ArgumentException">
Thrown if <paramref name="types"/> is empty or contains all <see langword="null"/> values.
</exception>
</member>
<member name="M:Autofac.Integration.WebApi.RegistrationExtensions.RegisterWebApiFilterProvider(Autofac.ContainerBuilder,System.Web.Http.HttpConfiguration)">
<summary>
Registers the <see cref="T:Autofac.Integration.WebApi.AutofacWebApiFilterProvider"/>.
</summary>
<param name="configuration">Configuration of HttpServer instances.</param>
<param name="builder">The container builder.</param>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="builder"/> or <paramref name="configuration"/> is <see langword="null"/>.
</exception>
</member>
<member name="M:Autofac.Integration.WebApi.RegistrationExtensions.AsWebApiActionFilterFor``1(Autofac.Builder.IRegistrationBuilder{System.Object,Autofac.Builder.IConcreteActivatorData,Autofac.Builder.SingleRegistrationStyle},System.Linq.Expressions.Expression{System.Action{``0}})">
<summary>
Sets the provided registration to act as an <see cref="T:Autofac.Integration.WebApi.IAutofacActionFilter"/> for the specified controller action.
</summary>
<typeparam name="TController">The type of the controller.</typeparam>
<param name="registration">The registration.</param>
<param name="actionSelector">The action selector.</param>
<returns>A registration builder allowing further configuration of the component.</returns>
</member>
<member name="M:Autofac.Integration.WebApi.RegistrationExtensions.AsWebApiActionFilterFor``1(Autofac.Builder.IRegistrationBuilder{System.Object,Autofac.Builder.IConcreteActivatorData,Autofac.Builder.SingleRegistrationStyle})">
<summary>
Sets the provided registration to act as an <see cref="T:Autofac.Integration.WebApi.IAutofacActionFilter"/> for the specified controller.
</summary>
<typeparam name="TController">The type of the controller.</typeparam>
<param name="registration">The registration.</param>
<returns>A registration builder allowing further configuration of the component.</returns>
</member>
<member name="M:Autofac.Integration.WebApi.RegistrationExtensions.AsWebApiAuthorizationFilterFor``1(Autofac.Builder.IRegistrationBuilder{System.Object,Autofac.Builder.IConcreteActivatorData,Autofac.Builder.SingleRegistrationStyle},System.Linq.Expressions.Expression{System.Action{``0}})">
<summary>
Sets the provided registration to act as an <see cref="T:Autofac.Integration.WebApi.IAutofacAuthorizationFilter"/> for the specified controller action.
</summary>
<typeparam name="TController">The type of the controller.</typeparam>
<param name="registration">The registration.</param>
<param name="actionSelector">The action selector.</param>
<returns>A registration builder allowing further configuration of the component.</returns>
</member>
<member name="M:Autofac.Integration.WebApi.RegistrationExtensions.AsWebApiAuthorizationFilterFor``1(Autofac.Builder.IRegistrationBuilder{System.Object,Autofac.Builder.IConcreteActivatorData,Autofac.Builder.SingleRegistrationStyle})">
<summary>
Sets the provided registration to act as an <see cref="T:Autofac.Integration.WebApi.IAutofacAuthorizationFilter"/> for the specified controller.
</summary>
<typeparam name="TController">The type of the controller.</typeparam>
<param name="registration">The registration.</param>
<returns>A registration builder allowing further configuration of the component.</returns>
</member>
<member name="M:Autofac.Integration.WebApi.RegistrationExtensions.AsWebApiExceptionFilterFor``1(Autofac.Builder.IRegistrationBuilder{System.Object,Autofac.Builder.IConcreteActivatorData,Autofac.Builder.SingleRegistrationStyle},System.Linq.Expressions.Expression{System.Action{``0}})">
<summary>
Sets the provided registration to act as an <see cref="T:Autofac.Integration.WebApi.IAutofacExceptionFilter"/> for the specified controller action.
</summary>
<typeparam name="TController">The type of the controller.</typeparam>
<param name="registration">The registration.</param>
<param name="actionSelector">The action selector.</param>
<returns>A registration builder allowing further configuration of the component.</returns>
</member>
<member name="M:Autofac.Integration.WebApi.RegistrationExtensions.AsWebApiExceptionFilterFor``1(Autofac.Builder.IRegistrationBuilder{System.Object,Autofac.Builder.IConcreteActivatorData,Autofac.Builder.SingleRegistrationStyle})">
<summary>
Sets the provided registration to act as an <see cref="T:Autofac.Integration.WebApi.IAutofacExceptionFilter"/> for the specified controller.
</summary>
<typeparam name="TController">The type of the controller.</typeparam>
<param name="registration">The registration.</param>
<returns>A registration builder allowing further configuration of the component.</returns>
</member>
<member name="T:Autofac.Integration.WebApi.RegistrationExtensionsResources">
<summary>
A strongly-typed resource class, for looking up localized strings, etc.
</summary>
</member>
<member name="P:Autofac.Integration.WebApi.RegistrationExtensionsResources.ResourceManager">
<summary>
Returns the cached ResourceManager instance used by this class.
</summary>
</member>
<member name="P:Autofac.Integration.WebApi.RegistrationExtensionsResources.Culture">
<summary>
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
</summary>
</member>
<member name="P:Autofac.Integration.WebApi.RegistrationExtensionsResources.InvalidActionExpress">
<summary>
Looks up a localized string similar to The action method Expression is invalid. It should consist only of a Method call to a controller action method..
</summary>
</member>
<member name="P:Autofac.Integration.WebApi.RegistrationExtensionsResources.ListMustNotBeEmptyOrContainNulls">
<summary>
Looks up a localized string similar to Type list may not be empty or contain all null values..
</summary>
</member>
<member name="P:Autofac.Integration.WebApi.RegistrationExtensionsResources.MustBeAssignableToFilterType">
<summary>
Looks up a localized string similar to The type &apos;{0}&apos; must be assignable to &apos;{1}&apos;..
</summary>
</member>
</members>
</doc>

View File

@@ -158,6 +158,57 @@
Looks up a localized string similar to {0} ---&gt; {1} (See inner exception for details.).
</summary>
</member>
<member name="T:Autofac.Core.Registration.IModuleRegistrar">
<summary>
Interface providing fluent syntax for chaining module registrations.
</summary>
</member>
<member name="M:Autofac.Core.Registration.IModuleRegistrar.RegisterModule(Autofac.Core.IModule)">
<summary>
Add a module to the container.
</summary>
<param name="module">The module to add.</param>
<returns>
The <see cref="T:Autofac.Core.Registration.IModuleRegistrar"/> to allow
additional chained module registrations.
</returns>
</member>
<member name="T:Autofac.Core.Registration.ModuleRegistrar">
<summary>
Basic implementation of the <see cref="T:Autofac.Core.Registration.IModuleRegistrar"/>
interface allowing registration of modules into a <see cref="T:Autofac.ContainerBuilder"/>
in a fluent format.
</summary>
</member>
<member name="F:Autofac.Core.Registration.ModuleRegistrar._builder">
<summary>
The <see cref="T:Autofac.ContainerBuilder"/> into which registrations will be made.
</summary>
</member>
<member name="M:Autofac.Core.Registration.ModuleRegistrar.#ctor(Autofac.ContainerBuilder)">
<summary>
Initializes a new instance of the <see cref="T:Autofac.Core.Registration.ModuleRegistrar"/> class.
</summary>
<param name="builder">
The <see cref="T:Autofac.ContainerBuilder"/> into which registrations will be made.
</param>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="builder"/> is <see langword="null"/>.
</exception>
</member>
<member name="M:Autofac.Core.Registration.ModuleRegistrar.RegisterModule(Autofac.Core.IModule)">
<summary>
Add a module to the container.
</summary>
<param name="module">The module to add.</param>
<returns>
The <see cref="T:Autofac.Core.Registration.IModuleRegistrar"/> to allow
additional chained module registrations.
</returns>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="module"/> is <see langword="null"/>.
</exception>
</member>
<member name="T:Autofac.Features.LazyDependencies.LazyWithMetadataRegistrationSource">
<summary>
Support the <c>System.Lazy&lt;T, TMetadata&gt;</c>
@@ -311,6 +362,156 @@
<param name="targetType">Type to search for constructors.</param>
<returns>Suitable constructors.</returns>
</member>
<member name="T:Autofac.Features.ResolveAnything.AnyConcreteTypeNotAlreadyRegisteredSourceExtensions">
<summary>
Extension methods for configuring the <see cref="T:Autofac.Features.ResolveAnything.AnyConcreteTypeNotAlreadyRegisteredSource"/>.
</summary>
</member>
<member name="M:Autofac.Features.ResolveAnything.AnyConcreteTypeNotAlreadyRegisteredSourceExtensions.WithRegistrationsAs(Autofac.Features.ResolveAnything.AnyConcreteTypeNotAlreadyRegisteredSource,System.Action{Autofac.Builder.IRegistrationBuilder{System.Object,Autofac.Builder.ConcreteReflectionActivatorData,Autofac.Builder.SingleRegistrationStyle}})">
<summary>
Fluent method for setting the registration configuration on <see cref="T:Autofac.Features.ResolveAnything.AnyConcreteTypeNotAlreadyRegisteredSource"/>.
</summary>
<param name="source">The registration source to configure.</param>
<param name="configurationAction">A configuration action that will run on any registration provided by the source.</param>
<returns>
The <paramref name="source"/> with the registration configuration set.
</returns>
</member>
<member name="T:Autofac.ModuleRegistrationExtensions">
<summary>
Extension methods for registering <see cref="T:Autofac.Core.IModule"/> instances with a container.
</summary>
</member>
<member name="M:Autofac.ModuleRegistrationExtensions.RegisterAssemblyModules(Autofac.ContainerBuilder,System.Reflection.Assembly[])">
<summary>
Registers modules found in an assembly.
</summary>
<param name="builder">The builder to register the modules with.</param>
<param name="assemblies">The assemblies from which to register modules.</param>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="builder"/> is <see langword="null"/>.
</exception>
<returns>
The <see cref="T:Autofac.Core.Registration.IModuleRegistrar"/> to allow
additional chained module registrations.
</returns>
</member>
<member name="M:Autofac.ModuleRegistrationExtensions.RegisterAssemblyModules(Autofac.Core.Registration.IModuleRegistrar,System.Reflection.Assembly[])">
<summary>
Registers modules found in an assembly.
</summary>
<param name="registrar">The module registrar that will make the registrations into the container.</param>
<param name="assemblies">The assemblies from which to register modules.</param>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="registrar"/> is <see langword="null"/>.
</exception>
<returns>
The <see cref="T:Autofac.Core.Registration.IModuleRegistrar"/> to allow
additional chained module registrations.
</returns>
</member>
<member name="M:Autofac.ModuleRegistrationExtensions.RegisterAssemblyModules``1(Autofac.ContainerBuilder,System.Reflection.Assembly[])">
<summary>
Registers modules found in an assembly.
</summary>
<param name="builder">The builder to register the modules with.</param>
<param name="assemblies">The assemblies from which to register modules.</param>
<typeparam name="TModule">The type of the module to add.</typeparam>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="builder"/> is <see langword="null"/>.
</exception>
<returns>
The <see cref="T:Autofac.Core.Registration.IModuleRegistrar"/> to allow
additional chained module registrations.
</returns>
</member>
<member name="M:Autofac.ModuleRegistrationExtensions.RegisterAssemblyModules``1(Autofac.Core.Registration.IModuleRegistrar,System.Reflection.Assembly[])">
<summary>
Registers modules found in an assembly.
</summary>
<param name="registrar">The module registrar that will make the registrations into the container.</param>
<param name="assemblies">The assemblies from which to register modules.</param>
<typeparam name="TModule">The type of the module to add.</typeparam>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="registrar"/> is <see langword="null"/>.
</exception>
<returns>
The <see cref="T:Autofac.Core.Registration.IModuleRegistrar"/> to allow
additional chained module registrations.
</returns>
</member>
<member name="M:Autofac.ModuleRegistrationExtensions.RegisterAssemblyModules(Autofac.ContainerBuilder,System.Type,System.Reflection.Assembly[])">
<summary>
Registers modules found in an assembly.
</summary>
<param name="builder">The builder to register the modules with.</param>
<param name="moduleType">The <see cref="T:System.Type"/> of the module to add.</param>
<param name="assemblies">The assemblies from which to register modules.</param>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="builder"/> or <paramref name="moduleType"/> is <see langword="null"/>.
</exception>
<returns>
The <see cref="T:Autofac.Core.Registration.IModuleRegistrar"/> to allow
additional chained module registrations.
</returns>
</member>
<member name="M:Autofac.ModuleRegistrationExtensions.RegisterAssemblyModules(Autofac.Core.Registration.IModuleRegistrar,System.Type,System.Reflection.Assembly[])">
<summary>
Registers modules found in an assembly.
</summary>
<param name="registrar">The module registrar that will make the registrations into the container.</param>
<param name="moduleType">The <see cref="T:System.Type"/> of the module to add.</param>
<param name="assemblies">The assemblies from which to register modules.</param>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="registrar"/> or <paramref name="moduleType"/> is <see langword="null"/>.
</exception>
<returns>
The <see cref="T:Autofac.Core.Registration.IModuleRegistrar"/> to allow
additional chained module registrations.
</returns>
</member>
<member name="M:Autofac.ModuleRegistrationExtensions.RegisterModule``1(Autofac.ContainerBuilder)">
<summary>
Add a module to the container.
</summary>
<param name="builder">The builder to register the module with.</param>
<typeparam name="TModule">The module to add.</typeparam>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="builder"/> is <see langword="null"/>.
</exception>
<returns>
The <see cref="T:Autofac.Core.Registration.IModuleRegistrar"/> to allow
additional chained module registrations.
</returns>
</member>
<member name="M:Autofac.ModuleRegistrationExtensions.RegisterModule``1(Autofac.Core.Registration.IModuleRegistrar)">
<summary>
Add a module to the container.
</summary>
<param name="registrar">The module registrar that will make the registration into the container.</param>
<typeparam name="TModule">The module to add.</typeparam>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="registrar"/> is <see langword="null"/>.
</exception>
<returns>
The <see cref="T:Autofac.Core.Registration.IModuleRegistrar"/> to allow
additional chained module registrations.
</returns>
</member>
<member name="M:Autofac.ModuleRegistrationExtensions.RegisterModule(Autofac.ContainerBuilder,Autofac.Core.IModule)">
<summary>
Add a module to the container.
</summary>
<param name="builder">The builder to register the module with.</param>
<param name="module">The module to add.</param>
<exception cref="T:System.ArgumentNullException">
Thrown if <paramref name="builder"/> or <paramref name="module"/> is <see langword="null"/>.
</exception>
<returns>
The <see cref="T:Autofac.Core.Registration.IModuleRegistrar"/> to allow
additional chained module registrations.
</returns>
</member>
<member name="T:Autofac.ModuleResources">
<summary>
A strongly-typed resource class, for looking up localized strings, etc.
@@ -2502,6 +2703,15 @@
of other components (I.e. like Meta, Func or Owned.)
</summary>
</member>
<member name="P:Autofac.Features.ResolveAnything.AnyConcreteTypeNotAlreadyRegisteredSource.RegistrationConfiguration">
<summary>
Gets or sets an expression used to configure generated registrations.
</summary>
<value>
A <see cref="T:System.Action`1"/> that can be used to modify the behavior
of registrations that are generated by this source.
</value>
</member>
<member name="T:Autofac.Features.ResolveAnything.AnyConcreteTypeNotAlreadyRegisteredSourceResources">
<summary>
A strongly-typed resource class, for looking up localized strings, etc.
@@ -4094,6 +4304,35 @@
</summary>
<value></value>
</member>
<member name="T:Autofac.Features.Collections.CollectionRegistrationSource">
<summary>
Registration source providing implicit collection/list/enumerable support.
</summary>
<remarks>
<para>
This registration source provides enumerable support to allow resolving
the set of all registered services of a given type.
</para>
<para>
What may not be immediately apparent is that it also means any time there
are no items of a particular type registered, it will always return an
empty set rather than <see langword="null" /> or throwing an exception.
This is by design.
</para>
<para>
Consider the [possibly majority] use case where you're resolving a set
of message handlers or event handlers from the container. If there aren't
any handlers, you want an empty set - not <see langword="null" /> or
an exception. It's valid to have no handlers registered.
</para>
<para>
This implicit support means other areas (like MVC support or manual
property injection) must take care to only request enumerable values they
expect to get something back for. In other words, "Don't ask the container
for something you don't expect to resolve."
</para>
</remarks>
</member>
<member name="M:Autofac.Features.Collections.CollectionRegistrationSource.RegistrationsFor(Autofac.Core.Service,System.Func{Autofac.Core.Service,System.Collections.Generic.IEnumerable{Autofac.Core.IComponentRegistration}})">
<summary>
Retrieve registrations for an unregistered service, to be used
@@ -4618,43 +4857,6 @@
Adds registration syntax to the <see cref="T:Autofac.ContainerBuilder"/> type.
</summary>
</member>
<member name="M:Autofac.RegistrationExtensions.RegisterModule(Autofac.ContainerBuilder,Autofac.Core.IModule)">
<summary>
Add a module to the container.
</summary>
<param name="builder">The builder to register the module with.</param>
<param name="module">The module to add.</param>
</member>
<member name="M:Autofac.RegistrationExtensions.RegisterModule``1(Autofac.ContainerBuilder)">
<summary>
Add a module to the container.
</summary>
<param name="builder">The builder to register the module with.</param>
<typeparam name="TModule">The module to add.</typeparam>
</member>
<member name="M:Autofac.RegistrationExtensions.RegisterAssemblyModules(Autofac.ContainerBuilder,System.Reflection.Assembly[])">
<summary>
Registers modules found in an assembly.
</summary>
<param name="builder">Container builder.</param>
<param name="assemblies">The assemblies from which to register modules.</param>
</member>
<member name="M:Autofac.RegistrationExtensions.RegisterAssemblyModules``1(Autofac.ContainerBuilder,System.Reflection.Assembly[])">
<summary>
Registers modules found in an assembly.
</summary>
<param name="builder">Container builder.</param>
<param name="assemblies">The assemblies from which to register modules.</param>
<typeparam name="TModule">The type of the module to add.</typeparam>
</member>
<member name="M:Autofac.RegistrationExtensions.RegisterAssemblyModules(Autofac.ContainerBuilder,System.Type,System.Reflection.Assembly[])">
<summary>
Registers modules found in an assembly.
</summary>
<param name="builder">Container builder.</param>
<param name="moduleType">The <see cref="T:System.Type"/> of the module to add.</param>
<param name="assemblies">The assemblies from which to register modules.</param>
</member>
<member name="M:Autofac.RegistrationExtensions.RegisterComponent(Autofac.ContainerBuilder,Autofac.Core.IComponentRegistration)">
<summary>
Add a component to the container.
@@ -5448,6 +5650,18 @@
</remarks>
<param name="container">An existing container to make the registrations in.</param>
</member>
<member name="M:Autofac.ContainerBuilder.Update(Autofac.IContainer,Autofac.Builder.ContainerBuildOptions)">
<summary>
Configure an existing container with the component registrations
that have been made and allows additional build options to be specified.
</summary>
<remarks>
Update can only be called once per <see cref="T:Autofac.ContainerBuilder"/>
- this prevents ownership issues for provided instances.
</remarks>
<param name="container">An existing container to make the registrations in.</param>
<param name="options">Options that influence the way the container is updated.</param>
</member>
<member name="M:Autofac.ContainerBuilder.Update(Autofac.Core.IComponentRegistry)">
<summary>
Configure an existing registry with the component registrations
@@ -5808,6 +6022,47 @@
<exception cref="T:Autofac.Core.Registration.ComponentNotRegisteredException"/>
<exception cref="T:Autofac.Core.DependencyResolutionException"/>
</member>
<member name="M:Autofac.ResolutionExtensions.ResolveKeyed(Autofac.IComponentContext,System.Object,System.Type)">
<summary>
Retrieve a service from the context.
</summary>
<param name="context">The context from which to resolve the service.</param>
<param name="serviceKey">Key of the service.</param>
<param name="serviceType">Type of the service.</param>
<returns>
The component instance that provides the service.
</returns>
<exception cref="T:Autofac.Core.Registration.ComponentNotRegisteredException"/>
<exception cref="T:Autofac.Core.DependencyResolutionException"/>
</member>
<member name="M:Autofac.ResolutionExtensions.ResolveKeyed(Autofac.IComponentContext,System.Object,System.Type,System.Collections.Generic.IEnumerable{Autofac.Core.Parameter})">
<summary>
Retrieve a service from the context.
</summary>
<param name="context">The context from which to resolve the service.</param>
<param name="serviceKey">Key of the service.</param>
<param name="serviceType">Type of the service.</param>
<param name="parameters">The parameters.</param>
<returns>
The component instance that provides the service.
</returns>
<exception cref="T:Autofac.Core.Registration.ComponentNotRegisteredException"/>
<exception cref="T:Autofac.Core.DependencyResolutionException"/>
</member>
<member name="M:Autofac.ResolutionExtensions.ResolveKeyed(Autofac.IComponentContext,System.Object,System.Type,Autofac.Core.Parameter[])">
<summary>
Retrieve a service from the context.
</summary>
<param name="context">The context from which to resolve the service.</param>
<param name="serviceKey">Key of the service.</param>
<param name="serviceType">Type of the service.</param>
<param name="parameters">The parameters.</param>
<returns>
The component instance that provides the service.
</returns>
<exception cref="T:Autofac.Core.Registration.ComponentNotRegisteredException"/>
<exception cref="T:Autofac.Core.DependencyResolutionException"/>
</member>
<member name="M:Autofac.ResolutionExtensions.ResolveService(Autofac.IComponentContext,Autofac.Core.Service)">
<summary>
Retrieve a service from the context.
@@ -6604,6 +6859,11 @@
resource lookups using this strongly typed resource class.
</summary>
</member>
<member name="P:Autofac.Features.GeneratedFactories.GeneratedFactoryRegistrationSourceResources.DuplicateTypesInTypeMappedFuncParameterList">
<summary>
Looks up a localized string similar to Unable to generate a function to return type &apos;{0}&apos; with input parameter types [{1}]. The input parameter type list has duplicate types. Try registering a custom delegate type instead of using a generic Func relationship..
</summary>
</member>
<member name="P:Autofac.Features.GeneratedFactories.GeneratedFactoryRegistrationSourceResources.GeneratedFactoryRegistrationSourceDescription">
<summary>
Looks up a localized string similar to Delegate Support (Func&lt;T&gt;and Custom Delegates).

Binary file not shown.

Binary file not shown.

View File

@@ -20,14 +20,21 @@ using Orchard.DisplayManagement;
using Orchard.DisplayManagement.Descriptors;
using Orchard.DisplayManagement.Implementation;
using Orchard.Environment;
using Orchard.Environment.Configuration;
using Orchard.Environment.Descriptor;
using Orchard.Environment.Descriptor.Models;
using Orchard.Environment.Extensions;
using Orchard.Environment.ShellBuilders;
using Orchard.Environment.State;
using Orchard.Security;
using Orchard.Security.Providers;
using Orchard.Services;
using Orchard.Tests.Modules.ImportExport.Services;
using Orchard.Tests.Modules.Users;
using Orchard.Tests.Stubs;
using Orchard.UI.Notify;
using Orchard.UI.PageClass;
using Orchard.Tests.Utility;
namespace Orchard.Tests.Modules.Comments.Services {
[TestFixture]
@@ -58,11 +65,14 @@ namespace Orchard.Tests.Modules.Comments.Services {
builder.RegisterType<StubExtensionManager>().As<IExtensionManager>();
builder.RegisterType<DefaultEncryptionService>().As<IEncryptionService>();
builder.RegisterInstance(ShellSettingsUtility.CreateEncryptionEnabled());
builder.RegisterType<ProcessingEngineStub>().As<IProcessingEngine>();
builder.RegisterType<StubShellDescriptorManager>().As<IShellDescriptorManager>();
builder.RegisterType<StubClock>().As<IClock>();
builder.RegisterInstance(new Mock<IPageClassBuilder>().Object);
builder.RegisterType<DefaultContentDisplay>().As<IContentDisplay>();
builder.RegisterGeneric(typeof(Repository<>)).As(typeof(IRepository<>));
}
public override void Init() {
@@ -187,4 +197,18 @@ namespace Orchard.Tests.Modules.Comments.Services {
public class CommentedItemDriver : ContentPartDriver<CommentedItem> {
public static readonly string ContentTypeName = "commentedItem";
}
public class ProcessingEngineStub : IProcessingEngine {
public string AddTask(ShellSettings shellSettings, ShellDescriptor shellDescriptor, string messageName, Dictionary<string, object> parameters) {
return "";
}
public bool AreTasksPending() {
return false;
}
public void ExecuteNextTask() {
}
}
}

View File

@@ -1,40 +1,48 @@
using Autofac;
using System.Collections.Generic;
using Autofac;
using Moq;
using NUnit.Framework;
using Orchard.ContentManagement.Records;
using Orchard.DisplayManagement;
using Orchard.Email.Services;
using Orchard.Messaging.Events;
using Orchard.Messaging.Services;
using Orchard.Tests.Messaging;
using Orchard.Tests.Modules.Stubs;
using Orchard.Tests.Utility;
namespace Orchard.Tests.Modules.Email {
[TestFixture]
public class EmailChannelTests {
private MessagingChannelStub _channel;
private IMessageManager _messageManager;
private IMessageService _messageService;
private SmtpChannelStub _smtpChannel;
[SetUp]
public void Init() {
var builder = new ContainerBuilder();
_smtpChannel = new SmtpChannelStub();
builder.RegisterInstance(new Mock<IMessageEventHandler>().Object);
builder.RegisterType<DefaultMessageManager>().As<IMessageManager>();
builder.RegisterInstance(_channel = new MessagingChannelStub()).As<IMessagingChannel>();
builder.RegisterType<DefaultMessageService>().As<IMessageService>();
builder.RegisterType<MessageChannelManager>().As<IMessageChannelManager>();
builder.RegisterType<ShapeDisplayStub>().As<IShapeDisplay>();
builder.RegisterInstance(new MessageChannelSelectorStub(_smtpChannel)).As<IMessageChannelSelector>();
var container = builder.Build();
_messageManager = container.Resolve<IMessageManager>();
_messageService = container.Resolve<IMessageService>();
}
[Test]
public void CanSendEmailUsingAddresses() {
_messageManager.Send(new []{ "steveb@microsoft.com" }, "test", "email");
Assert.That(_channel.Messages.Count, Is.EqualTo(1));
_messageService.Send("Email", new Dictionary<string, object>() { {"", null} });
Assert.That(_smtpChannel.Processed, Is.Not.Null);
}
[Test]
public void OneMessageIsSentUsingMultipleRecipients() {
_messageManager.Send(new[] { "steveb@microsoft.com", "billg@microsoft.com" }, "test", "email");
Assert.That(_channel.Messages.Count, Is.EqualTo(1));
}
public class SmtpChannelStub : IMessageChannel {
public IDictionary<string, object> Processed;
public void Process(IDictionary<string, object> parameters) {
Processed = parameters;
}
}
}

View File

@@ -7,22 +7,6 @@ namespace Orchard.Tests.Modules.ImageProcessing {
[TestFixture]
public class ImageProcessingTests {
private readonly MethodInfo _createDefaultFilename = typeof(ImageProfileManager).GetMethod("CreateDefaultFileName", BindingFlags.NonPublic | BindingFlags.Static);
private string CreateDefaultFileName(string path) {
return (string)_createDefaultFilename.Invoke(null, new object[] {path});
}
[Test]
public void CreateDefaultFilenameRemovesInvalidChars() {
Assert.That(CreateDefaultFileName("abcdef"), Is.EqualTo("abcdef"));
Assert.That(CreateDefaultFileName("abc_def"), Is.EqualTo("abc_def"));
}
[Test]
public void CreateDefaultFilenamePeservesInternationalLetters() {
Assert.That(CreateDefaultFileName("aéçâê"), Is.EqualTo("aecae"));
Assert.That(CreateDefaultFileName("джинсы_клеш"), Is.EqualTo("джинсы_клеш"));
}
}
}

View File

@@ -171,6 +171,8 @@
<Compile Include="Migrations\SchemaCommandGeneratorTests.cs" />
<Compile Include="Scripting.Dlr\ScriptingTests.cs" />
<Compile Include="Settings\Blueprint\ShellDescriptorManagerTests.cs" />
<Compile Include="Stubs\MessageChannelSelectorStub.cs" />
<Compile Include="Stubs\ShapeDisplayStub.cs" />
<Compile Include="Tags\Services\TagsServiceTests.cs" />
<Compile Include="Themes\Services\ThemeServiceTests.cs" />
<Compile Include="Users\Controllers\AccountControllerTests.cs" />
@@ -214,6 +216,10 @@
<Project>{14C049FD-B35B-415A-A824-87F26B26E7FD}</Project>
<Name>Orchard.Comments</Name>
</ProjectReference>
<ProjectReference Include="..\Orchard.Web\Modules\Orchard.Email\Orchard.Email.csproj">
<Project>{05660f47-d649-48bd-9ded-df4e01e7cff9}</Project>
<Name>Orchard.Email</Name>
</ProjectReference>
<ProjectReference Include="..\Orchard.Web\Modules\Orchard.ImportExport\Orchard.ImportExport.csproj">
<Project>{FE5C5947-D2D5-42C5-992A-13D672946135}</Project>
<Name>Orchard.ImportExport</Name>

View File

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Orchard.Messaging.Services;
namespace Orchard.Tests.Modules.Stubs {
public class MessageChannelSelectorStub : IMessageChannelSelector {
private IMessageChannel _messageChannel;
public MessageChannelSelectorStub(IMessageChannel messageChannel) {
_messageChannel = messageChannel;
}
public MessageChannelSelectorResult GetChannel(string messageType, object payload) {
return new MessageChannelSelectorResult {
Priority = 0,
MessageChannel = () => { return _messageChannel; }
};
}
}
}

View File

@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Orchard.DisplayManagement;
namespace Orchard.Tests.Modules.Stubs {
public class ShapeDisplayStub : IShapeDisplay {
public int Calls { get; set; }
public string Display(Orchard.DisplayManagement.Shapes.Shape shape) {
Calls++;
return "";
}
public string Display(object shape) {
Calls++;
return "";
}
public IEnumerable<string> Display(IEnumerable<object> shapes) {
foreach (var shape in shapes) {
yield return Display(shape);
}
}
}
}

View File

@@ -40,6 +40,7 @@ using Orchard.Core.Settings.Models;
using Orchard.Core.Settings.Handlers;
using System.Collections.Specialized;
using Orchard.Mvc;
using Orchard.Tests.Modules.Stubs;
namespace Orchard.Tests.Modules.Users.Controllers {
[TestFixture]
@@ -50,6 +51,8 @@ namespace Orchard.Tests.Modules.Users.Controllers {
private MessagingChannelStub _channel;
public override void Register(ContainerBuilder builder) {
_channel = new MessagingChannelStub();
builder.RegisterType<AccountController>().SingleInstance();
builder.RegisterType<SiteService>().As<ISiteService>();
builder.RegisterType<DefaultContentManager>().As<IContentManager>();
@@ -57,13 +60,14 @@ namespace Orchard.Tests.Modules.Users.Controllers {
builder.RegisterType<ContentDefinitionManager>().As<IContentDefinitionManager>();
builder.RegisterType<DefaultContentManagerSession>().As<IContentManagerSession>();
builder.RegisterType<DefaultContentQuery>().As<IContentQuery>().InstancePerDependency();
builder.RegisterType<DefaultMessageManager>().As<IMessageManager>();
builder.RegisterInstance(_channel = new MessagingChannelStub()).As<IMessagingChannel>();
builder.RegisterInstance(new Mock<IMessageEventHandler>().Object);
builder.RegisterInstance(new Mock<IAuthenticationService>().Object);
builder.RegisterInstance(new Mock<IUserEventHandler>().Object);
builder.RegisterType<MembershipService>().As<IMembershipService>();
builder.RegisterType<DefaultMessageService>().As<IMessageService>();
builder.RegisterInstance(new MessageChannelSelectorStub(_channel)).As<IMessageChannelSelector>();
builder.RegisterType<MessageChannelManager>().As<IMessageChannelManager>();
builder.RegisterType<ShapeDisplayStub>().As<IShapeDisplay>();
builder.RegisterType<UserService>().As<IUserService>();
builder.RegisterType<UserPartHandler>().As<IContentHandler>();
builder.RegisterType<OrchardServices>().As<IOrchardServices>();
@@ -299,6 +303,7 @@ namespace Orchard.Tests.Modules.Users.Controllers {
}
[Test]
[Ignore("To be implemented")]
public void ResetPasswordLinkShouldBeSent() {
var registrationSettings = _container.Resolve<IWorkContextAccessor>().GetContext().CurrentSite.As<RegistrationSettingsPart>();
registrationSettings.UsersCanRegister = true;
@@ -365,6 +370,5 @@ namespace Orchard.Tests.Modules.Users.Controllers {
}
}
}
}
}

View File

@@ -86,8 +86,6 @@ namespace Orchard.Tests.Modules.Users.Services {
builder.RegisterType<OrchardServices>().As<IOrchardServices>();
builder.RegisterAutoMocking(MockBehavior.Loose);
builder.RegisterGeneric(typeof(Repository<>)).As(typeof(IRepository<>));
builder.RegisterInstance(new Mock<IMessageEventHandler>().Object);
builder.RegisterType<DefaultMessageManager>().As<IMessageManager>();
builder.RegisterType<DefaultShapeTableManager>().As<IShapeTableManager>();
builder.RegisterType<DefaultShapeFactory>().As<IShapeFactory>();
builder.RegisterType<StubExtensionManager>().As<IExtensionManager>();

View File

@@ -33,6 +33,7 @@ using Orchard.Users.Models;
using Orchard.Users.Services;
using Orchard.Services;
using Orchard.Tests.Messaging;
using Orchard.Tests.Modules.Stubs;
namespace Orchard.Tests.Modules.Users.Services {
[TestFixture]
@@ -79,6 +80,7 @@ namespace Orchard.Tests.Modules.Users.Services {
[SetUp]
public void Init() {
var builder = new ContainerBuilder();
_channel = new MessagingChannelStub();
builder.RegisterType<MembershipService>().As<IMembershipService>();
builder.RegisterType<UserService>().As<IUserService>();
@@ -95,9 +97,7 @@ namespace Orchard.Tests.Modules.Users.Services {
builder.RegisterType<OrchardServices>().As<IOrchardServices>();
builder.RegisterAutoMocking(MockBehavior.Loose);
builder.RegisterGeneric(typeof(Repository<>)).As(typeof(IRepository<>));
builder.RegisterInstance(new Mock<IMessageEventHandler>().Object);
builder.RegisterType<DefaultMessageManager>().As<IMessageManager>();
builder.RegisterInstance(_channel = new MessagingChannelStub()).As<IMessagingChannel>();
builder.RegisterInstance(new MessageChannelSelectorStub(_channel)).As<IMessageChannelSelector>();
builder.RegisterType<DefaultShapeTableManager>().As<IShapeTableManager>();
builder.RegisterType<DefaultShapeFactory>().As<IShapeFactory>();
builder.RegisterType<StubExtensionManager>().As<IExtensionManager>();

View File

@@ -3,23 +3,15 @@ using Orchard.Messaging.Services;
using Orchard.Messaging.Models;
namespace Orchard.Tests.Messaging {
public class MessagingChannelStub : IMessagingChannel {
public List<MessageContext> Messages { get; private set; }
public class MessagingChannelStub : IMessageChannel {
public List<IDictionary<string, object>> Messages { get; private set; }
public MessagingChannelStub() {
Messages = new List<MessageContext>();
Messages = new List<IDictionary<string, object>>();
}
#region IMessagingChannel Members
public void SendMessage(MessageContext message) {
Messages.Add(message);
public void Process(IDictionary<string, object> parameters) {
Messages.Add(parameters);
}
public IEnumerable<string> GetAvailableServices() {
yield return "email";
}
#endregion
}
}

View File

@@ -1,89 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{8961613C-0ADD-4DF3-945B-CAE47987CAFD}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Orchard.Templates.Tests</RootNamespace>
<AssemblyName>Orchard.Templates.Tests</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Autofac">
<HintPath>..\..\..\..\..\..\lib\autofac\Autofac.dll</HintPath>
</Reference>
<Reference Include="Moq">
<HintPath>..\..\..\..\..\..\lib\moq\Moq.dll</HintPath>
</Reference>
<Reference Include="nunit.framework">
<HintPath>..\..\..\..\..\..\lib\nunit\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Web" />
<Reference Include="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\..\lib\aspnetmvc\System.Web.Mvc.dll</HintPath>
</Reference>
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="RazorParserTests.cs" />
<Compile Include="TemplateServiceTests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\..\Orchard.Tests\Orchard.Framework.Tests.csproj">
<Project>{ABC826D4-2FA1-4F2F-87DE-E6095F653810}</Project>
<Name>Orchard.Framework.Tests</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\..\..\Orchard\Orchard.Framework.csproj">
<Project>{2D1D92BB-4555-4CBE-8D0E-63563D6CE4C6}</Project>
<Name>Orchard.Framework</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\..\Core\Orchard.Core.csproj">
<Project>{9916839C-39FC-4CEB-A5AF-89CA7E87119F}</Project>
<Name>Orchard.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\Orchard.Templates.csproj">
<Project>{10ab3ce2-a720-467f-9ec8-ebb4bac9a1c9}</Project>
<Name>Orchard.Templates</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@@ -1,36 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Orchard.Templating.Tests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Orchard.Templating.Tests")]
[assembly: AssemblyCopyright("Copyright © 2013")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("c7fb7f35-0c51-418a-86eb-71d7a601570a")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@@ -1,33 +0,0 @@
using System.Web;
using Autofac;
using NUnit.Framework;
using Orchard.Caching;
using Orchard.Templates.Compilation.Razor;
using Orchard.Templates.Services;
using Orchard.Tests.Stubs;
namespace Orchard.Templates.Tests {
[TestFixture]
public class RazorParserTests {
private IContainer _container;
[SetUp]
public void Init() {
var builder = new ContainerBuilder();
builder.RegisterType<RazorTemplateProcessor>().As<ITemplateProcessor>();
builder.RegisterType<RazorCompiler>().As<IRazorCompiler>();
builder.RegisterType<StubCacheManager>().As<ICacheManager>();
builder.RegisterType<Signals>().As<ISignals>();
builder.RegisterType<StubHttpContext>().As<HttpContextBase>();
_container = builder.Build();
}
[Test]
public void ParseSomething() {
var razorParser = _container.Resolve<ITemplateProcessor>();
var result = razorParser.Process("@{ int i = 42;} The answer to everything is @i.", "Foo");
Assert.That(result.Trim(), Is.EqualTo("The answer to everything is 42."));
}
}
}

View File

@@ -1,65 +0,0 @@
using System.Web;
using System.Web.Routing;
using Autofac;
using Moq;
using NUnit.Framework;
using Orchard.Caching;
using Orchard.DisplayManagement;
using Orchard.DisplayManagement.Descriptors;
using Orchard.DisplayManagement.Descriptors.ShapeAttributeStrategy;
using Orchard.DisplayManagement.Implementation;
using Orchard.Environment;
using Orchard.Environment.Extensions.Models;
using Orchard.Templates.Services;
using Orchard.Tests.DisplayManagement;
using Orchard.Tests.Stubs;
using Orchard.Tests.Utility;
namespace Orchard.Templates.Tests {
[TestFixture]
public class TemplateServiceTests {
private IContainer _container;
[SetUp]
public void Init() {
var workContext = new DefaultDisplayManagerTests.TestWorkContext {
CurrentTheme = new ExtensionDescriptor { Id = "Hello" }
};
var builder = new ContainerBuilder();
builder.RegisterModule(new ShapeAttributeBindingModule());
builder.RegisterType<ShapeAttributeBindingStrategy>().As<IShapeTableProvider>();
builder.RegisterType<ShapeTableLocator>().As<IShapeTableLocator>();
builder.RegisterType<DefaultDisplayManager>().As<IDisplayManager>();
builder.RegisterType<DefaultShapeFactory>().As<IShapeFactory>();
builder.RegisterType<DisplayHelperFactory>().As<IDisplayHelperFactory>();
builder.RegisterType<DefaultShapeTableManager>().As<IShapeTableManager>();
builder.RegisterType<StubCacheManager>().As<ICacheManager>();
builder.RegisterType<StubParallelCacheContext>().As<IParallelCacheContext>();
builder.RegisterInstance(new DefaultDisplayManagerTests.TestWorkContextAccessor(workContext)).As<IWorkContextAccessor>();
builder.RegisterInstance(new SimpleShapes());
builder.RegisterInstance(new RouteCollection());
builder.RegisterType<DefaultTemplateService>().As<ITemplateService>();
builder.RegisterAutoMocking(MockBehavior.Loose);
_container = builder.Build();
_container.Resolve<Mock<IOrchardHostContainer>>()
.Setup(x => x.Resolve<IComponentContext>())
.Returns(_container);
}
public class SimpleShapes {
[Shape]
public IHtmlString Something() {
return new HtmlString("<br/>");
}
}
[Test]
public void RenderSomething() {
//var templateService = _container.Resolve<ITemplateService>();
//var result = templateService.ExecuteShape("Something");
//Assert.That(result, Is.EqualTo("<br/>"));
}
}
}

View File

@@ -25,6 +25,9 @@ namespace Orchard.Tokens.Tests {
builder.RegisterType<CultureDateTimeFormatProvider>().As<IDateTimeFormatProvider>();
builder.RegisterType<DefaultDateServices>().As<IDateServices>();
builder.RegisterType<StubWorkContextAccessor>().As<IWorkContextAccessor>();
builder.RegisterType<SiteCalendarSelector>().As<ICalendarSelector>();
builder.RegisterType<DefaultCalendarManager>().As<ICalendarManager>();
_container = builder.Build();
_tokenizer = _container.Resolve<ITokenizer>();
_clock = _container.Resolve<IClock>();

View File

@@ -234,8 +234,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orchard.SecureSocketsLayer"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orchard.Templates", "Orchard.Web\Modules\Orchard.Templates\Orchard.Templates.csproj", "{10AB3CE2-A720-467F-9EC8-EBB4BAC9A1C9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orchard.Templates.Tests", "Orchard.Web\Modules\Orchard.Templates\Tests\Orchard.Templates.Tests\Orchard.Templates.Tests.csproj", "{8961613C-0ADD-4DF3-945B-CAE47987CAFD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orchard.JobsQueue", "Orchard.Web\Modules\Orchard.JobsQueue\Orchard.JobsQueue.csproj", "{085948FF-0E9B-4A9A-B564-F8B8B4BDDDBC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orchard.Caching", "Orchard.Web\Modules\Orchard.Caching\Orchard.Caching.csproj", "{7528BF74-25C7-4ABE-883A-443B4EEC4776}"
@@ -970,16 +968,6 @@ Global
{10AB3CE2-A720-467F-9EC8-EBB4BAC9A1C9}.FxCop|Any CPU.Build.0 = Release|Any CPU
{10AB3CE2-A720-467F-9EC8-EBB4BAC9A1C9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{10AB3CE2-A720-467F-9EC8-EBB4BAC9A1C9}.Release|Any CPU.Build.0 = Release|Any CPU
{8961613C-0ADD-4DF3-945B-CAE47987CAFD}.CodeCoverage|Any CPU.ActiveCfg = Release|Any CPU
{8961613C-0ADD-4DF3-945B-CAE47987CAFD}.CodeCoverage|Any CPU.Build.0 = Release|Any CPU
{8961613C-0ADD-4DF3-945B-CAE47987CAFD}.Coverage|Any CPU.ActiveCfg = Release|Any CPU
{8961613C-0ADD-4DF3-945B-CAE47987CAFD}.Coverage|Any CPU.Build.0 = Release|Any CPU
{8961613C-0ADD-4DF3-945B-CAE47987CAFD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8961613C-0ADD-4DF3-945B-CAE47987CAFD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8961613C-0ADD-4DF3-945B-CAE47987CAFD}.FxCop|Any CPU.ActiveCfg = Release|Any CPU
{8961613C-0ADD-4DF3-945B-CAE47987CAFD}.FxCop|Any CPU.Build.0 = Release|Any CPU
{8961613C-0ADD-4DF3-945B-CAE47987CAFD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8961613C-0ADD-4DF3-945B-CAE47987CAFD}.Release|Any CPU.Build.0 = Release|Any CPU
{085948FF-0E9B-4A9A-B564-F8B8B4BDDDBC}.CodeCoverage|Any CPU.ActiveCfg = Release|Any CPU
{085948FF-0E9B-4A9A-B564-F8B8B4BDDDBC}.CodeCoverage|Any CPU.Build.0 = Release|Any CPU
{085948FF-0E9B-4A9A-B564-F8B8B4BDDDBC}.Coverage|Any CPU.ActiveCfg = Release|Any CPU
@@ -1079,7 +1067,6 @@ Global
{2FC1D9C8-446D-4414-B252-5E9FBE61EB63} = {74E681ED-FECC-4034-B9BD-01B0BB1BDECA}
{E07AFA7E-7B36-44C3-A537-AFCCAA93EA7A} = {74E681ED-FECC-4034-B9BD-01B0BB1BDECA}
{2969635F-D9C3-4D01-890D-437B46659690} = {74E681ED-FECC-4034-B9BD-01B0BB1BDECA}
{8961613C-0ADD-4DF3-945B-CAE47987CAFD} = {74E681ED-FECC-4034-B9BD-01B0BB1BDECA}
{5E5E7A21-C7B2-44D8-8593-2F9541AE041D} = {383DBA32-4A3E-48D1-AAC3-75377A694452}
{33B1BC8D-E292-4972-A363-22056B207156} = {383DBA32-4A3E-48D1-AAC3-75377A694452}
{0DFA2E10-96C8-4E05-BC10-B710B97ECCDE} = {383DBA32-4A3E-48D1-AAC3-75377A694452}

View File

@@ -7,22 +7,18 @@ namespace Orchard.Localization.Services {
public class DefaultDateServices : IDateServices {
private readonly IOrchardServices _orchardServices;
private readonly IWorkContextAccessor _workContextAccessor;
private readonly IDateTimeFormatProvider _dateTimeLocalization;
private readonly ISiteService _siteService;
private readonly ICalendarManager _calendarManager;
public DefaultDateServices(
IOrchardServices orchardServices,
IDateTimeFormatProvider dateTimeLocalization,
ISiteService siteService,
ICalendarManager calendarManager) {
_orchardServices = orchardServices;
_dateTimeLocalization = dateTimeLocalization;
_siteService = siteService;
_calendarManager = calendarManager;
}
public DefaultDateServices(
IWorkContextAccessor workContextAccessor,
IDateTimeFormatProvider dateTimeLocalization,
ICalendarManager calendarManager) {
_workContextAccessor = workContextAccessor;
_dateTimeLocalization = dateTimeLocalization;
_calendarManager = calendarManager;
}
public virtual DateTime? ConvertToLocal(DateTime date) {
return ConvertToLocal(ToNullable(date));
@@ -32,7 +28,8 @@ namespace Orchard.Localization.Services {
if (!date.HasValue) {
return null;
}
return TimeZoneInfo.ConvertTimeFromUtc(date.Value, _orchardServices.WorkContext.CurrentTimeZone);
var workContext = _workContextAccessor.GetContext();
return TimeZoneInfo.ConvertTimeFromUtc(date.Value, workContext.CurrentTimeZone);
}
public virtual string ConvertToLocalString(DateTime date, string nullText = null) {
@@ -91,7 +88,8 @@ namespace Orchard.Localization.Services {
if (!date.HasValue) {
return null;
}
return TimeZoneInfo.ConvertTimeToUtc(date.Value, _orchardServices.WorkContext.CurrentTimeZone);
var workContext = _workContextAccessor.GetContext();
return TimeZoneInfo.ConvertTimeToUtc(date.Value, workContext.CurrentTimeZone);
}
public virtual DateTime? ConvertFromLocalString(string dateString) {
@@ -154,14 +152,16 @@ namespace Orchard.Localization.Services {
protected virtual CultureInfo CurrentCulture {
get {
return CultureInfo.GetCultureInfo(_orchardServices.WorkContext.CurrentCulture);
var workContext = _workContextAccessor.GetContext();
return CultureInfo.GetCultureInfo(workContext.CurrentCulture);
}
}
protected virtual Calendar CurrentCalendar {
get {
if (!String.IsNullOrEmpty(_orchardServices.WorkContext.CurrentCalendar))
return _calendarManager.GetCalendarByName(_orchardServices.WorkContext.CurrentCalendar);
var workContext = _workContextAccessor.GetContext();
if (!String.IsNullOrEmpty(workContext.CurrentCalendar))
return _calendarManager.GetCalendarByName(workContext.CurrentCalendar);
return CurrentCulture.Calendar;
}
}