diff --git a/.idea/.idea.DynaCache/.idea/.gitignore b/.idea/.idea.DynaCache/.idea/.gitignore new file mode 100644 index 0000000..d6d136b --- /dev/null +++ b/.idea/.idea.DynaCache/.idea/.gitignore @@ -0,0 +1,13 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Rider ignored files +/projectSettingsUpdater.xml +/.idea.DynaCache.iml +/modules.xml +/contentModel.xml +# Datasource local storage ignored files +/../../../../../../../../:\Source\Repositories\Personal\DynaCache\.idea\.idea.DynaCache\.idea/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/.idea.DynaCache/.idea/encodings.xml b/.idea/.idea.DynaCache/.idea/encodings.xml new file mode 100644 index 0000000..df87cf9 --- /dev/null +++ b/.idea/.idea.DynaCache/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/.idea.DynaCache/.idea/indexLayout.xml b/.idea/.idea.DynaCache/.idea/indexLayout.xml new file mode 100644 index 0000000..27ba142 --- /dev/null +++ b/.idea/.idea.DynaCache/.idea/indexLayout.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/.idea.DynaCache/.idea/riderModule.iml b/.idea/.idea.DynaCache/.idea/riderModule.iml new file mode 100644 index 0000000..1a4e0d9 --- /dev/null +++ b/.idea/.idea.DynaCache/.idea/riderModule.iml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/.idea.DynaCache/.idea/vcs.xml b/.idea/.idea.DynaCache/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/.idea.DynaCache/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/DynaCache.AspNetCache/AspNetCacheService.cs b/DynaCache.AspNetCache/AspNetCacheService.cs deleted file mode 100644 index 53fc0ea..0000000 --- a/DynaCache.AspNetCache/AspNetCacheService.cs +++ /dev/null @@ -1,61 +0,0 @@ -#region Copyright 2012 Mike Goatly -// This source is subject to the the MIT License (MIT) -// All rights reserved. -#endregion - -namespace DynaCache.AspNetCache -{ - using System; - using System.Web; - using System.Web.Caching; - - /// - /// An implementation of that uses the ASP.NET cache. - /// - public class AspNetCacheService : IDynaCacheService - { - /// - /// Gets the ASP.NET cache associated to the HttpRuntime. - /// - public static Cache Cache - { - get - { - var cache = HttpRuntime.Cache; - if (cache == null) - { - throw new InvalidOperationException("No cache available on the HttpRuntime."); - } - - return cache; - } - } - - /// - /// Tries to get a cached object from the cache using the given cache key. - /// - /// The cache key of the object to read from the cache. - /// The object that was read from the cache, or null if the key - /// could not be found in the cache. - /// true if the item could be read from the cache, otherwise false. - public virtual bool TryGetCachedObject(string cacheKey, out T result) - { - var sample = Cache[cacheKey]; - result = (sample is T) - ? (T)sample - : default(T); - return result != null; - } - - /// - /// Stores an object in the cache. - /// - /// The cache key to store the object against. - /// The data to store against the key. - /// The duration, in seconds, to cache the data for. - public virtual void SetCachedObject(string cacheKey, T data, int duration) - { - Cache.Insert(cacheKey, data, null, DateTime.Now.AddSeconds(duration), Cache.NoSlidingExpiration); - } - } -} diff --git a/DynaCache.AspNetCache/DynaCache.AspNetCache.csproj b/DynaCache.AspNetCache/DynaCache.AspNetCache.csproj deleted file mode 100644 index efec36e..0000000 --- a/DynaCache.AspNetCache/DynaCache.AspNetCache.csproj +++ /dev/null @@ -1,71 +0,0 @@ - - - - Debug - AnyCPU - 8.0.30703 - 2.0 - {A3C28BDA-FD00-41F6-973D-2F86E3BA8C7B} - Library - Properties - DynaCache.AspNetCache - DynaCache.AspNetCache - v4.5.1 - 512 - SAK - SAK - SAK - SAK - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - - - - - - - - - - - - - - Properties\CommonAssemblyInfo.cs - - - - - - - {F4EE6A5E-A9EC-4119-A8E3-A1D270732D0D} - DynaCache - - - - - \ No newline at end of file diff --git a/DynaCache.AspNetCache/DynaCache.AspNetCache.csproj.vspscc b/DynaCache.AspNetCache/DynaCache.AspNetCache.csproj.vspscc deleted file mode 100644 index b6d3289..0000000 --- a/DynaCache.AspNetCache/DynaCache.AspNetCache.csproj.vspscc +++ /dev/null @@ -1,10 +0,0 @@ -"" -{ -"FILE_VERSION" = "9237" -"ENLISTMENT_CHOICE" = "NEVER" -"PROJECT_FILE_RELATIVE_PATH" = "" -"NUMBER_OF_EXCLUDED_FILES" = "0" -"ORIGINAL_PROJECT_FILE_PATH" = "" -"NUMBER_OF_NESTED_PROJECTS" = "0" -"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" -} diff --git a/DynaCache.AspNetCache/Properties/AssemblyInfo.cs b/DynaCache.AspNetCache/Properties/AssemblyInfo.cs deleted file mode 100644 index 2678043..0000000 --- a/DynaCache.AspNetCache/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,11 +0,0 @@ -#region Copyright 2012 Mike Goatly -// This source is subject to the the MIT License (MIT) -// All rights reserved. -#endregion - -using System.Reflection; -using System.Runtime.InteropServices; - -[assembly: AssemblyTitle("DynaCache.AspNetCache")] -[assembly: AssemblyDescription("A implementation of IDynaCacheService using the ASP.NET Cache")] -[assembly: Guid("026bba54-a736-4912-9374-218b394aa223")] diff --git a/DynaCache.Core.MemoryCache/DynaCache.Core.MemoryCache.csproj b/DynaCache.Core.MemoryCache/DynaCache.Core.MemoryCache.csproj new file mode 100644 index 0000000..8521be4 --- /dev/null +++ b/DynaCache.Core.MemoryCache/DynaCache.Core.MemoryCache.csproj @@ -0,0 +1,18 @@ + + + + net5.0 + DynaCache.MemoryCache + + + + + + + + + + + + + diff --git a/DynaCache.Core.MemoryCache/Extensions/ServiceCollectionExtensions.cs b/DynaCache.Core.MemoryCache/Extensions/ServiceCollectionExtensions.cs new file mode 100644 index 0000000..380ccbf --- /dev/null +++ b/DynaCache.Core.MemoryCache/Extensions/ServiceCollectionExtensions.cs @@ -0,0 +1,13 @@ +using DynaCache.Services; +using Microsoft.Extensions.DependencyInjection; + +namespace DynaCache.MemoryCache.Extensions +{ + public static class ServiceCollectionExtensions + { + public static void AddMemoryCacheService(this IServiceCollection services) + { + services.AddSingleton(); + } + } +} \ No newline at end of file diff --git a/DynaCache.MemoryCache/MemoryCacheService.cs b/DynaCache.Core.MemoryCache/MemoryCacheService.cs similarity index 83% rename from DynaCache.MemoryCache/MemoryCacheService.cs rename to DynaCache.Core.MemoryCache/MemoryCacheService.cs index e934dce..fb01992 100644 --- a/DynaCache.MemoryCache/MemoryCacheService.cs +++ b/DynaCache.Core.MemoryCache/MemoryCacheService.cs @@ -4,6 +4,10 @@ #endregion using System; +using System.Runtime.Caching; +using System.Threading; +using DynaCache.Services; +using Microsoft.Extensions.Caching.Memory; using MemCache = System.Runtime.Caching.MemoryCache; namespace DynaCache.MemoryCache @@ -21,7 +25,7 @@ public class MemoryCacheService : IDynaCacheService, IDisposable /// /// The in-memory cache instance for this service. /// - private readonly MemCache _cache = new MemCache("CacheService"); + private MemCache _cache = new MemCache("CacheService"); /// /// Tries to get a cached object from the cache using the given cache key. @@ -65,10 +69,25 @@ public virtual void SetCachedObject(string cacheKey, T data, int duration) } else { - _cache.Add(cacheKey, data, DateTime.Now.AddSeconds(duration)); + var cacheItemPolicy = new CacheItemPolicy() //TODO to settings + { + SlidingExpiration = TimeSpan.FromSeconds(duration) + }; + + _cache.Set(cacheKey, data, cacheItemPolicy); } } + public void ClearCache() + { + var newCache = new MemCache("CacheService"); + var oldCache = _cache; + + _cache = newCache; + + oldCache.Dispose(); + } + /// /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// diff --git a/DynaCache.Core.TestApp/CustomConverters/CacheConverters.cs b/DynaCache.Core.TestApp/CustomConverters/CacheConverters.cs new file mode 100644 index 0000000..359b808 --- /dev/null +++ b/DynaCache.Core.TestApp/CustomConverters/CacheConverters.cs @@ -0,0 +1,17 @@ +using System.Collections.Generic; + +namespace DynaCache.TestApp.CustomConverters +{ + public static class CacheConverters + { + public static string TestConvert(Test test) + { + return test.Kekos.ToString(); + } + + public static string ListConvert(List list) + { + return string.Join(",", list); + } + } +} \ No newline at end of file diff --git a/DynaCache.Core.TestApp/DynaCache.Core.TestApp.csproj b/DynaCache.Core.TestApp/DynaCache.Core.TestApp.csproj new file mode 100644 index 0000000..8b5d9a7 --- /dev/null +++ b/DynaCache.Core.TestApp/DynaCache.Core.TestApp.csproj @@ -0,0 +1,17 @@ + + + + Exe + net5.0 + DynaCache.TestApp + + + + + + + + + + + diff --git a/DynaCache.TestApp/IRandomService.cs b/DynaCache.Core.TestApp/IRandomService.cs similarity index 87% rename from DynaCache.TestApp/IRandomService.cs rename to DynaCache.Core.TestApp/IRandomService.cs index f39312a..2461d9b 100644 --- a/DynaCache.TestApp/IRandomService.cs +++ b/DynaCache.Core.TestApp/IRandomService.cs @@ -3,6 +3,8 @@ // All rights reserved. #endregion +using System.Collections.Generic; + namespace DynaCache.TestApp { /// @@ -16,6 +18,6 @@ public interface IRandomService /// The minimum value to return (inclusive). /// The maximum value to return (exclusive). /// The random number. - int GetRandomNumber(int minInclusive, int maxExclusive); + int GetRandomNumber(List minInclusive); } } diff --git a/DynaCache.Core.TestApp/Program.cs b/DynaCache.Core.TestApp/Program.cs new file mode 100644 index 0000000..48918d3 --- /dev/null +++ b/DynaCache.Core.TestApp/Program.cs @@ -0,0 +1,61 @@ +using System; +using System.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; +using DynaCache.Extensions; +using DynaCache.MemoryCache.Extensions; +using DynaCache.Services; +using DynaCache.TestApp.CustomConverters; +using Microsoft.Extensions.DependencyInjection; + +namespace DynaCache.TestApp +{ + class Program + { + static void Main(string[] args) + { + Cacheable.AddCustomConverter(CacheConverters.TestConvert); + Cacheable.AddCustomConverter>(CacheConverters.ListConvert); + var services = new ServiceCollection(); + + services.AddMemoryCacheService(); + services.AddCacheable(); + + services.AddTransient(); + + var serviceProvider = services.BuildServiceProvider(); + + var service = serviceProvider.GetRequiredService(); + + var cacheService = serviceProvider.GetRequiredService(); + + Task.Run(() => + { + while (true) + { + Console.ReadKey(); + cacheService.ClearCache(); + } + }); + + while (true) + { + var test = new Test() + { + Kekos = 1 + }; + + var list = new List + { + 1 + }; + + // The result from the GetRandomNumber method on the service has its results cached for 1 second + // therefore the displayed results should only change every 4th iteration. + Console.WriteLine("Random number between 1 and 10: {0}", service.GetRandomNumber(list)); + + Thread.Sleep(250); + } + } + } +} \ No newline at end of file diff --git a/DynaCache.TestApp/RandomService.cs b/DynaCache.Core.TestApp/RandomService.cs similarity index 65% rename from DynaCache.TestApp/RandomService.cs rename to DynaCache.Core.TestApp/RandomService.cs index bf0dece..eed2985 100644 --- a/DynaCache.TestApp/RandomService.cs +++ b/DynaCache.Core.TestApp/RandomService.cs @@ -3,6 +3,10 @@ // All rights reserved. #endregion +using System.Collections.Generic; +using System.Linq; +using DynaCache.Attributes; + namespace DynaCache.TestApp { using System; @@ -12,10 +16,12 @@ namespace DynaCache.TestApp /// public class RandomService : IRandomService { - /// - /// The random instance to use when generating random numbers. - /// - private readonly Random _random = new Random(); + private readonly Random _random; + + public RandomService(Random random) + { + _random = random; + } /// /// Gets a random number between the given bounds. @@ -25,10 +31,10 @@ public class RandomService : IRandomService /// /// The random number. /// - [CacheableMethod(1)] - public virtual int GetRandomNumber(int minInclusive, int maxExclusive) + [CacheableMethod(10000)] + public virtual int GetRandomNumber(List minInclusive) { - return _random.Next(minInclusive, maxExclusive); + return _random.Next(minInclusive.First(), 20); } } } diff --git a/DynaCache.Core.TestApp/Test.cs b/DynaCache.Core.TestApp/Test.cs new file mode 100644 index 0000000..e043469 --- /dev/null +++ b/DynaCache.Core.TestApp/Test.cs @@ -0,0 +1,7 @@ +namespace DynaCache.TestApp +{ + public class Test + { + public int Kekos { get; set; } + } +} \ No newline at end of file diff --git a/DynaCache/CacheableMethodAttribute.cs b/DynaCache.Core/Attributes/CacheableMethodAttribute.cs similarity index 55% rename from DynaCache/CacheableMethodAttribute.cs rename to DynaCache.Core/Attributes/CacheableMethodAttribute.cs index a0211d7..97e6029 100644 --- a/DynaCache/CacheableMethodAttribute.cs +++ b/DynaCache.Core/Attributes/CacheableMethodAttribute.cs @@ -3,11 +3,10 @@ // All rights reserved. #endregion -namespace DynaCache -{ - using System; - using System.Configuration; +using System; +namespace DynaCache.Attributes +{ /// /// An attribute that can be applied to a method, causing the results of the method to be cached, varying by the parameter /// values being passed into it. @@ -15,21 +14,6 @@ namespace DynaCache [AttributeUsage(AttributeTargets.Method)] public sealed class CacheableMethodAttribute : Attribute { - /// - /// There's a better way to do this, i.e. configuration reading needs to take place outside the attribute; - /// in Azure, for example, this should be CloudConfigurationManager. For now, we aren't supporting that, so this will suffice. - /// - private static readonly DynaCacheSection Configuration = ConfigurationManager.GetSection("dynaCache") as DynaCacheSection; - - /// - /// Initializes a new instance of the class. - /// - /// The name of the cache duration to look up in the configuration file. - public CacheableMethodAttribute(string namedCacheDuration) - { - CacheSeconds = (int)Configuration.CacheDurations[namedCacheDuration].Duration.TotalSeconds; - } - /// /// Initializes a new instance of the class. /// @@ -51,10 +35,6 @@ public CacheableMethodAttribute(TimeSpan duration) /// /// Gets the number of seconds to cache the results for. /// - public int CacheSeconds - { - get; - private set; - } + public int CacheSeconds { get; } } } diff --git a/DynaCache/ToStringableAttribute.cs b/DynaCache.Core/Attributes/ToStringableAttribute.cs similarity index 90% rename from DynaCache/ToStringableAttribute.cs rename to DynaCache.Core/Attributes/ToStringableAttribute.cs index 83996b7..992ab5c 100644 --- a/DynaCache/ToStringableAttribute.cs +++ b/DynaCache.Core/Attributes/ToStringableAttribute.cs @@ -3,10 +3,10 @@ // All rights reserved. #endregion -namespace DynaCache -{ - using System; +using System; +namespace DynaCache.Attributes +{ /// /// An attribute that can be applied to a class, causing DynaCache to assume thatthis class implementation of ToString() /// returns unique keys diff --git a/DynaCache.Core/DynaCache.Core.csproj b/DynaCache.Core/DynaCache.Core.csproj new file mode 100644 index 0000000..b19404b --- /dev/null +++ b/DynaCache.Core/DynaCache.Core.csproj @@ -0,0 +1,12 @@ + + + + net5.0 + DynaCache + + + + + + + diff --git a/DynaCache/DynaCacheException.cs b/DynaCache.Core/Exceptions/DynaCacheException.cs similarity index 95% rename from DynaCache/DynaCacheException.cs rename to DynaCache.Core/Exceptions/DynaCacheException.cs index c4fb73d..9d2883e 100644 --- a/DynaCache/DynaCacheException.cs +++ b/DynaCache.Core/Exceptions/DynaCacheException.cs @@ -3,11 +3,11 @@ // All rights reserved. #endregion -namespace DynaCache -{ - using System; - using System.Runtime.Serialization; +using System; +using System.Runtime.Serialization; +namespace DynaCache.Exceptions +{ /// /// Represents an error that occurs during DynaCache cacheable type generation. /// diff --git a/DynaCache.Core/Extensions/ServiceCollectionExtensions.cs b/DynaCache.Core/Extensions/ServiceCollectionExtensions.cs new file mode 100644 index 0000000..1ec28d5 --- /dev/null +++ b/DynaCache.Core/Extensions/ServiceCollectionExtensions.cs @@ -0,0 +1,30 @@ +using Microsoft.Extensions.DependencyInjection; + +namespace DynaCache.Extensions +{ + public static class ServiceCollectionExtensions + { + public static void AddCacheable(this IServiceCollection services, ServiceLifetime serviceLifetime = ServiceLifetime.Singleton) + where T : class + { + services.AddCacheable(serviceLifetime); + } + + public static void AddCacheable(this IServiceCollection services, ServiceLifetime serviceLifetime = ServiceLifetime.Singleton) + where TTo : class + { + switch (serviceLifetime) + { + case ServiceLifetime.Singleton: + services.AddSingleton(typeof(TFrom), Cacheable.CreateType()); + break; + case ServiceLifetime.Transient: + services.AddTransient(typeof(TFrom), Cacheable.CreateType()); + break; + case ServiceLifetime.Scoped: + services.AddScoped(typeof(TFrom), Cacheable.CreateType()); + break; + } + } + } +} \ No newline at end of file diff --git a/DynaCache/Cacheable.cs b/DynaCache.Core/Services/Cacheable.cs similarity index 92% rename from DynaCache/Cacheable.cs rename to DynaCache.Core/Services/Cacheable.cs index 803027a..100a683 100644 --- a/DynaCache/Cacheable.cs +++ b/DynaCache.Core/Services/Cacheable.cs @@ -3,18 +3,19 @@ // All rights reserved. #endregion -using System.Runtime.InteropServices; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using System.Reflection.Emit; +using System.Runtime.CompilerServices; +using System.Text; +using DynaCache.Attributes; +using DynaCache.Exceptions; +using DynaCache.Services; namespace DynaCache { - using System; - using System.Collections.Generic; - using System.Diagnostics; - using System.Linq; - using System.Reflection; - using System.Reflection.Emit; - using System.Runtime.CompilerServices; - using System.Text; /// /// Cacheable provides the ability to create a dynamic cache proxy type for a class. /// @@ -64,38 +65,16 @@ public static class Cacheable /// private static readonly AssemblyName AssemblyName = new AssemblyName("Dynamic Cacheable Proxies"); -#if DEBUG - /// - /// The dynamic assembly build that will be used to define the cacheable types. - /// - private static readonly AssemblyBuilder AssemblyBuilder = AppDomain.CurrentDomain.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess.RunAndSave); - /// - /// The dynamic module that the cacheable types will be created in. - /// - private static readonly ModuleBuilder Module = AssemblyBuilder.DefineDynamicModule(AssemblyName.Name, "test.dll"); -#else /// /// The dynamic assembly build that will be used to define the cacheable types. /// - private static readonly AssemblyBuilder AssemblyBuilder = AppDomain.CurrentDomain.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess.Run); + private static readonly AssemblyBuilder AssemblyBuilder = AssemblyBuilder.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess.Run); /// /// The dynamic module that the cacheable types will be created in. /// private static readonly ModuleBuilder Module = AssemblyBuilder.DefineDynamicModule(AssemblyName.Name); -#endif - -#if DEBUG - /// - /// Saves the underlying assembly. - /// - [Conditional("DEBUG")] - public static void SaveAssembly() - { - AssemblyBuilder.Save("test.dll", PortableExecutableKinds.ILOnly, ImageFileMachine.I386); - } -#endif /// /// Creates a dynamic cache proxy type for a given type. Any methods that are decorated with @@ -260,22 +239,21 @@ private static void DefineConstructor(Type type, Type[] constructorSignature, Ty private static ConstructorInfo ChooseConstructor(Type type, ConstructorInfo[] constructors, Type[] constructorSignature) { ConstructorInfo result; - /* - if (constructors.Length > 1) + + if ((constructorSignature == null || constructorSignature.Length == 0) && constructors.Length > 1) { - throw new DynaCacheException("Only one constructor is supported at the moment - sorry."); + throw new DynaCacheException("Only one constructor is supported without constructorSignature"); } - */ if (constructorSignature == null || constructorSignature.Length == 0) { - result = constructors.Where(v => v.GetParameters().Length == 0).FirstOrDefault(); + result = constructors.FirstOrDefault(); if (result == null) { throw new DynaCacheException( - string.Format("Required constructor w/o parameters is missing. Correct \"constructorSignature\" or constructor in type <{0}>.", type.Name) - ); + $"Required constructor w/o parameters is missing. Correct \"constructorSignature\" or constructor in type <{type.Name}>." + ); } } else diff --git a/DynaCache/IDynaCacheService.cs b/DynaCache.Core/Services/IDynaCacheService.cs similarity index 92% rename from DynaCache/IDynaCacheService.cs rename to DynaCache.Core/Services/IDynaCacheService.cs index 04558ac..30ce68c 100644 --- a/DynaCache/IDynaCacheService.cs +++ b/DynaCache.Core/Services/IDynaCacheService.cs @@ -3,7 +3,7 @@ // All rights reserved. #endregion -namespace DynaCache +namespace DynaCache.Services { /// /// The interface implemented by classes capable of acting as a backing cache that @@ -28,5 +28,10 @@ public interface IDynaCacheService /// The data to store against the key. /// The duration, in seconds, to cache the data for. void SetCachedObject(string cacheKey, T data, int duration); + + /// + /// Clear all data from cache + /// + void ClearCache(); } } diff --git a/DynaCache.MemoryCache/DynaCache.MemoryCache.csproj b/DynaCache.MemoryCache/DynaCache.MemoryCache.csproj deleted file mode 100644 index d231bb6..0000000 --- a/DynaCache.MemoryCache/DynaCache.MemoryCache.csproj +++ /dev/null @@ -1,82 +0,0 @@ - - - - Debug - AnyCPU - 8.0.30703 - 2.0 - {37A75E49-01D3-4AC5-BAB9-CE31EA518859} - Library - Properties - DynaCache.MemoryCache - DynaCache.MemoryCache - v4.5 - 512 - SAK - SAK - SAK - SAK - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - bin\Release\DynaCache.MemoryCache.XML - false - - - - - - - - - - - - - - - Properties\CommonAssemblyInfo.cs - - - - - - - {f4ee6a5e-a9ec-4119-a8e3-a1d270732d0d} - DynaCache - - - - - $(OutputPath)\..\..\..\Nuget\ - $(NugetFolder)PackageContents\lib\ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/DynaCache.MemoryCache/DynaCache.MemoryCache.csproj.vspscc b/DynaCache.MemoryCache/DynaCache.MemoryCache.csproj.vspscc deleted file mode 100644 index b6d3289..0000000 --- a/DynaCache.MemoryCache/DynaCache.MemoryCache.csproj.vspscc +++ /dev/null @@ -1,10 +0,0 @@ -"" -{ -"FILE_VERSION" = "9237" -"ENLISTMENT_CHOICE" = "NEVER" -"PROJECT_FILE_RELATIVE_PATH" = "" -"NUMBER_OF_EXCLUDED_FILES" = "0" -"ORIGINAL_PROJECT_FILE_PATH" = "" -"NUMBER_OF_NESTED_PROJECTS" = "0" -"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" -} diff --git a/DynaCache.MemoryCache/Properties/AssemblyInfo.cs b/DynaCache.MemoryCache/Properties/AssemblyInfo.cs deleted file mode 100644 index 2d64b3b..0000000 --- a/DynaCache.MemoryCache/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,11 +0,0 @@ -#region Copyright 2012 Mike Goatly -// This source is subject to the the MIT License (MIT) -// All rights reserved. -#endregion - -using System.Reflection; -using System.Runtime.InteropServices; - -[assembly: AssemblyTitle("DynaCache.MemoryCache")] -[assembly: AssemblyDescription("A implementation of IDynaCacheService using the .NET 4.0 MemoryCache.")] -[assembly: Guid("64c46c3a-af08-4e24-a107-484ad320e09f")] diff --git a/DynaCache.MultilevelCache/Configuration/CacheConfigurationProviderService.cs b/DynaCache.MultilevelCache/Configuration/CacheConfigurationProviderService.cs deleted file mode 100644 index 9151414..0000000 --- a/DynaCache.MultilevelCache/Configuration/CacheConfigurationProviderService.cs +++ /dev/null @@ -1,86 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Configuration; -using System.Linq; -using System.Text; -using DynaCache.MultilevelCache.Configuration.CacheDispatcher; -using DynaCache.MultilevelCache.Domain; -using DynaCache.MultilevelCache.Internals; -using Functional.Maybe; -using Ninject; -using NLog; -using NLog.Extension; - -namespace DynaCache.MultilevelCache.Configuration -{ - internal class CacheConfigurationProviderService : ICacheConfigurationProviderService - { - private const string CacheDispatcherSectionName = "cacheDispatcher"; - - private static readonly ILogger logger = LogManager.GetCurrentClassLogger(); - private readonly CacheDispatcherConfiguration _cdSection; - - private readonly IDynaCacheService[] _leveledCacheServiceImplementations; - - public CacheConfigurationProviderService([Named("SlaveCache")] IDynaCacheService[] leveledCacheServiceImplementations) - { - _cdSection = (CacheDispatcherConfiguration)ConfigurationManager.GetSection(CacheDispatcherSectionName); - _leveledCacheServiceImplementations = leveledCacheServiceImplementations; - } - - public uint GetCurrentCacheVersion() - => ParseCacheVersion(_cdSection.CurrentCacheVersion, nameof(_cdSection.CurrentCacheVersion)); - - public uint GetPreviousCacheVersion() - => ParseCacheVersion(_cdSection.PreviousCacheVersion, nameof(_cdSection.PreviousCacheVersion)); - - public IReadOnlyCollection GetCachingServices() - { - return _cdSection.CachingServices - .Cast() - .Select(ParseCachingService) - .WhereValueExist() - .ToList(); - } - - private Maybe ParseCachingService(CachingService raw) - { - using (new TracingLogProxy(logger)) - { - var errors = new StringBuilder(); - var instance = _leveledCacheServiceImplementations - .Where(i => i.GetType().FullName == raw.Type) - .FirstMaybe(); - if (!instance.HasValue) - errors.AppendLine($"cannot find type with name {raw.Type} among implemented {nameof(IDynaCacheService)}"); - var lifeSpan = raw.Expiration.ParseMaybe(long.TryParse); - if (!lifeSpan.HasValue) - errors.AppendLine($"failed to parse {nameof(raw.Expiration)} value {raw.Expiration}"); - var timeout = raw.Timeout.ParseMaybe(long.TryParse); - if (!timeout.HasValue) - errors.AppendLine($"failed to parse {nameof(raw.Timeout)} value {raw.Timeout}"); - if (errors.Length == 0) - return new CacheServiceContext - { - Name = raw.Name, - ServiceInstance = instance.Value, - RetrievalTimeout = TimeSpan.FromMilliseconds(timeout.Value), - CacheLifeSpan = TimeSpan.FromMilliseconds(lifeSpan.Value) - }.ToMaybe(); - logger.Error($"failed to parse {raw.Name} configuration entry due to following errors:{Environment.NewLine}{errors}"); - return Maybe.Nothing; - } - } - - private static uint ParseCacheVersion(string entryValue, string entryName) - { - using (new TracingLogProxy(logger)) - { - uint res; - if (!uint.TryParse(entryValue, out res)) - logger.Error($"failed to parse {entryName} value {entryValue} as uint"); - return res; - } - } - } -} \ No newline at end of file diff --git a/DynaCache.MultilevelCache/Configuration/CacheDispatcher/CacheDispatcherConfiguration.cs b/DynaCache.MultilevelCache/Configuration/CacheDispatcher/CacheDispatcherConfiguration.cs deleted file mode 100644 index 6bba5c0..0000000 --- a/DynaCache.MultilevelCache/Configuration/CacheDispatcher/CacheDispatcherConfiguration.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System.Configuration; - -namespace DynaCache.MultilevelCache.Configuration.CacheDispatcher -{ - public class CacheDispatcherConfiguration : ConfigurationSection - { - private const string CachingServicesNodeName = "cachingServices"; - private const string CurrentCacheVersionNodeName = "currentCacheVersion"; - private const string PreviousCacheVersionNodeName = "previousCacheVersion"; - - [ConfigurationProperty(CachingServicesNodeName)] - public CachingServices CachingServices => (CachingServices)base[CachingServicesNodeName]; - - [ConfigurationProperty(CurrentCacheVersionNodeName, IsRequired = true, IsKey = false)] - public string CurrentCacheVersion => (string)base[CurrentCacheVersionNodeName]; - - [ConfigurationProperty(PreviousCacheVersionNodeName, IsRequired = true, IsKey = false)] - public string PreviousCacheVersion => (string)base[PreviousCacheVersionNodeName]; - } -} \ No newline at end of file diff --git a/DynaCache.MultilevelCache/Configuration/CacheDispatcher/CachingService.cs b/DynaCache.MultilevelCache/Configuration/CacheDispatcher/CachingService.cs deleted file mode 100644 index 05155f8..0000000 --- a/DynaCache.MultilevelCache/Configuration/CacheDispatcher/CachingService.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System.Configuration; - -namespace DynaCache.MultilevelCache.Configuration.CacheDispatcher -{ - public class CachingService : ConfigurationElement - { - internal const string CachingServiceNodeName = "cachingService"; - private const string NameNodeName = "name"; - private const string TypeNodeName = "type"; - private const string TimeoutNodeName = "timeout"; - private const string ExpirationNodeName = "expiration"; - - [ConfigurationProperty(NameNodeName, IsKey = false, IsRequired = true)] - public string Name => (string)base[NameNodeName]; - - [ConfigurationProperty(TypeNodeName, IsKey = true, IsRequired = true)] - public string Type => (string)base[TypeNodeName]; - - [ConfigurationProperty(TimeoutNodeName, IsKey = false, IsRequired = true)] - public string Timeout => (string)base[TimeoutNodeName]; - - [ConfigurationProperty(ExpirationNodeName, IsKey = false, IsRequired = true)] - public string Expiration => (string)base[ExpirationNodeName]; - - public override string ToString() - { - return - $"{{{nameof(Name)} = {Name}, {nameof(Type)} = {Type}, {nameof(Timeout)} = {Timeout}, {nameof(Expiration)} = {Expiration}}}"; - } - } -} \ No newline at end of file diff --git a/DynaCache.MultilevelCache/Configuration/CacheDispatcher/CachingServices.cs b/DynaCache.MultilevelCache/Configuration/CacheDispatcher/CachingServices.cs deleted file mode 100644 index ab253b0..0000000 --- a/DynaCache.MultilevelCache/Configuration/CacheDispatcher/CachingServices.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System.Configuration; - -namespace DynaCache.MultilevelCache.Configuration.CacheDispatcher -{ - [ConfigurationCollection(typeof(CachingService), AddItemName = CachingService.CachingServiceNodeName)] - public class CachingServices : ConfigurationElementCollection - { - protected override ConfigurationElement CreateNewElement() - { - return new CachingService(); - } - - protected override object GetElementKey(ConfigurationElement element) - { - return ((CachingService)element).Name; - } - } -} \ No newline at end of file diff --git a/DynaCache.MultilevelCache/Configuration/ICacheConfigurationProviderService.cs b/DynaCache.MultilevelCache/Configuration/ICacheConfigurationProviderService.cs deleted file mode 100644 index 2e60a41..0000000 --- a/DynaCache.MultilevelCache/Configuration/ICacheConfigurationProviderService.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using DynaCache.MultilevelCache.Domain; - -namespace DynaCache.MultilevelCache.Configuration -{ - public interface ICacheConfigurationProviderService - { - uint GetCurrentCacheVersion(); - uint GetPreviousCacheVersion(); - IReadOnlyCollection GetCachingServices(); - } -} \ No newline at end of file diff --git a/DynaCache.MultilevelCache/Domain/CacheServiceContext.cs b/DynaCache.MultilevelCache/Domain/CacheServiceContext.cs deleted file mode 100644 index d501a88..0000000 --- a/DynaCache.MultilevelCache/Domain/CacheServiceContext.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; - -namespace DynaCache.MultilevelCache.Domain -{ - public class CacheServiceContext - { - public string Name { get; set; } - public IDynaCacheService ServiceInstance { get; set; } - public TimeSpan RetrievalTimeout { get; set; } - public TimeSpan CacheLifeSpan { get; set; } - } -} \ No newline at end of file diff --git a/DynaCache.MultilevelCache/DynaCache.MultilevelCache.csproj b/DynaCache.MultilevelCache/DynaCache.MultilevelCache.csproj deleted file mode 100644 index e5a1845..0000000 --- a/DynaCache.MultilevelCache/DynaCache.MultilevelCache.csproj +++ /dev/null @@ -1,98 +0,0 @@ - - - - - Debug - AnyCPU - {F603301D-977A-4BA2-8B09-70F2B645A12E} - Library - Properties - DynaCache.MultilevelCache - DynaCache.MultilevelCache - v4.5.1 - 512 - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\Functional.Maybe.1.1.0\lib\portable40-net40+win8\Functional.Maybe.dll - True - - - ..\packages\Ninject.3.2.2.0\lib\net45-full\Ninject.dll - True - - - ..\packages\NLog.4.3.1\lib\net45\NLog.dll - True - - - ..\packages\protobuf-net.2.0.0.668\lib\net40\protobuf-net.dll - True - - - ..\packages\StackExchange.Redis.1.0.488\lib\net45\StackExchange.Redis.dll - True - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {F4EE6A5E-A9EC-4119-A8E3-A1D270732D0D} - DynaCache - - - {3ABC04DB-454F-4543-99E3-84BF6875DA95} - NLog.Extension - - - - - \ No newline at end of file diff --git a/DynaCache.MultilevelCache/Internals/Extensions.cs b/DynaCache.MultilevelCache/Internals/Extensions.cs deleted file mode 100644 index 6984a4c..0000000 --- a/DynaCache.MultilevelCache/Internals/Extensions.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Functional.Maybe; - -namespace DynaCache.MultilevelCache.Internals -{ - internal static class StringExtensions - { - public static Maybe ParseMaybe(this string that, ParseDelegate parser) - { - T res; - return parser(that, out res) - ? res.ToMaybe() - : Maybe.Nothing; - } - - internal delegate bool ParseDelegate(string val, out T res); - } -} \ No newline at end of file diff --git a/DynaCache.MultilevelCache/MultilevelCacheModule.cs b/DynaCache.MultilevelCache/MultilevelCacheModule.cs deleted file mode 100644 index 0262113..0000000 --- a/DynaCache.MultilevelCache/MultilevelCacheModule.cs +++ /dev/null @@ -1,13 +0,0 @@ -using DynaCache.MultilevelCache.Configuration; -using Ninject.Modules; - -namespace DynaCache.MultilevelCache -{ - public class MultilevelCacheModule : NinjectModule - { - public override void Load() - { - Bind().To(); - } - } -} diff --git a/DynaCache.MultilevelCache/MultilevelCacheService.cs b/DynaCache.MultilevelCache/MultilevelCacheService.cs deleted file mode 100644 index 3230bbb..0000000 --- a/DynaCache.MultilevelCache/MultilevelCacheService.cs +++ /dev/null @@ -1,124 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text.RegularExpressions; -using System.Threading; -using System.Threading.Tasks; -using DynaCache.MultilevelCache.Configuration; -using DynaCache.MultilevelCache.Domain; -using DynaCache.MultilevelCache.Internals; -using Functional.Maybe; -using NLog; -using NLog.Extension; - -namespace DynaCache.MultilevelCache -{ - public class MultilevelCacheService : IDynaCacheService - { - private const string CacheVersionPrefix = "cache-version:"; - - private static readonly ILogger logger = LogManager.GetCurrentClassLogger(); - - private readonly IReadOnlyCollection _cacheServices; - private readonly uint _currentCacheVersion; - private readonly uint _previousCacheVersion; - - public MultilevelCacheService(ICacheConfigurationProviderService configurationProviderService) - { - _cacheServices = configurationProviderService.GetCachingServices(); - _currentCacheVersion = configurationProviderService.GetCurrentCacheVersion(); - _previousCacheVersion = configurationProviderService.GetPreviousCacheVersion(); - } - - - public bool TryGetCachedObject(string cacheKey, out T result) - { - var retrieved = RetrieveMaybe(cacheKey, _currentCacheVersion) // try to get value from current cache version - .Or(() => - { - var res = RetrieveMaybe(cacheKey, _previousCacheVersion); // try to get value from previous cache version - res.Do(v => Store(cacheKey, _currentCacheVersion, v)); // save to new version if old version fits new - return res; - }); - result = retrieved.Value; - return retrieved.HasValue; - } - - public void SetCachedObject(string cacheKey, T data, int duration) - => Store(cacheKey, _currentCacheVersion, data, TimeSpan.FromSeconds(duration)); - - private Maybe RetrieveMaybe(string cacheKey, uint cacheVersion) - { - using (new TracingLogProxy(logger)) - { - var emptyCacheServices = new List(); - var versionedCacheKey = ApplyVersionToKey(cacheKey, cacheVersion); - logger.Debug($"requested value for {versionedCacheKey} key"); - foreach (var cacheServiceContext in _cacheServices) - { - var cts = new CancellationTokenSource(); - var pending = Task.Run(() => versionedCacheKey.ParseMaybe(cacheServiceContext.ServiceInstance.TryGetCachedObject), cts.Token); - try - { - var timedOut = !pending.Wait(cacheServiceContext.RetrievalTimeout); - if (timedOut) - { - cts.Cancel(); - logger.Warn($"cache request for {versionedCacheKey} at {cacheServiceContext.Name} has timed out"); - emptyCacheServices.Add(cacheServiceContext); - continue; - } - } - catch (Exception e) - { - logger.Error(e, $"cache request for {versionedCacheKey} at {cacheServiceContext.Name} has faulted"); - emptyCacheServices.Add(cacheServiceContext); - continue; - } - var res = pending.Result; - if (res.HasValue) - { - emptyCacheServices.ForEach(ecs => ecs.ServiceInstance.SetCachedObject(versionedCacheKey, res.Value, ecs.CacheLifeSpan.Seconds)); - return res; - } - logger.Debug($"cache not found for {versionedCacheKey} at {cacheServiceContext.Name}"); - emptyCacheServices.Add(cacheServiceContext); - } - logger.Debug($"failed to find cached value for {versionedCacheKey}"); - return Maybe.Nothing; - } - } - - private void Store(string cacheKey, uint cacheVersion, T value, TimeSpan? lastServiceExpiration = null) - { - using (new TracingLogProxy(logger)) - { - var versionedCacheKey = ApplyVersionToKey(cacheKey, cacheVersion); - logger.Debug($"storing value for key {versionedCacheKey} in cache"); - Task.Run(() => - { - using (var iteration = _cacheServices.GetEnumerator()) - { - if (!iteration.MoveNext()) - return; - var cs = iteration.Current; - while (iteration.MoveNext()) - { - cs.ServiceInstance.SetCachedObject(versionedCacheKey, value, cs.CacheLifeSpan.Seconds); - cs = iteration.Current; - } - cs.ServiceInstance.SetCachedObject(versionedCacheKey, value, - lastServiceExpiration?.Seconds ?? cs.CacheLifeSpan.Seconds); - } - }); - } - } - - private static string ApplyVersionToKey(string cacheKey, uint cacheVersion) - { - using (new TracingLogProxy(logger)) - return Regex.IsMatch(cacheKey, $@"{Regex.Escape(CacheVersionPrefix)}\d+$") - ? cacheKey - : $"{CacheVersionPrefix}{cacheVersion}:" + cacheKey; - } - } -} \ No newline at end of file diff --git a/DynaCache.MultilevelCache/Properties/AssemblyInfo.cs b/DynaCache.MultilevelCache/Properties/AssemblyInfo.cs deleted file mode 100644 index 6d72ef2..0000000 --- a/DynaCache.MultilevelCache/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System.Reflection; -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("DynaCache.MultilevelCache")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("DynaCache.MultilevelCache")] -[assembly: AssemblyCopyright("Copyright © 2016")] -[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("f603301d-977a-4ba2-8b09-70f2b645a12e")] - -// 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")] \ No newline at end of file diff --git a/DynaCache.MultilevelCache/packages.config b/DynaCache.MultilevelCache/packages.config deleted file mode 100644 index 6e61dcc..0000000 --- a/DynaCache.MultilevelCache/packages.config +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/DynaCache.RedisCache/Configuration/IRedisConfigurationProviderService.cs b/DynaCache.RedisCache/Configuration/IRedisConfigurationProviderService.cs deleted file mode 100644 index 4f09b2f..0000000 --- a/DynaCache.RedisCache/Configuration/IRedisConfigurationProviderService.cs +++ /dev/null @@ -1,9 +0,0 @@ -using StackExchange.Redis; - -namespace DynaCache.RedisCache.Configuration -{ - public interface IRedisConfigurationProviderService - { - ConfigurationOptions GetMultiplexorOptions(); - } -} \ No newline at end of file diff --git a/DynaCache.RedisCache/Configuration/Redis/Endpoint.cs b/DynaCache.RedisCache/Configuration/Redis/Endpoint.cs deleted file mode 100644 index 83d7d2b..0000000 --- a/DynaCache.RedisCache/Configuration/Redis/Endpoint.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System.Configuration; - -namespace DynaCache.RedisCache.Configuration.Redis -{ - public class Endpoint : ConfigurationElement - { - internal const string EndpointNodeName = "endpoint"; - private const string AddressNodeName = "address"; - private const string PortNodeName = "port"; - - [ConfigurationProperty(AddressNodeName, IsKey = false, IsRequired = true)] - public string Address => (string)base[AddressNodeName]; - - [ConfigurationProperty(PortNodeName, IsKey = true, IsRequired = false)] - public string Port => (string)base[PortNodeName]; - - public override string ToString() - { - return $"{{{nameof(Address)} = {Address}, {nameof(Port)} = {Port}}}"; - } - } -} \ No newline at end of file diff --git a/DynaCache.RedisCache/Configuration/Redis/Endpoints.cs b/DynaCache.RedisCache/Configuration/Redis/Endpoints.cs deleted file mode 100644 index 044b945..0000000 --- a/DynaCache.RedisCache/Configuration/Redis/Endpoints.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System.Configuration; -using System.Text; - -namespace DynaCache.RedisCache.Configuration.Redis -{ - [ConfigurationCollection(typeof(Endpoint), AddItemName = Endpoint.EndpointNodeName)] - public class Endpoints : ConfigurationElementCollection - { - protected override ConfigurationElement CreateNewElement() - { - return new Endpoint(); - } - - protected override object GetElementKey(ConfigurationElement element) - { - var e = (Endpoint)element; - var builder = new StringBuilder(); - builder.Append(e.Address); - if (e.Port != null) - builder.Append(':').Append(e.Port); - return builder.ToString(); - } - } -} \ No newline at end of file diff --git a/DynaCache.RedisCache/Configuration/Redis/RedisConfiguration.cs b/DynaCache.RedisCache/Configuration/Redis/RedisConfiguration.cs deleted file mode 100644 index 7ed0dcb..0000000 --- a/DynaCache.RedisCache/Configuration/Redis/RedisConfiguration.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System.Configuration; - -namespace DynaCache.RedisCache.Configuration.Redis -{ - public class RedisConfiguration : ConfigurationSection - { - private const string EndpointsNodeName = "endpoints"; - private const string SyncTimeoutNodeName = "syncTimeout"; - - [ConfigurationProperty(EndpointsNodeName)] - public Endpoints Endpoints => (Endpoints)base[EndpointsNodeName]; - - [ConfigurationProperty(SyncTimeoutNodeName)] - public string SyncTimeout => (string)base[SyncTimeoutNodeName]; - } -} \ No newline at end of file diff --git a/DynaCache.RedisCache/Configuration/RedisConfigurationProviderService.cs b/DynaCache.RedisCache/Configuration/RedisConfigurationProviderService.cs deleted file mode 100644 index 18d3af2..0000000 --- a/DynaCache.RedisCache/Configuration/RedisConfigurationProviderService.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System.Configuration; -using System.Linq; -using DynaCache.RedisCache.Configuration.Redis; -using DynaCache.RedisCache.Internals; -using Functional.Maybe; -using NLog; -using StackExchange.Redis; - -namespace DynaCache.RedisCache.Configuration -{ - internal class RedisConfigurationProviderService : IRedisConfigurationProviderService - { - private const string RedisSectionName = "redis"; - - private static readonly ILogger logger = LogManager.GetCurrentClassLogger(); - - private readonly RedisConfiguration _redisSection; - - public RedisConfigurationProviderService() - { - _redisSection = (RedisConfiguration)ConfigurationManager.GetSection(RedisSectionName); - } - - public ConfigurationOptions GetMultiplexorOptions() - { - var res = new ConfigurationOptions(); - _redisSection.Endpoints - .Cast() - .Select(e => new {Host = e.Address, PortMaybe = e.Port.ParseMaybe(ushort.TryParse), PortRaw = e.Port}) - .ToList() - .Select(e => new {e.Host, PortMaybe = e.PortMaybe.Match(p => { }, () => logger.Error($"failed to parse {e.PortRaw} as ip port"))}) - .Where(e => e.PortMaybe.HasValue) - .ToList() - .ForEach(e => res.EndPoints.Add(e.Host, e.PortMaybe.Value)); - - _redisSection.SyncTimeout.ParseMaybe(int.TryParse).Do(t => res.SyncTimeout = t); - - return res; - } - } -} \ No newline at end of file diff --git a/DynaCache.RedisCache/DynaCache.RedisCache.csproj b/DynaCache.RedisCache/DynaCache.RedisCache.csproj deleted file mode 100644 index 9a4ddb3..0000000 --- a/DynaCache.RedisCache/DynaCache.RedisCache.csproj +++ /dev/null @@ -1,101 +0,0 @@ - - - - - Debug - AnyCPU - {1B57BF04-E33F-4DCA-AF58-B02E6EC71130} - Library - Properties - DynaCache.RedisCache - DynaCache.RedisCache - v4.5.1 - 512 - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\Functional.Maybe.1.1.0\lib\portable40-net40+win8\Functional.Maybe.dll - True - - - ..\packages\Ninject.3.2.2.0\lib\net45-full\Ninject.dll - True - - - ..\packages\NLog.4.3.1\lib\net45\NLog.dll - True - - - ..\packages\protobuf-net.2.0.0.668\lib\net40\protobuf-net.dll - True - - - ..\packages\StackExchange.Redis.1.0.488\lib\net45\StackExchange.Redis.dll - True - - - - - - - - - - - - - - - - - - - - - - - - - - - - {F4EE6A5E-A9EC-4119-A8E3-A1D270732D0D} - DynaCache - - - {3ABC04DB-454F-4543-99E3-84BF6875DA95} - NLog.Extension - - - - - Designer - - - - - \ No newline at end of file diff --git a/DynaCache.RedisCache/Internals/Extensions.cs b/DynaCache.RedisCache/Internals/Extensions.cs deleted file mode 100644 index b518c4e..0000000 --- a/DynaCache.RedisCache/Internals/Extensions.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System.Text; -using Functional.Maybe; - -namespace DynaCache.RedisCache.Internals -{ - internal static class StringBuilderExtensions - { - public static StringBuilder AppendIfNotEmpty(this StringBuilder builder, char that) - { - return builder.Length > 0 - ? builder.Append(that) - : builder; - } - } - - internal static class StringExtensions - { - public static Maybe ParseMaybe(this string that, ParseDelegate parser) - { - T res; - return parser(that, out res) - ? res.ToMaybe() - : Maybe.Nothing; - } - - internal delegate bool ParseDelegate(string val, out T res); - } -} \ No newline at end of file diff --git a/DynaCache.RedisCache/Internals/ICacheSerializer.cs b/DynaCache.RedisCache/Internals/ICacheSerializer.cs deleted file mode 100644 index b1a6dc7..0000000 --- a/DynaCache.RedisCache/Internals/ICacheSerializer.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace DynaCache.RedisCache.Internals -{ - public interface ICacheSerializer - { - string Serialize(T @object); - T Deserialize(string @object); - } -} \ No newline at end of file diff --git a/DynaCache.RedisCache/Internals/ProtobufCacheSerializer.cs b/DynaCache.RedisCache/Internals/ProtobufCacheSerializer.cs deleted file mode 100644 index c2e498a..0000000 --- a/DynaCache.RedisCache/Internals/ProtobufCacheSerializer.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System.IO; -using System.Text; -using NLog; -using NLog.Extension; -using ProtoBuf; - -namespace DynaCache.RedisCache.Internals -{ - internal class ProtobufCacheSerializer : ICacheSerializer - { - private static readonly ILogger logger = LogManager.GetCurrentClassLogger(); - - public string Serialize(T @object) - { - using (new TracingLogProxy(logger)) - using (var stream = new MemoryStream()) - { - Serializer.Serialize(stream, @object); - var bytes = stream.ToArray(); - return Encoding.Default.GetString(bytes); - } - } - - public T Deserialize(string @object) - { - using (new TracingLogProxy(logger)) - { - var bytes = Encoding.Default.GetBytes(@object.ToCharArray()); - using (var stream = new MemoryStream(bytes)) - return Serializer.Deserialize(stream); - } - } - } -} \ No newline at end of file diff --git a/DynaCache.RedisCache/Internals/RedisService.cs b/DynaCache.RedisCache/Internals/RedisService.cs deleted file mode 100644 index fe2d0c4..0000000 --- a/DynaCache.RedisCache/Internals/RedisService.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -using DynaCache.RedisCache.Configuration; -using StackExchange.Redis; - -namespace DynaCache.RedisCache.Internals -{ - public interface IRedisService - { - IDatabase Database { get; } - } - - // Should be used as a single instance only - internal class RedisService : IRedisService, IDisposable - { - private readonly ConnectionMultiplexer _multiplexer; - - public RedisService(IRedisConfigurationProviderService configurationProviderService) - { - var options = configurationProviderService.GetMultiplexorOptions(); - - _multiplexer = ConnectionMultiplexer.Connect(options); - } - - public void Dispose() - => _multiplexer.Dispose(); - - public IDatabase Database => _multiplexer.GetDatabase(); - } -} \ No newline at end of file diff --git a/DynaCache.RedisCache/Properties/AssemblyInfo.cs b/DynaCache.RedisCache/Properties/AssemblyInfo.cs deleted file mode 100644 index 85d67f7..0000000 --- a/DynaCache.RedisCache/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System.Reflection; -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("DynaCache.RedisCache")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("DynaCache.RedisCache")] -[assembly: AssemblyCopyright("Copyright © 2016")] -[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("1b57bf04-e33f-4dca-af58-b02e6ec71130")] - -// 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")] \ No newline at end of file diff --git a/DynaCache.RedisCache/RedisCacheModule.cs b/DynaCache.RedisCache/RedisCacheModule.cs deleted file mode 100644 index 807a75c..0000000 --- a/DynaCache.RedisCache/RedisCacheModule.cs +++ /dev/null @@ -1,16 +0,0 @@ -using DynaCache.RedisCache.Configuration; -using DynaCache.RedisCache.Internals; -using Ninject.Modules; - -namespace DynaCache.RedisCache -{ - public class RedisCacheModule : NinjectModule - { - public override void Load() - { - Bind().To().InSingletonScope(); - Bind().To().InSingletonScope(); - Bind().To(); - } - } -} diff --git a/DynaCache.RedisCache/RedisCacheService.cs b/DynaCache.RedisCache/RedisCacheService.cs deleted file mode 100644 index 6583885..0000000 --- a/DynaCache.RedisCache/RedisCacheService.cs +++ /dev/null @@ -1,59 +0,0 @@ -using DynaCache.RedisCache.Internals; -using NLog; -using NLog.Extension; -using System; - -namespace DynaCache.RedisCache -{ - public class RedisCacheService : IDynaCacheService - { - private static readonly ILogger logger = LogManager.GetCurrentClassLogger(); - private readonly IRedisService _redisService; - private readonly ICacheSerializer _serializer; - - public RedisCacheService(IRedisService redisService, ICacheSerializer serializer) - { - _redisService = redisService; - _serializer = serializer; - } - - public bool TryGetCachedObject(string cacheKey, out T result) - { - using (new TracingLogProxy(logger)) - { - result = default(T); - logger.Debug($"cache for {cacheKey} requested"); - var res = _redisService.Database.StringGet(cacheKey); - var notFound = res.IsNull; - if (notFound) - { - logger.Debug($"cache not found for {cacheKey}"); - return false; - } - var serialized = res.ToString(); - logger.Debug($"found cache for {cacheKey}"); - try - { - result = _serializer.Deserialize(serialized); - return true; - } - catch (Exception e) - { - logger.Error(e, $"failed to deserialize cache for {cacheKey}"); - return false; - } - } - } - - public void SetCachedObject(string cacheKey, T data, int duration) - { - using (new TracingLogProxy(logger)) - { - var expiration = TimeSpan.FromSeconds(duration); - logger.Debug($"storing cache for {cacheKey} with expiry {expiration}"); - var serialized = _serializer.Serialize(data); - _redisService.Database.StringSet(cacheKey, serialized, expiration); - } - } - } -} \ No newline at end of file diff --git a/DynaCache.RedisCache/packages.config b/DynaCache.RedisCache/packages.config deleted file mode 100644 index 2f4c0f2..0000000 --- a/DynaCache.RedisCache/packages.config +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/DynaCache.TestApp/ClassDiagram1.cd b/DynaCache.TestApp/ClassDiagram1.cd deleted file mode 100644 index 837b867..0000000 --- a/DynaCache.TestApp/ClassDiagram1.cd +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - AAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAQAAAAAAAA= - RandomService.cs - - - - - \ No newline at end of file diff --git a/DynaCache.TestApp/DynaCache.TestApp.csproj b/DynaCache.TestApp/DynaCache.TestApp.csproj deleted file mode 100644 index 8db4f0d..0000000 --- a/DynaCache.TestApp/DynaCache.TestApp.csproj +++ /dev/null @@ -1,89 +0,0 @@ - - - - Debug - x86 - 8.0.30703 - 2.0 - {04918D75-7003-4AD3-961D-9CC7466C684A} - Exe - Properties - DynaCache.TestApp - DynaCache.TestApp - v4.5.1 - - - 512 - SAK - SAK - SAK - SAK - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - - - x86 - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - - - - ..\packages\Ninject.3.2.2.0\lib\net45-full\Ninject.dll - True - - - - - - - - - - - - - - Properties\CommonAssemblyInfo.cs - - - - - - - - - - DynaCache.snk - - - - - - - {F4EE6A5E-A9EC-4119-A8E3-A1D270732D0D} - DynaCache - - - - - \ No newline at end of file diff --git a/DynaCache.TestApp/DynaCache.TestApp.csproj.vspscc b/DynaCache.TestApp/DynaCache.TestApp.csproj.vspscc deleted file mode 100644 index b6d3289..0000000 --- a/DynaCache.TestApp/DynaCache.TestApp.csproj.vspscc +++ /dev/null @@ -1,10 +0,0 @@ -"" -{ -"FILE_VERSION" = "9237" -"ENLISTMENT_CHOICE" = "NEVER" -"PROJECT_FILE_RELATIVE_PATH" = "" -"NUMBER_OF_EXCLUDED_FILES" = "0" -"ORIGINAL_PROJECT_FILE_PATH" = "" -"NUMBER_OF_NESTED_PROJECTS" = "0" -"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" -} diff --git a/DynaCache.TestApp/Program.cs b/DynaCache.TestApp/Program.cs deleted file mode 100644 index 0c2a94d..0000000 --- a/DynaCache.TestApp/Program.cs +++ /dev/null @@ -1,45 +0,0 @@ -#region Copyright 2012 Mike Goatly -// This source is subject to the the MIT License (MIT) -// All rights reserved. -#endregion - -namespace DynaCache.TestApp -{ - using System; - using System.Threading; - using Ninject; - - /// - /// A simple test application to demonstrate the use of the DynaCache library. - /// - public class Program - { - /// - /// The main application entry point. - /// - public static void Main() - { - // Using ninject to do the dependency injection - there's no reason why you shouldn't use something else though. - var kernel = new StandardKernel(); - - // Bind the IDynaCacheService to the our sample memory cache service. - kernel.Bind().To(); - - // Bind our test service interface to its _cacheable_ concrete implementation - kernel.Bind().To(Cacheable.CreateType()); - - // Use the DI container to construct our cacheable concrete instance of ITestService - var service = kernel.Get(); - - for (var i = 0; i < 12; i++) - { - // The result from the GetRandomNumber method on the service has its results cached for 1 second - // therefore the displayed results should only change every 4th iteration. - Console.WriteLine("Random number between 1 and 10: {0}", service.GetRandomNumber(1, 10)); - Console.WriteLine("Random number between 1 and 20: {0}", service.GetRandomNumber(1, 20)); - - Thread.Sleep(250); - } - } - } -} diff --git a/DynaCache.TestApp/Properties/AssemblyInfo.cs b/DynaCache.TestApp/Properties/AssemblyInfo.cs deleted file mode 100644 index 5d5ee36..0000000 --- a/DynaCache.TestApp/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,11 +0,0 @@ -#region Copyright 2012 Mike Goatly -// This source is subject to the the MIT License (MIT) -// All rights reserved. -#endregion - -using System.Reflection; -using System.Runtime.InteropServices; - -[assembly: AssemblyTitle("DynaCache.TestApp")] -[assembly: AssemblyDescription("")] -[assembly: Guid("607be8a2-fc05-44db-b138-8efbd9e78ef5")] diff --git a/DynaCache.TestApp/TestMemoryCacheService.cs b/DynaCache.TestApp/TestMemoryCacheService.cs deleted file mode 100644 index d20928e..0000000 --- a/DynaCache.TestApp/TestMemoryCacheService.cs +++ /dev/null @@ -1,67 +0,0 @@ -#region Copyright 2012 Mike Goatly -// This source is subject to the the MIT License (MIT) -// All rights reserved. -#endregion - -using System; -using System.Runtime.Caching; - -namespace DynaCache.TestApp -{ - /// - /// A sample memory cache that additionally outputs to the console window when data is stored - /// and read from the cache. - /// - public class TestMemoryCacheService : IDynaCacheService - { - /// - /// The in-memory cache. - /// - private readonly MemoryCache _cache = new MemoryCache("CacheService"); - - /// - /// Tries to get a cached object from the cache using the given cache key. - /// - /// The cache key of the object to read from the cache. - /// The object that was read from the cache, or null if the key - /// could not be found in the cache. - /// true if the item could be read from the cache, otherwise false. - public virtual bool TryGetCachedObject(string cacheKey, out T result) - { - result = default(T); - if (_cache.Contains(cacheKey)) - { - var res = _cache[cacheKey]; - if (!(res is T)) - { - Console.ForegroundColor = ConsoleColor.DarkRed; - Console.WriteLine("invalid cached data type for key {0}", cacheKey); - return false; - } - result = (T)_cache[cacheKey]; - Console.ForegroundColor = ConsoleColor.DarkGreen; - Console.WriteLine("Read {0} from cache key {1}", result, cacheKey); - Console.ResetColor(); - return true; - } - - Console.ForegroundColor = ConsoleColor.DarkRed; - Console.WriteLine("Cache miss for cache key {0}", cacheKey); - return false; - } - - /// - /// Stores an object in the cache. - /// - /// The cache key to store the object against. - /// The data to store against the key. - /// The duration, in seconds, to cache the data for. - public virtual void SetCachedObject(string cacheKey, T data, int duration) - { - Console.ForegroundColor = ConsoleColor.Green; - Console.WriteLine("Caching {0} against {1} for {2}s", data, cacheKey, duration); - Console.ResetColor(); - _cache.Add(cacheKey, data, DateTime.Now.AddSeconds(duration)); - } - } -} diff --git a/DynaCache.TestApp/app.config b/DynaCache.TestApp/app.config deleted file mode 100644 index 37fee69..0000000 --- a/DynaCache.TestApp/app.config +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/DynaCache.TestApp/packages.config b/DynaCache.TestApp/packages.config deleted file mode 100644 index e89e064..0000000 --- a/DynaCache.TestApp/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/DynaCache.Tests/App.config b/DynaCache.Tests/App.config deleted file mode 100644 index 2013b6f..0000000 --- a/DynaCache.Tests/App.config +++ /dev/null @@ -1,13 +0,0 @@ - - - -
- - - - - - - - - diff --git a/DynaCache.Tests/AspNetCacheServiceTests.cs b/DynaCache.Tests/AspNetCacheServiceTests.cs deleted file mode 100644 index c7bd4f8..0000000 --- a/DynaCache.Tests/AspNetCacheServiceTests.cs +++ /dev/null @@ -1,67 +0,0 @@ -#region Copyright 2012 Mike Goatly -// This source is subject to the the MIT License (MIT) -// All rights reserved. -#endregion - -namespace DynaCache.Tests -{ - using System.Threading; - - using AspNetCache; - - using Microsoft.VisualStudio.TestTools.UnitTesting; - - /// - /// Tests for the MemoryCacheService class. - /// - [TestClass] - public class AspNetCacheServiceTests - { - /// - /// If an item is not in the cache when TryGetCachedObject is called, false should be returned. - /// - [TestMethod] - public void ShouldReturnFalseIfItemNotInCache() - { - var cache = new AspNetCacheService(); - - object result; - Assert.IsFalse(cache.TryGetCachedObject("key1", out result)); - Assert.IsNull(result); - } - - /// - /// If an item is in the cache when TryGetCachedObject is called, true should be returned - /// and the result parameter should be set. - /// - [TestMethod] - public void ShouldReturnTrueIfItemInCache() - { - var cache = new AspNetCacheService(); - - cache.SetCachedObject("key2", "Boom", 1); - - object result; - Assert.IsTrue(cache.TryGetCachedObject("key2", out result)); - Assert.AreEqual("Boom", result); - } - - /// - /// If an item is not in the cache when TryGetCachedObject is called because it has expired, false should be - /// returned. - /// - [TestMethod] - public void ShouldReturnFalseIfItemInCacheExpired() - { - var cache = new AspNetCacheService(); - - cache.SetCachedObject("key3", "Boom", 1); - - Thread.Sleep(1200); - - object result; - Assert.IsFalse(cache.TryGetCachedObject("key3", out result)); - Assert.IsNull(result); - } - } -} diff --git a/DynaCache.Tests/CallingCachedMethod.cs b/DynaCache.Tests/CallingCachedMethod.cs deleted file mode 100644 index 998ce8c..0000000 --- a/DynaCache.Tests/CallingCachedMethod.cs +++ /dev/null @@ -1,196 +0,0 @@ -#region Copyright 2012 Mike Goatly -// This source is subject to the the MIT License (MIT) -// All rights reserved. -#endregion - -using DynaCache.MemoryCache; -using System.Linq; -using NSubstitute; - -namespace DynaCache.Tests -{ - using System; - - using TestClasses; - - using Microsoft.VisualStudio.TestTools.UnitTesting; - - using Moq; - using System.Diagnostics; - using System.Reflection; - - /// - /// The calling cached method. - /// - [TestClass] - public class CallingCachedMethod - { - /// - /// Named cache durations should be used successfully. - /// - [TestMethod] - public void ShouldReadCorrectConfigurationFromNamedCacheDurations() - { - const string keyNameA = "DynaCache.Tests.TestClasses.NamedCacheableMethodTester_System.String[] Execute(System.String).Hello world"; - const string keyNameB = "DynaCache.Tests.TestClasses.NamedCacheableMethodTester_Int32 Execute(System.DateTime).2014-11-01T00:00:00.0000000"; - - var cacheService = Substitute.For(); - var cacheableType = Cacheable.CreateType(); - - var instance = (ICacheableMethodsTester)Activator.CreateInstance(cacheableType, cacheService); - - string[] resultA; - int resultB; - cacheService.TryGetCachedObject(keyNameA, out resultA).Returns(false); - cacheService.TryGetCachedObject(keyNameB, out resultB).Returns(false); - - var responseA = instance.Execute("Hello world"); - cacheService.Received(1).TryGetCachedObject(keyNameA, out resultA); - cacheService.Received(1).SetCachedObject(keyNameA, responseA, 1); - var responseB = instance.Execute(new DateTime(2014, 11, 1)); - cacheService.Received(1).TryGetCachedObject(keyNameB, out resultB); - cacheService.Received(1).SetCachedObject(keyNameB, responseB, 60); - } - - /// - /// The first time a method is called, the cache will not contain the key and - /// the base method should be called - the result of which should be cached. - /// - [TestMethod] - public void ShouldWriteToCacheServiceOnFirstCall() - { - const string keyName = "DynaCache.Tests.TestClasses.OneCacheableMethodTester_System.String[] Execute(System.String).Hello world"; - - var cacheService = Substitute.For(); - var cacheableType = Cacheable.CreateType(); - - var instance = (ICacheableMethodsTester)Activator.CreateInstance(cacheableType, cacheService); - - object result; - cacheService.TryGetCachedObject(keyName, out result).Returns(false); - - var response = instance.Execute("Hello world"); - - cacheService.Received(1).TryGetCachedObject(keyName, out result); - cacheService.Received(1).SetCachedObject(keyName, response, 100); - } - - /// - /// Verifies that a key is created successfully for a method on a generic class. - /// - [TestMethod] - public void ShouldReadWithCorrectKeyForGenericClass() - { - const string keyName = "DynaCache.Tests.TestClasses.GenericTester`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]_System.String Convert(Int32).199"; - - var cacheService = Substitute.For(); - var cacheableType = Cacheable.CreateType>(); - - var instance = (IGenericTester)Activator.CreateInstance(cacheableType, cacheService); - - string result; - cacheService.TryGetCachedObject(keyName, out result).Returns(true); - - instance.Convert(199); - - cacheService.Received(1).TryGetCachedObject(keyName, out result); - cacheService.DidNotReceive().SetCachedObject(keyName, Arg.Any(), Arg.Any()); - } - - /// - /// Verifies that the constructor is created correctly on a generic class. - /// - [TestMethod] - public void ShouldPassConstructorParameter() - { - var cacheService = Substitute.For(); - var cacheableType = Cacheable.CreateType(); - const string value = "I am the param"; - var instance = (ConstructorTester)Activator.CreateInstance(cacheableType, cacheService, value); - - Assert.AreEqual(value, instance.GetParam()); - } - - /// - /// This test documents the fact that the constructor parameter name is preserved. - /// - [TestMethod] - public void WillPreserveConstructorParameterName() - { - Func lastParam = t => t.GetConstructors().Last().GetParameters().Last(); - var cacheService = Substitute.For(); - var cacheableType = Cacheable.CreateType(); - Assert.AreEqual(lastParam(typeof(ConstructorTester)).Name, lastParam(cacheableType).Name); - } - - /// - /// Parameters passed by reference are not supported and an exception should be thrown. - /// - [TestMethod, ExpectedException(typeof(DynaCacheException))] - public void ShouldThrowExceptionForMethodWithReferenceParameters() - { - Cacheable.CreateType(); - } - - /// - /// Nullable parameters should be handled correctly. - /// - [TestMethod] - public void ShouldCreateValidProxyForNullableParameter() - { - var cacheService = new Mock(); - var cacheableType = Cacheable.CreateType(); - - var instance = (INullableReturnTypeMethod)Activator.CreateInstance(cacheableType, cacheService.Object); - - var result = instance.ReturnsNullable(6); - - Assert.AreEqual(6, result); - } - - - /// - /// ToStringable parameters should be handled correctly. - /// - [TestMethod] - public void ShouldCreateValidProxyForToStringableParameter() - { - const string testString1 = "TestString1"; - const string testString2 = "TestString2"; - var cacheService = new Mock(); - var cacheableType = Cacheable.CreateType(); - - var instance = (ToStringableTester)Activator.CreateInstance(cacheableType, cacheService.Object); - - var result = instance.GetToStringableValue(new ToStringableObject { Value = testString1 }); - - Assert.AreEqual(testString1, result); - - result = instance.GetToStringableValue(new ToStringableObject { Value = testString2 }); - - Assert.AreEqual(testString2, result); - } - - /// - /// Enum parameters should be handled correctly. - /// - [TestMethod] - public void ShouldCreateValidProxyForEnumParameter() - { - const TestEnum testEnum1 = TestEnum.FirstValue; - const TestEnum testEnum2 = TestEnum.SecondValue; - var cacheService = new Mock(); - var cacheableType = Cacheable.CreateType(); - - var instance = (EnumTester)Activator.CreateInstance(cacheableType, cacheService.Object); - - var result = instance.GetEnumValue(testEnum1); - - Assert.AreEqual(testEnum1.ToString(), result); - - result = instance.GetEnumValue(testEnum2); - - Assert.AreEqual(testEnum2.ToString(), result); - } - } -} \ No newline at end of file diff --git a/DynaCache.Tests/CreatingCacheableProxyType.cs b/DynaCache.Tests/CreatingCacheableProxyType.cs deleted file mode 100644 index 52eac9c..0000000 --- a/DynaCache.Tests/CreatingCacheableProxyType.cs +++ /dev/null @@ -1,61 +0,0 @@ -#region Copyright 2012 Mike Goatly -// This source is subject to the the MIT License (MIT) -// All rights reserved. -#endregion - -namespace DynaCache.Tests -{ - using System; - using TestClasses; - using Microsoft.VisualStudio.TestTools.UnitTesting; - - /// - /// Tests for creating a cacheable proxy type. - /// - [TestClass] - public class CreatingCacheableProxyType - { - /// - /// The proxy generator should the return same type as the input type if it has no - /// methods that are marked as cacheable. - /// - [TestMethod] - public void ShouldReturnSameTypeIfNoMethodsMarkedAsCacheable() - { - var cacheableType = Cacheable.CreateType(); - - Assert.AreSame(typeof(NoCacheableMethodsTester), cacheableType); - } - - /// - /// The proxy generator should return a proxy type if only one method on the input - /// type is marked as cacheable. - /// - [TestMethod] - public void ShouldReturnProxyIfOneMethodMarkedAsCacheable() - { - var cacheableType = Cacheable.CreateType(); - - Assert.AreNotSame(typeof(OneCacheableMethodTester), cacheableType); - - Assert.AreSame(typeof(OneCacheableMethodTester), cacheableType.GetMethod("Execute", Type.EmptyTypes).DeclaringType); - Assert.AreSame(typeof(OneCacheableMethodTester), cacheableType.GetMethod("Execute", new[] { typeof(DateTime) }).DeclaringType); - Assert.AreSame(cacheableType, cacheableType.GetMethod("Execute", new[] { typeof(string) }).DeclaringType); - Assert.AreSame(typeof(OneCacheableMethodTester), cacheableType.GetMethod("Execute", new[] { typeof(int), typeof(object) }).DeclaringType); - } - - /// - /// The proxy generator should not generate duplicate proxies for a type - if - /// a proxy is requested for a type that a proxy has already been generated for, - /// then the first type should be returned. - /// - [TestMethod] - public void ShouldReturnSameProxySameTypeRequestedMutipleTimes() - { - var cacheableType1 = Cacheable.CreateType(); - var cacheableType2 = Cacheable.CreateType(); - - Assert.AreSame(cacheableType1, cacheableType2); - } - } -} diff --git a/DynaCache.Tests/CustomConvertersTest.cs b/DynaCache.Tests/CustomConvertersTest.cs deleted file mode 100644 index 6cc0d85..0000000 --- a/DynaCache.Tests/CustomConvertersTest.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using DynaCache.Tests.TestClasses; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Moq; - -namespace DynaCache.Tests -{ - [TestClass] - public class CustomConvertersTest - { - [TestMethod] - public void ShouldUseSimpleCustomConverter() - { - Func converter = e => e.Message; - - Cacheable.AddCustomConverter(converter); - - const string testString1 = "TestString1"; - const string testString2 = "TestString2"; - var cacheService = new Mock(); - var cacheableType = Cacheable.CreateType(); - - var instance = (BasicCustomConverterTester)Activator.CreateInstance(cacheableType, cacheService.Object); - - var result = instance.GetMessage(new Exception(testString1)); - - Assert.AreEqual(testString1, result); - - result = instance.GetMessage(new Exception(testString2)); - - Assert.AreEqual(testString2, result); - } - } -} diff --git a/DynaCache.Tests/DynaCache.Tests.csproj b/DynaCache.Tests/DynaCache.Tests.csproj deleted file mode 100644 index ca5e7a3..0000000 --- a/DynaCache.Tests/DynaCache.Tests.csproj +++ /dev/null @@ -1,121 +0,0 @@ - - - - Debug - AnyCPU - - - 2.0 - {A6480115-F526-44BA-BCAF-0223C3425B1F} - Library - Properties - DynaCache.Tests - DynaCache.Tests - v4.5.1 - 512 - {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - SAK - SAK - SAK - SAK - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - - - - ..\packages\Castle.Core.3.3.3\lib\net45\Castle.Core.dll - True - - - - ..\packages\Moq.4.5.22\lib\net45\Moq.dll - True - - - ..\packages\NSubstitute.1.10.0.0\lib\net45\NSubstitute.dll - True - - - - - 3.5 - - - - - False - - - - - Properties\CommonAssemblyInfo.cs - - - - - - - - - - - - - - - - - - - - - - - - - {a3c28bda-fd00-41f6-973d-2f86e3ba8c7b} - DynaCache.AspNetCache - - - {37A75E49-01D3-4AC5-BAB9-CE31EA518859} - DynaCache.MemoryCache - - - {f4ee6a5e-a9ec-4119-a8e3-a1d270732d0d} - DynaCache - - - - - DynaCache.snk - - - - - - - \ No newline at end of file diff --git a/DynaCache.Tests/DynaCache.Tests.csproj.vspscc b/DynaCache.Tests/DynaCache.Tests.csproj.vspscc deleted file mode 100644 index b6d3289..0000000 --- a/DynaCache.Tests/DynaCache.Tests.csproj.vspscc +++ /dev/null @@ -1,10 +0,0 @@ -"" -{ -"FILE_VERSION" = "9237" -"ENLISTMENT_CHOICE" = "NEVER" -"PROJECT_FILE_RELATIVE_PATH" = "" -"NUMBER_OF_EXCLUDED_FILES" = "0" -"ORIGINAL_PROJECT_FILE_PATH" = "" -"NUMBER_OF_NESTED_PROJECTS" = "0" -"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" -} diff --git a/DynaCache.Tests/MemoryCacheServiceTests.cs b/DynaCache.Tests/MemoryCacheServiceTests.cs deleted file mode 100644 index a521e7c..0000000 --- a/DynaCache.Tests/MemoryCacheServiceTests.cs +++ /dev/null @@ -1,81 +0,0 @@ -#region Copyright 2012 Mike Goatly -// This source is subject to the the MIT License (MIT) -// All rights reserved. -#endregion - -using DynaCache.MemoryCache; - -namespace DynaCache.Tests -{ - using Microsoft.VisualStudio.TestTools.UnitTesting; - using System.Threading; - - /// - /// Tests for the MemoryCacheService class. - /// - [TestClass] - public class MemoryCacheServiceTests - { - /// - /// If an item is not in the cache when TryGetCachedObject is called, false should be returned. - /// - [TestMethod] - public void ShouldReturnFalseIfItemNotInCache() - { - var cache = new MemoryCacheService(); - - object result; - Assert.IsFalse(cache.TryGetCachedObject("key1", out result)); - Assert.IsNull(result); - } - - /// - /// If an item is in the cache when TryGetCachedObject is called, true should be returned - /// and the result parameter should be set. - /// - [TestMethod] - public void ShouldReturnTrueIfItemInCache() - { - var cache = new MemoryCacheService(); - - cache.SetCachedObject("key2", "Boom", 1); - - object result; - Assert.IsTrue(cache.TryGetCachedObject("key2", out result)); - Assert.AreEqual("Boom", result); - } - - /// - /// If an item is not in the cache when TryGetCachedObject is called because it has expired, false should be - /// returned. - /// - [TestMethod] - public void ShouldReturnFalseIfItemInCacheExpired() - { - var cache = new MemoryCacheService(); - - cache.SetCachedObject("key3", "Boom", 1); - - Thread.Sleep(1200); - - object result; - Assert.IsFalse(cache.TryGetCachedObject("key3", out result)); - Assert.IsNull(result); - } - - /// - /// The memory cache should successfully cache null values. - /// - [TestMethod] - public void ShouldCacheNullValues() - { - var cache = new MemoryCacheService(); - - cache.SetCachedObject("key3", null, 1); - - object result; - Assert.IsTrue(cache.TryGetCachedObject("key3", out result)); - Assert.IsNull(result); - } - } -} diff --git a/DynaCache.Tests/Properties/AssemblyInfo.cs b/DynaCache.Tests/Properties/AssemblyInfo.cs deleted file mode 100644 index 2dbbe29..0000000 --- a/DynaCache.Tests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,11 +0,0 @@ -#region Copyright 2012 Mike Goatly -// This source is subject to the the MIT License (MIT) -// All rights reserved. -#endregion - -using System.Reflection; -using System.Runtime.InteropServices; - -[assembly: AssemblyTitle("DynaCache.Tests")] -[assembly: AssemblyDescription("")] -[assembly: Guid("c1e000ca-8275-4e66-8f99-bbc3882ca393")] diff --git a/DynaCache.Tests/TestClasses/BasicCustomConverterTester.cs b/DynaCache.Tests/TestClasses/BasicCustomConverterTester.cs deleted file mode 100644 index e65b930..0000000 --- a/DynaCache.Tests/TestClasses/BasicCustomConverterTester.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; - -namespace DynaCache.Tests.TestClasses -{ - public class BasicCustomConverterTester - { - [CacheableMethod(180)] - public string GetMessage(Exception e) - { - return e.Message; - } - } -} diff --git a/DynaCache.Tests/TestClasses/ConstructorTester.cs b/DynaCache.Tests/TestClasses/ConstructorTester.cs deleted file mode 100644 index 896deb2..0000000 --- a/DynaCache.Tests/TestClasses/ConstructorTester.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace DynaCache.Tests.TestClasses -{ - /// - /// A test class that is used in unit tests to verify that DynaCache works correctly with - /// classes with constructor - /// - public class ConstructorTester - { - private readonly string _param; - public ConstructorTester(string param) - { - _param = param; - } - - [CacheableMethod(200)] - public virtual string GetParam() => _param; - } -} diff --git a/DynaCache.Tests/TestClasses/EnumTester.cs b/DynaCache.Tests/TestClasses/EnumTester.cs deleted file mode 100644 index 1bab94f..0000000 --- a/DynaCache.Tests/TestClasses/EnumTester.cs +++ /dev/null @@ -1,18 +0,0 @@ - -namespace DynaCache.Tests.TestClasses -{ - public class EnumTester - { - [CacheableMethod(200)] - public virtual string GetEnumValue(TestEnum obj) - { - return obj.ToString(); - } - } - - public enum TestEnum - { - FirstValue, - SecondValue - } -} diff --git a/DynaCache.Tests/TestClasses/GenericTester.cs b/DynaCache.Tests/TestClasses/GenericTester.cs deleted file mode 100644 index 800283f..0000000 --- a/DynaCache.Tests/TestClasses/GenericTester.cs +++ /dev/null @@ -1,33 +0,0 @@ -namespace DynaCache.Tests.TestClasses -{ - /// - /// A test class that is used in unit tests to verify that DynaCache works correctly with - /// generic methods and classes. - /// - /// The type of the data. - public class GenericTester : IGenericTester - { - /// - /// Converts the specified data to a string representation. - /// - /// The data to convert. - /// The converted data. - [CacheableMethod(200)] - public virtual string Convert(TData data) - { - return data.ToString(); - } - - /// - /// Tests the specified input. - /// - /// The type of parameter - /// The input data. - /// The result. - [CacheableMethod(300)] - public virtual T Test(T input) - { - return input; - } - } -} \ No newline at end of file diff --git a/DynaCache.Tests/TestClasses/ICacheableMethodsTester.cs b/DynaCache.Tests/TestClasses/ICacheableMethodsTester.cs deleted file mode 100644 index 8aaa15f..0000000 --- a/DynaCache.Tests/TestClasses/ICacheableMethodsTester.cs +++ /dev/null @@ -1,24 +0,0 @@ -#region Copyright 2012 Mike Goatly -// This source is subject to the the MIT License (MIT) -// All rights reserved. -#endregion - -namespace DynaCache.Tests.TestClasses -{ - using System; - using System.Collections.Generic; - - /// - /// An interface that is implemented by various test classes. - /// - public interface ICacheableMethodsTester - { - void Execute(); - - int Execute(DateTime data); - - string[] Execute(string data); - - List Execute(int data1, object data2); - } -} \ No newline at end of file diff --git a/DynaCache.Tests/TestClasses/IGenericTester.cs b/DynaCache.Tests/TestClasses/IGenericTester.cs deleted file mode 100644 index 2b727ea..0000000 --- a/DynaCache.Tests/TestClasses/IGenericTester.cs +++ /dev/null @@ -1,25 +0,0 @@ -namespace DynaCache.Tests.TestClasses -{ - /// - /// A test interface that is used in unit tests to verify that DynaCache works correctly with - /// generic methods and classes. - /// - /// The type of the data. - public interface IGenericTester - { - /// - /// Converts the specified data to a string representation. - /// - /// The data to convert. - /// The converted data. - string Convert(TData data); - - /// - /// Tests the specified input. - /// - /// The type of parameter - /// The input data. - /// The result. - T Test(T input); - } -} diff --git a/DynaCache.Tests/TestClasses/INullableReturnTypeMethod.cs b/DynaCache.Tests/TestClasses/INullableReturnTypeMethod.cs deleted file mode 100644 index da53da1..0000000 --- a/DynaCache.Tests/TestClasses/INullableReturnTypeMethod.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace DynaCache.Tests.TestClasses -{ - public interface INullableReturnTypeMethod - { - int? ReturnsNullable(int? data); - } -} \ No newline at end of file diff --git a/DynaCache.Tests/TestClasses/IRefModifierTester.cs b/DynaCache.Tests/TestClasses/IRefModifierTester.cs deleted file mode 100644 index bc3ee65..0000000 --- a/DynaCache.Tests/TestClasses/IRefModifierTester.cs +++ /dev/null @@ -1,33 +0,0 @@ -#region Copyright 2012 Mike Goatly -// This source is subject to the the MIT License (MIT) -// All rights reserved. -#endregion - -namespace DynaCache.Tests.TestClasses -{ - using System; - - /// - /// A test interface that is used in unit tests to verify that DynaCache works correctly with - /// methods that have ref and out parameters. - /// - [CLSCompliant(false)] - public interface IRefModifierTester - { - /// - /// Does something with the data, returning the result. - /// - /// The data to convert. - /// The converted data. - int DoSomething(int data); - - /// - /// Tests the specified input. - /// - /// The data to convert. - /// - /// The converted data. - /// - int DoSomething(ref int data); - } -} diff --git a/DynaCache.Tests/TestClasses/NamedCacheableMethodTester.cs b/DynaCache.Tests/TestClasses/NamedCacheableMethodTester.cs deleted file mode 100644 index f4834c2..0000000 --- a/DynaCache.Tests/TestClasses/NamedCacheableMethodTester.cs +++ /dev/null @@ -1,37 +0,0 @@ -#region Copyright 2012 Mike Goatly -// This source is subject to the the MIT License (MIT) -// All rights reserved. -#endregion - -namespace DynaCache.Tests.TestClasses -{ - using System; - using System.Collections.Generic; - - /// - /// A test class that uses named cache durations. - /// - public class NamedCacheableMethodTester : ICacheableMethodsTester - { - public void Execute() - { - } - - [CacheableMethod("long")] - public virtual int Execute(DateTime data) - { - return 11; - } - - [CacheableMethod("short")] - public virtual string[] Execute(string data) - { - return new[] { data }; - } - - public List Execute(int data1, object data2) - { - return new List { data1.ToString(), data2.ToString() }; - } - } -} \ No newline at end of file diff --git a/DynaCache.Tests/TestClasses/NoCacheableMethodsTester.cs b/DynaCache.Tests/TestClasses/NoCacheableMethodsTester.cs deleted file mode 100644 index 090d7ae..0000000 --- a/DynaCache.Tests/TestClasses/NoCacheableMethodsTester.cs +++ /dev/null @@ -1,35 +0,0 @@ -#region Copyright 2012 Mike Goatly -// This source is subject to the the MIT License (MIT) -// All rights reserved. -#endregion - -namespace DynaCache.Tests.TestClasses -{ - using System; - using System.Collections.Generic; - - /// - /// A test class that has no cacheable methods defined within it. - /// - public class NoCacheableMethodsTester : ICacheableMethodsTester - { - public void Execute() - { - } - - public int Execute(DateTime data) - { - return 11; - } - - public string[] Execute(string data) - { - return new[] { data }; - } - - public List Execute(int data1, object data2) - { - return new List { data1.ToString(), data2.ToString() }; - } - } -} \ No newline at end of file diff --git a/DynaCache.Tests/TestClasses/NullableReturnTypeMethod.cs b/DynaCache.Tests/TestClasses/NullableReturnTypeMethod.cs deleted file mode 100644 index c09e0da..0000000 --- a/DynaCache.Tests/TestClasses/NullableReturnTypeMethod.cs +++ /dev/null @@ -1,11 +0,0 @@ -namespace DynaCache.Tests.TestClasses -{ - public class NullableReturnTypeMethod : INullableReturnTypeMethod - { - [CacheableMethod(5)] - public virtual int? ReturnsNullable(int? data) - { - return data; - } - } -} diff --git a/DynaCache.Tests/TestClasses/OneCacheableMethodTester.cs b/DynaCache.Tests/TestClasses/OneCacheableMethodTester.cs deleted file mode 100644 index 115679b..0000000 --- a/DynaCache.Tests/TestClasses/OneCacheableMethodTester.cs +++ /dev/null @@ -1,36 +0,0 @@ -#region Copyright 2012 Mike Goatly -// This source is subject to the the MIT License (MIT) -// All rights reserved. -#endregion - -namespace DynaCache.Tests.TestClasses -{ - using System; - using System.Collections.Generic; - - /// - /// A test class that implements only one method that is cacheable. - /// - public class OneCacheableMethodTester : ICacheableMethodsTester - { - public void Execute() - { - } - - public int Execute(DateTime data) - { - return 11; - } - - [CacheableMethod(100)] - public virtual string[] Execute(string data) - { - return new[] { data }; - } - - public List Execute(int data1, object data2) - { - return new List { data1.ToString(), data2.ToString() }; - } - } -} \ No newline at end of file diff --git a/DynaCache.Tests/TestClasses/RefModifierTester.cs b/DynaCache.Tests/TestClasses/RefModifierTester.cs deleted file mode 100644 index d9de67b..0000000 --- a/DynaCache.Tests/TestClasses/RefModifierTester.cs +++ /dev/null @@ -1,43 +0,0 @@ -#region Copyright 2012 Mike Goatly -// This source is subject to the the MIT License (MIT) -// All rights reserved. -#endregion - -namespace DynaCache.Tests.TestClasses -{ - using System; - - /// - /// A test class that is used in unit tests to verify that DynaCache works correctly with - /// methods that have ref and out parameters. - /// - [CLSCompliant(false)] - public class RefModifierTester : IRefModifierTester - { - /// - /// Does something with the data, returning the result. - /// - /// The data to convert. - /// The converted data. - [CacheableMethod(200)] - public virtual int DoSomething(int data) - { - return data * 20; - } - - /// - /// Tests the specified input. - /// - /// The data to convert. - /// - /// The converted data. - /// - [CacheableMethod(300)] - public virtual int DoSomething(ref int data) - { - var result = data * 5; - data *= 2; - return result; - } - } -} \ No newline at end of file diff --git a/DynaCache.Tests/TestClasses/ToStringableTester.cs b/DynaCache.Tests/TestClasses/ToStringableTester.cs deleted file mode 100644 index d07e284..0000000 --- a/DynaCache.Tests/TestClasses/ToStringableTester.cs +++ /dev/null @@ -1,23 +0,0 @@ - -namespace DynaCache.Tests.TestClasses -{ - public class ToStringableTester - { - [CacheableMethod(200)] - public virtual string GetToStringableValue(ToStringableObject obj) - { - return obj.Value; - } - } - - [ToStringable] - public class ToStringableObject - { - public string Value { get; set; } - - public override string ToString() - { - return Value; - } - } -} diff --git a/DynaCache.Tests/packages.config b/DynaCache.Tests/packages.config deleted file mode 100644 index 70c7ed0..0000000 --- a/DynaCache.Tests/packages.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/DynaCache.sln b/DynaCache.sln index 3d9b0a8..038eaf8 100644 --- a/DynaCache.sln +++ b/DynaCache.sln @@ -3,22 +3,12 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25123.0 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynaCache", "DynaCache\DynaCache.csproj", "{F4EE6A5E-A9EC-4119-A8E3-A1D270732D0D}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynaCache.Tests", "DynaCache.Tests\DynaCache.Tests.csproj", "{A6480115-F526-44BA-BCAF-0223C3425B1F}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{CFD56E6D-D552-42E2-9E9A-2C467B9FDE62}" ProjectSection(SolutionItems) = preProject CommonAssemblyInfo.cs = CommonAssemblyInfo.cs DynaCache.snk = DynaCache.snk EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynaCache.TestApp", "DynaCache.TestApp\DynaCache.TestApp.csproj", "{04918D75-7003-4AD3-961D-9CC7466C684A}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynaCache.MemoryCache", "DynaCache.MemoryCache\DynaCache.MemoryCache.csproj", "{37A75E49-01D3-4AC5-BAB9-CE31EA518859}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynaCache.AspNetCache", "DynaCache.AspNetCache\DynaCache.AspNetCache.csproj", "{A3C28BDA-FD00-41F6-973D-2F86E3BA8C7B}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Nuget", "Nuget", "{B2CEDB6F-E6A3-41DC-8AD4-F794E3AAA911}" ProjectSection(SolutionItems) = preProject Nuget\PackageContents\DynaCache.nuspec = Nuget\PackageContents\DynaCache.nuspec @@ -27,11 +17,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Nuget", "Nuget", "{B2CEDB6F Nuget\PackageContents\Revison history.txt = Nuget\PackageContents\Revison history.txt EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynaCache.MultilevelCache", "DynaCache.MultilevelCache\DynaCache.MultilevelCache.csproj", "{F603301D-977A-4BA2-8B09-70F2B645A12E}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynaCache.Core", "DynaCache.Core\DynaCache.Core.csproj", "{E645744C-1142-47C3-B5C1-644719E34FB1}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynaCache.RedisCache", "DynaCache.RedisCache\DynaCache.RedisCache.csproj", "{1B57BF04-E33F-4DCA-AF58-B02E6EC71130}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynaCache.Core.MemoryCache", "DynaCache.Core.MemoryCache\DynaCache.Core.MemoryCache.csproj", "{71764F40-FBC1-4FD5-8BA9-757BBAF08F3D}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NLog.Extension", "NLog.Extension\NLog.Extension.csproj", "{3ABC04DB-454F-4543-99E3-84BF6875DA95}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynaCache.Core.TestApp", "DynaCache.Core.TestApp\DynaCache.Core.TestApp.csproj", "{92312062-F98E-49B1-BC76-919F0EC2C9BA}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -43,92 +33,42 @@ Global Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {F4EE6A5E-A9EC-4119-A8E3-A1D270732D0D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F4EE6A5E-A9EC-4119-A8E3-A1D270732D0D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F4EE6A5E-A9EC-4119-A8E3-A1D270732D0D}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {F4EE6A5E-A9EC-4119-A8E3-A1D270732D0D}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {F4EE6A5E-A9EC-4119-A8E3-A1D270732D0D}.Debug|x86.ActiveCfg = Debug|Any CPU - {F4EE6A5E-A9EC-4119-A8E3-A1D270732D0D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F4EE6A5E-A9EC-4119-A8E3-A1D270732D0D}.Release|Any CPU.Build.0 = Release|Any CPU - {F4EE6A5E-A9EC-4119-A8E3-A1D270732D0D}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {F4EE6A5E-A9EC-4119-A8E3-A1D270732D0D}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {F4EE6A5E-A9EC-4119-A8E3-A1D270732D0D}.Release|x86.ActiveCfg = Release|Any CPU - {A6480115-F526-44BA-BCAF-0223C3425B1F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A6480115-F526-44BA-BCAF-0223C3425B1F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A6480115-F526-44BA-BCAF-0223C3425B1F}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {A6480115-F526-44BA-BCAF-0223C3425B1F}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {A6480115-F526-44BA-BCAF-0223C3425B1F}.Debug|x86.ActiveCfg = Debug|Any CPU - {A6480115-F526-44BA-BCAF-0223C3425B1F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A6480115-F526-44BA-BCAF-0223C3425B1F}.Release|Any CPU.Build.0 = Release|Any CPU - {A6480115-F526-44BA-BCAF-0223C3425B1F}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {A6480115-F526-44BA-BCAF-0223C3425B1F}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {A6480115-F526-44BA-BCAF-0223C3425B1F}.Release|x86.ActiveCfg = Release|Any CPU - {04918D75-7003-4AD3-961D-9CC7466C684A}.Debug|Any CPU.ActiveCfg = Debug|x86 - {04918D75-7003-4AD3-961D-9CC7466C684A}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 - {04918D75-7003-4AD3-961D-9CC7466C684A}.Debug|Mixed Platforms.Build.0 = Debug|x86 - {04918D75-7003-4AD3-961D-9CC7466C684A}.Debug|x86.ActiveCfg = Debug|x86 - {04918D75-7003-4AD3-961D-9CC7466C684A}.Debug|x86.Build.0 = Debug|x86 - {04918D75-7003-4AD3-961D-9CC7466C684A}.Release|Any CPU.ActiveCfg = Release|x86 - {04918D75-7003-4AD3-961D-9CC7466C684A}.Release|Mixed Platforms.ActiveCfg = Release|x86 - {04918D75-7003-4AD3-961D-9CC7466C684A}.Release|Mixed Platforms.Build.0 = Release|x86 - {04918D75-7003-4AD3-961D-9CC7466C684A}.Release|x86.ActiveCfg = Release|x86 - {04918D75-7003-4AD3-961D-9CC7466C684A}.Release|x86.Build.0 = Release|x86 - {37A75E49-01D3-4AC5-BAB9-CE31EA518859}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {37A75E49-01D3-4AC5-BAB9-CE31EA518859}.Debug|Any CPU.Build.0 = Debug|Any CPU - {37A75E49-01D3-4AC5-BAB9-CE31EA518859}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {37A75E49-01D3-4AC5-BAB9-CE31EA518859}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {37A75E49-01D3-4AC5-BAB9-CE31EA518859}.Debug|x86.ActiveCfg = Debug|Any CPU - {37A75E49-01D3-4AC5-BAB9-CE31EA518859}.Release|Any CPU.ActiveCfg = Release|Any CPU - {37A75E49-01D3-4AC5-BAB9-CE31EA518859}.Release|Any CPU.Build.0 = Release|Any CPU - {37A75E49-01D3-4AC5-BAB9-CE31EA518859}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {37A75E49-01D3-4AC5-BAB9-CE31EA518859}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {37A75E49-01D3-4AC5-BAB9-CE31EA518859}.Release|x86.ActiveCfg = Release|Any CPU - {A3C28BDA-FD00-41F6-973D-2F86E3BA8C7B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A3C28BDA-FD00-41F6-973D-2F86E3BA8C7B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A3C28BDA-FD00-41F6-973D-2F86E3BA8C7B}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {A3C28BDA-FD00-41F6-973D-2F86E3BA8C7B}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {A3C28BDA-FD00-41F6-973D-2F86E3BA8C7B}.Debug|x86.ActiveCfg = Debug|Any CPU - {A3C28BDA-FD00-41F6-973D-2F86E3BA8C7B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A3C28BDA-FD00-41F6-973D-2F86E3BA8C7B}.Release|Any CPU.Build.0 = Release|Any CPU - {A3C28BDA-FD00-41F6-973D-2F86E3BA8C7B}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {A3C28BDA-FD00-41F6-973D-2F86E3BA8C7B}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {A3C28BDA-FD00-41F6-973D-2F86E3BA8C7B}.Release|x86.ActiveCfg = Release|Any CPU - {F603301D-977A-4BA2-8B09-70F2B645A12E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F603301D-977A-4BA2-8B09-70F2B645A12E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F603301D-977A-4BA2-8B09-70F2B645A12E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {F603301D-977A-4BA2-8B09-70F2B645A12E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {F603301D-977A-4BA2-8B09-70F2B645A12E}.Debug|x86.ActiveCfg = Debug|Any CPU - {F603301D-977A-4BA2-8B09-70F2B645A12E}.Debug|x86.Build.0 = Debug|Any CPU - {F603301D-977A-4BA2-8B09-70F2B645A12E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F603301D-977A-4BA2-8B09-70F2B645A12E}.Release|Any CPU.Build.0 = Release|Any CPU - {F603301D-977A-4BA2-8B09-70F2B645A12E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {F603301D-977A-4BA2-8B09-70F2B645A12E}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {F603301D-977A-4BA2-8B09-70F2B645A12E}.Release|x86.ActiveCfg = Release|Any CPU - {F603301D-977A-4BA2-8B09-70F2B645A12E}.Release|x86.Build.0 = Release|Any CPU - {1B57BF04-E33F-4DCA-AF58-B02E6EC71130}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1B57BF04-E33F-4DCA-AF58-B02E6EC71130}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1B57BF04-E33F-4DCA-AF58-B02E6EC71130}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {1B57BF04-E33F-4DCA-AF58-B02E6EC71130}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {1B57BF04-E33F-4DCA-AF58-B02E6EC71130}.Debug|x86.ActiveCfg = Debug|Any CPU - {1B57BF04-E33F-4DCA-AF58-B02E6EC71130}.Debug|x86.Build.0 = Debug|Any CPU - {1B57BF04-E33F-4DCA-AF58-B02E6EC71130}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1B57BF04-E33F-4DCA-AF58-B02E6EC71130}.Release|Any CPU.Build.0 = Release|Any CPU - {1B57BF04-E33F-4DCA-AF58-B02E6EC71130}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {1B57BF04-E33F-4DCA-AF58-B02E6EC71130}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {1B57BF04-E33F-4DCA-AF58-B02E6EC71130}.Release|x86.ActiveCfg = Release|Any CPU - {1B57BF04-E33F-4DCA-AF58-B02E6EC71130}.Release|x86.Build.0 = Release|Any CPU - {3ABC04DB-454F-4543-99E3-84BF6875DA95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3ABC04DB-454F-4543-99E3-84BF6875DA95}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3ABC04DB-454F-4543-99E3-84BF6875DA95}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {3ABC04DB-454F-4543-99E3-84BF6875DA95}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {3ABC04DB-454F-4543-99E3-84BF6875DA95}.Debug|x86.ActiveCfg = Debug|Any CPU - {3ABC04DB-454F-4543-99E3-84BF6875DA95}.Debug|x86.Build.0 = Debug|Any CPU - {3ABC04DB-454F-4543-99E3-84BF6875DA95}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3ABC04DB-454F-4543-99E3-84BF6875DA95}.Release|Any CPU.Build.0 = Release|Any CPU - {3ABC04DB-454F-4543-99E3-84BF6875DA95}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {3ABC04DB-454F-4543-99E3-84BF6875DA95}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {3ABC04DB-454F-4543-99E3-84BF6875DA95}.Release|x86.ActiveCfg = Release|Any CPU - {3ABC04DB-454F-4543-99E3-84BF6875DA95}.Release|x86.Build.0 = Release|Any CPU + {E645744C-1142-47C3-B5C1-644719E34FB1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E645744C-1142-47C3-B5C1-644719E34FB1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E645744C-1142-47C3-B5C1-644719E34FB1}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {E645744C-1142-47C3-B5C1-644719E34FB1}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {E645744C-1142-47C3-B5C1-644719E34FB1}.Debug|x86.ActiveCfg = Debug|Any CPU + {E645744C-1142-47C3-B5C1-644719E34FB1}.Debug|x86.Build.0 = Debug|Any CPU + {E645744C-1142-47C3-B5C1-644719E34FB1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E645744C-1142-47C3-B5C1-644719E34FB1}.Release|Any CPU.Build.0 = Release|Any CPU + {E645744C-1142-47C3-B5C1-644719E34FB1}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {E645744C-1142-47C3-B5C1-644719E34FB1}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {E645744C-1142-47C3-B5C1-644719E34FB1}.Release|x86.ActiveCfg = Release|Any CPU + {E645744C-1142-47C3-B5C1-644719E34FB1}.Release|x86.Build.0 = Release|Any CPU + {71764F40-FBC1-4FD5-8BA9-757BBAF08F3D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {71764F40-FBC1-4FD5-8BA9-757BBAF08F3D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {71764F40-FBC1-4FD5-8BA9-757BBAF08F3D}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {71764F40-FBC1-4FD5-8BA9-757BBAF08F3D}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {71764F40-FBC1-4FD5-8BA9-757BBAF08F3D}.Debug|x86.ActiveCfg = Debug|Any CPU + {71764F40-FBC1-4FD5-8BA9-757BBAF08F3D}.Debug|x86.Build.0 = Debug|Any CPU + {71764F40-FBC1-4FD5-8BA9-757BBAF08F3D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {71764F40-FBC1-4FD5-8BA9-757BBAF08F3D}.Release|Any CPU.Build.0 = Release|Any CPU + {71764F40-FBC1-4FD5-8BA9-757BBAF08F3D}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {71764F40-FBC1-4FD5-8BA9-757BBAF08F3D}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {71764F40-FBC1-4FD5-8BA9-757BBAF08F3D}.Release|x86.ActiveCfg = Release|Any CPU + {71764F40-FBC1-4FD5-8BA9-757BBAF08F3D}.Release|x86.Build.0 = Release|Any CPU + {92312062-F98E-49B1-BC76-919F0EC2C9BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {92312062-F98E-49B1-BC76-919F0EC2C9BA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {92312062-F98E-49B1-BC76-919F0EC2C9BA}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {92312062-F98E-49B1-BC76-919F0EC2C9BA}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {92312062-F98E-49B1-BC76-919F0EC2C9BA}.Debug|x86.ActiveCfg = Debug|Any CPU + {92312062-F98E-49B1-BC76-919F0EC2C9BA}.Debug|x86.Build.0 = Debug|Any CPU + {92312062-F98E-49B1-BC76-919F0EC2C9BA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {92312062-F98E-49B1-BC76-919F0EC2C9BA}.Release|Any CPU.Build.0 = Release|Any CPU + {92312062-F98E-49B1-BC76-919F0EC2C9BA}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {92312062-F98E-49B1-BC76-919F0EC2C9BA}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {92312062-F98E-49B1-BC76-919F0EC2C9BA}.Release|x86.ActiveCfg = Release|Any CPU + {92312062-F98E-49B1-BC76-919F0EC2C9BA}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/DynaCache/CacheDuration.cs b/DynaCache/CacheDuration.cs deleted file mode 100644 index 49119f1..0000000 --- a/DynaCache/CacheDuration.cs +++ /dev/null @@ -1,44 +0,0 @@ -#region Copyright 2014 Mike Goatly -// This source is subject to the the MIT License (MIT) -// All rights reserved. -#endregion - -namespace DynaCache -{ - #region Using declarations - - using System; - using System.Configuration; - - #endregion - - /// - /// Information about a configured cache duration. - /// - public class CacheDuration : ConfigurationElement - { - #region Public Properties - - /// - /// Gets or sets the length of time that data associated to this cache duration should be cached for. - /// - [ConfigurationProperty("duration")] - public TimeSpan Duration - { - get { return (TimeSpan)this["duration"]; } - set { this["duration"] = value; } - } - - /// - /// Gets or sets the name of the cache duration. This can be referred to in s. - /// - [ConfigurationProperty("name")] - public string Name - { - get { return (string)this["name"]; } - set { this["name"] = value; } - } - - #endregion - } -} \ No newline at end of file diff --git a/DynaCache/CacheDurationCollection.cs b/DynaCache/CacheDurationCollection.cs deleted file mode 100644 index 641987a..0000000 --- a/DynaCache/CacheDurationCollection.cs +++ /dev/null @@ -1,50 +0,0 @@ -#region Copyright 2014 Mike Goatly -// This source is subject to the the MIT License (MIT) -// All rights reserved. -#endregion - -namespace DynaCache -{ - #region Using declarations - - using System.Configuration; - - #endregion - - /// - /// A collection of instances. - /// - public class CacheDurationCollection : ConfigurationElementCollection - { - /// - public new CacheDuration this[string name] - { - get - { - var duration = BaseGet(name) as CacheDuration; - if (duration == null) - { - throw new DynaCacheException("Unknown named cache referenced: " + name); - } - - return duration; - } - } - - #region Methods - - /// - protected override ConfigurationElement CreateNewElement() - { - return new CacheDuration(); - } - - /// - protected override object GetElementKey(ConfigurationElement element) - { - return ((CacheDuration)element).Name; - } - - #endregion - } -} \ No newline at end of file diff --git a/DynaCache/DynaCache.csproj b/DynaCache/DynaCache.csproj deleted file mode 100644 index 6828e5b..0000000 --- a/DynaCache/DynaCache.csproj +++ /dev/null @@ -1,89 +0,0 @@ - - - - Debug - AnyCPU - 8.0.30703 - 2.0 - {F4EE6A5E-A9EC-4119-A8E3-A1D270732D0D} - Library - Properties - DynaCache - DynaCache - v4.5 - 512 - SAK - SAK - SAK - SAK - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - true - bin\Release\DynaCache.XML - false - - - - - - - - - - - - - Properties\CommonAssemblyInfo.cs - - - - - - - - - - - - - - DynaCache.snk - - - - - $(OutputPath)\..\..\..\Nuget\ - $(NugetFolder)PackageContents\lib\ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/DynaCache/DynaCache.csproj.vspscc b/DynaCache/DynaCache.csproj.vspscc deleted file mode 100644 index b6d3289..0000000 --- a/DynaCache/DynaCache.csproj.vspscc +++ /dev/null @@ -1,10 +0,0 @@ -"" -{ -"FILE_VERSION" = "9237" -"ENLISTMENT_CHOICE" = "NEVER" -"PROJECT_FILE_RELATIVE_PATH" = "" -"NUMBER_OF_EXCLUDED_FILES" = "0" -"ORIGINAL_PROJECT_FILE_PATH" = "" -"NUMBER_OF_NESTED_PROJECTS" = "0" -"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" -} diff --git a/DynaCache/DynaCacheSection.cs b/DynaCache/DynaCacheSection.cs deleted file mode 100644 index e585df2..0000000 --- a/DynaCache/DynaCacheSection.cs +++ /dev/null @@ -1,39 +0,0 @@ -#region Copyright 2014 Mike Goatly -// This source is subject to the the MIT License (MIT) -// All rights reserved. -#endregion - -namespace DynaCache -{ - #region Using declarations - - using System.Configuration; - - #endregion - - /// - /// The DynaCache configuration section. - /// - public class DynaCacheSection : ConfigurationSection - { - #region Public Properties - - /// - /// Gets the set of configured cache durations. - /// - [ConfigurationProperty("cacheDurations", IsDefaultCollection = false)] - [ConfigurationCollection(typeof(CacheDurationCollection), - AddItemName = "add", - ClearItemsName = "clear", - RemoveItemName = "remove")] - public CacheDurationCollection CacheDurations - { - get - { - return (CacheDurationCollection)base["cacheDurations"]; - } - } - - #endregion - } -} diff --git a/DynaCache/Properties/AssemblyInfo.cs b/DynaCache/Properties/AssemblyInfo.cs deleted file mode 100644 index 8603f43..0000000 --- a/DynaCache/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,11 +0,0 @@ -#region Copyright 2012 Mike Goatly -// This source is subject to the the MIT License (MIT) -// All rights reserved. -#endregion - -using System.Reflection; -using System.Runtime.InteropServices; - -[assembly: AssemblyTitle("DynaCache")] -[assembly: AssemblyDescription("A cache proxy generator for use with dependency injection frameworks.")] -[assembly: Guid("88227851-a7d3-4090-995f-82ff3129d9e6")] \ No newline at end of file diff --git a/NLog.Extension/NLog.Extension.csproj b/NLog.Extension/NLog.Extension.csproj deleted file mode 100644 index d6ae0e0..0000000 --- a/NLog.Extension/NLog.Extension.csproj +++ /dev/null @@ -1,62 +0,0 @@ - - - - - Debug - AnyCPU - {3ABC04DB-454F-4543-99E3-84BF6875DA95} - Library - Properties - NLog.Extension - NLog.Extension - v4.5.1 - 512 - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\NLog.4.3.1\lib\net45\NLog.dll - True - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/NLog.Extension/Properties/AssemblyInfo.cs b/NLog.Extension/Properties/AssemblyInfo.cs deleted file mode 100644 index f93c552..0000000 --- a/NLog.Extension/Properties/AssemblyInfo.cs +++ /dev/null @@ -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("NLog.Extension")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("NLog.Extension")] -[assembly: AssemblyCopyright("Copyright © 2016")] -[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("3abc04db-454f-4543-99e3-84bf6875da95")] - -// 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")] diff --git a/NLog.Extension/TracingLogProxy.cs b/NLog.Extension/TracingLogProxy.cs deleted file mode 100644 index 3ddb780..0000000 --- a/NLog.Extension/TracingLogProxy.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace NLog.Extension -{ - public class TracingLogProxy : IDisposable - { - private const string UndefinedCaller = "UNDEFINED"; - - private readonly string _callerName; - private readonly ILogger _logger; - - public TracingLogProxy(ILogger wrappedLogger, [CallerMemberName] string callerName = UndefinedCaller) - { - _logger = wrappedLogger; - _callerName = callerName; - if (_logger.IsTraceEnabled) - { - _logger.Trace($"{_callerName} called"); - } - } - - public void Dispose() - { - if (_logger.IsTraceEnabled) - { - _logger.Trace($"{_callerName} return"); - } - } - } -} \ No newline at end of file diff --git a/NLog.Extension/packages.config b/NLog.Extension/packages.config deleted file mode 100644 index 73b955f..0000000 --- a/NLog.Extension/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/packages/Moq.4.0.10827/License.txt b/packages/Moq.4.0.10827/License.txt deleted file mode 100644 index fb36f92..0000000 --- a/packages/Moq.4.0.10827/License.txt +++ /dev/null @@ -1,39 +0,0 @@ -Copyright (c) 2007. Clarius Consulting, Manas Technology Solutions, InSTEDD -http://code.google.com/p/moq/ -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 Clarius Consulting, Manas Technology Solutions or InSTEDD 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. - -[This is the BSD license, see - http://www.opensource.org/licenses/bsd-license.php] \ No newline at end of file diff --git a/packages/Moq.4.0.10827/Moq.4.0.10827.nupkg b/packages/Moq.4.0.10827/Moq.4.0.10827.nupkg deleted file mode 100644 index 91e88a4..0000000 Binary files a/packages/Moq.4.0.10827/Moq.4.0.10827.nupkg and /dev/null differ diff --git a/packages/Moq.4.0.10827/Moq.chm b/packages/Moq.4.0.10827/Moq.chm deleted file mode 100644 index f5779bb..0000000 Binary files a/packages/Moq.4.0.10827/Moq.chm and /dev/null differ diff --git a/packages/Moq.4.0.10827/lib/NET35/Moq.dll b/packages/Moq.4.0.10827/lib/NET35/Moq.dll deleted file mode 100644 index 3d3b8cc..0000000 Binary files a/packages/Moq.4.0.10827/lib/NET35/Moq.dll and /dev/null differ diff --git a/packages/Moq.4.0.10827/lib/NET35/Moq.pdb b/packages/Moq.4.0.10827/lib/NET35/Moq.pdb deleted file mode 100644 index b0eaa80..0000000 Binary files a/packages/Moq.4.0.10827/lib/NET35/Moq.pdb and /dev/null differ diff --git a/packages/Moq.4.0.10827/lib/NET35/Moq.xml b/packages/Moq.4.0.10827/lib/NET35/Moq.xml deleted file mode 100644 index a0be31c..0000000 --- a/packages/Moq.4.0.10827/lib/NET35/Moq.xml +++ /dev/null @@ -1,5768 +0,0 @@ - - - - Moq - - - - - Implements the fluent API. - - - - - The expectation will be considered only in the former condition. - - - - - - - The expectation will be considered only in the former condition. - - - - - - - - Setups the get. - - The type of the property. - The expression. - - - - - Setups the set. - - The type of the property. - The setter expression. - - - - - Setups the set. - - The setter expression. - - - - - Defines the Callback verb and overloads. - - - - - Helper interface used to hide the base - members from the fluent API to make it much cleaner - in Visual Studio intellisense. - - - - - - - - - - - - - - - - - Specifies a callback to invoke when the method is called. - - The callback method to invoke. - - The following example specifies a callback to set a boolean - value that can be used later: - - var called = false; - mock.Setup(x => x.Execute()) - .Callback(() => called = true); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The argument type of the invoked method. - The callback method to invoke. - - Invokes the given callback with the concrete invocation argument value. - - Notice how the specific string argument is retrieved by simply declaring - it as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Callback((string command) => Console.WriteLine(command)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2) => Console.WriteLine(arg1 + arg2)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3) => Console.WriteLine(arg1 + arg2 + arg3)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16)); - - - - - - Defines the Callback verb and overloads for callbacks on - setups that return a value. - - Mocked type. - Type of the return value of the setup. - - - - Specifies a callback to invoke when the method is called. - - The callback method to invoke. - - The following example specifies a callback to set a boolean value that can be used later: - - var called = false; - mock.Setup(x => x.Execute()) - .Callback(() => called = true) - .Returns(true); - - Note that in the case of value-returning methods, after the Callback - call you can still specify the return value. - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the argument of the invoked method. - Callback method to invoke. - - Invokes the given callback with the concrete invocation argument value. - - Notice how the specific string argument is retrieved by simply declaring - it as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Callback(command => Console.WriteLine(command)) - .Returns(true); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2) => Console.WriteLine(arg1 + arg2)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3) => Console.WriteLine(arg1 + arg2 + arg3)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16)); - - - - - - Defines the Raises verb. - - - - - Specifies the event that will be raised - when the setup is met. - - An expression that represents an event attach or detach action. - The event arguments to pass for the raised event. - - The following example shows how to raise an event when - the setup is met: - - var mock = new Mock<IContainer>(); - - mock.Setup(add => add.Add(It.IsAny<string>(), It.IsAny<object>())) - .Raises(add => add.Added += null, EventArgs.Empty); - - - - - - Specifies the event that will be raised - when the setup is matched. - - An expression that represents an event attach or detach action. - A function that will build the - to pass when raising the event. - - - - - Specifies the custom event that will be raised - when the setup is matched. - - An expression that represents an event attach or detach action. - The arguments to pass to the custom delegate (non EventHandler-compatible). - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - The type of the fifteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - The type of the fifteenth argument received by the expected invocation. - The type of the sixteenth argument received by the expected invocation. - - - - - Defines the Returns verb. - - Mocked type. - Type of the return value from the expression. - - - - Specifies the value to return. - - The value to return, or . - - Return a true value from the method call: - - mock.Setup(x => x.Execute("ping")) - .Returns(true); - - - - - - Specifies a function that will calculate the value to return from the method. - - The function that will calculate the return value. - - Return a calculated value when the method is called: - - mock.Setup(x => x.Execute("ping")) - .Returns(() => returnValues[0]); - - The lambda expression to retrieve the return value is lazy-executed, - meaning that its value may change depending on the moment the method - is executed and the value the returnValues array has at - that moment. - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the argument of the invoked method. - The function that will calculate the return value. - - Return a calculated value which is evaluated lazily at the time of the invocation. - - The lookup list can change between invocations and the setup - will return different values accordingly. Also, notice how the specific - string argument is retrieved by simply declaring it as part of the lambda - expression: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Returns((string command) => returnValues[command]); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2) => arg1 + arg2); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3) => arg1 + arg2 + arg3); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4) => arg1 + arg2 + arg3 + arg4); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5) => arg1 + arg2 + arg3 + arg4 + arg5); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16); - - - - - - Language for ReturnSequence - - - - - Returns value - - - - - Throws an exception - - - - - Throws an exception - - - - - The first method call or member access will be the - last segment of the expression (depth-first traversal), - which is the one we have to Setup rather than FluentMock. - And the last one is the one we have to Mock.Get rather - than FluentMock. - - - - - Base class for mocks and static helper class with methods that - apply to mocked objects, such as to - retrieve a from an object instance. - - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the specification of how the mocked object should behave. - The type of the mocked object. - The mocked object created. - - - - Initializes a new instance of the class. - - - - - Retrieves the mock object for the given object instance. - - Type of the mock to retrieve. Can be omitted as it's inferred - from the object instance passed in as the instance. - The instance of the mocked object.The mock associated with the mocked object. - The received instance - was not created by Moq. - - The following example shows how to add a new setup to an object - instance which is not the original but rather - the object associated with it: - - // Typed instance, not the mock, is retrieved from some test API. - HttpContextBase context = GetMockContext(); - - // context.Request is the typed object from the "real" API - // so in order to add a setup to it, we need to get - // the mock that "owns" it - Mock<HttpRequestBase> request = Mock.Get(context.Request); - mock.Setup(req => req.AppRelativeCurrentExecutionFilePath) - .Returns(tempUrl); - - - - - - Returns the mocked object value. - - - - - Verifies that all verifiable expectations have been met. - - This example sets up an expectation and marks it as verifiable. After - the mock is used, a Verify() call is issued on the mock - to ensure the method in the setup was invoked: - - var mock = new Mock<IWarehouse>(); - this.Setup(x => x.HasInventory(TALISKER, 50)).Verifiable().Returns(true); - ... - // other test code - ... - // Will throw if the test code has didn't call HasInventory. - this.Verify(); - - Not all verifiable expectations were met. - - - - Verifies all expectations regardless of whether they have - been flagged as verifiable. - - This example sets up an expectation without marking it as verifiable. After - the mock is used, a call is issued on the mock - to ensure that all expectations are met: - - var mock = new Mock<IWarehouse>(); - this.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true); - ... - // other test code - ... - // Will throw if the test code has didn't call HasInventory, even - // that expectation was not marked as verifiable. - this.VerifyAll(); - - At least one expectation was not met. - - - - Gets the interceptor target for the given expression and root mock, - building the intermediate hierarchy of mock objects if necessary. - - - - - Raises the associated event with the given - event argument data. - - - - - Raises the associated event with the given - event argument data. - - - - - Adds an interface implementation to the mock, - allowing setups to be specified for it. - - This method can only be called before the first use - of the mock property, at which - point the runtime type has already been generated - and no more interfaces can be added to it. - - Also, must be an - interface and not a class, which must be specified - when creating the mock instead. - - - The mock type - has already been generated by accessing the property. - - The specified - is not an interface. - - The following example creates a mock for the main interface - and later adds to it to verify - it's called by the consumer code: - - var mock = new Mock<IProcessor>(); - mock.Setup(x => x.Execute("ping")); - - // add IDisposable interface - var disposable = mock.As<IDisposable>(); - disposable.Setup(d => d.Dispose()).Verifiable(); - - Type of interface to cast the mock to. - - - - - - - Behavior of the mock, according to the value set in the constructor. - - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Gets the mocked object instance. - - - - - Retrieves the type of the mocked object, its generic type argument. - This is used in the auto-mocking of hierarchy access. - - - - - Specifies the class that will determine the default - value to return when invocations are made that - have no setups and need to return a default - value (for loose mocks). - - - - - Exposes the list of extra interfaces implemented by the mock. - - - - - Utility repository class to use to construct multiple - mocks when consistent verification is - desired for all of them. - - - If multiple mocks will be created during a test, passing - the desired (if different than the - or the one - passed to the repository constructor) and later verifying each - mock can become repetitive and tedious. - - This repository class helps in that scenario by providing a - simplified creation of multiple mocks with a default - (unless overriden by calling - ) and posterior verification. - - - - The following is a straightforward example on how to - create and automatically verify strict mocks using a : - - var repository = new MockRepository(MockBehavior.Strict); - - var foo = repository.Create<IFoo>(); - var bar = repository.Create<IBar>(); - - // no need to call Verifiable() on the setup - // as we'll be validating all of them anyway. - foo.Setup(f => f.Do()); - bar.Setup(b => b.Redo()); - - // exercise the mocks here - - repository.VerifyAll(); - // At this point all setups are already checked - // and an optional MockException might be thrown. - // Note also that because the mocks are strict, any invocation - // that doesn't have a matching setup will also throw a MockException. - - The following examples shows how to setup the repository - to create loose mocks and later verify only verifiable setups: - - var repository = new MockRepository(MockBehavior.Loose); - - var foo = repository.Create<IFoo>(); - var bar = repository.Create<IBar>(); - - // this setup will be verified when we verify the repository - foo.Setup(f => f.Do()).Verifiable(); - - // this setup will NOT be verified - foo.Setup(f => f.Calculate()); - - // this setup will be verified when we verify the repository - bar.Setup(b => b.Redo()).Verifiable(); - - // exercise the mocks here - // note that because the mocks are Loose, members - // called in the interfaces for which no matching - // setups exist will NOT throw exceptions, - // and will rather return default values. - - repository.Verify(); - // At this point verifiable setups are already checked - // and an optional MockException might be thrown. - - The following examples shows how to setup the repository with a - default strict behavior, overriding that default for a - specific mock: - - var repository = new MockRepository(MockBehavior.Strict); - - // this particular one we want loose - var foo = repository.Create<IFoo>(MockBehavior.Loose); - var bar = repository.Create<IBar>(); - - // specify setups - - // exercise the mocks here - - repository.Verify(); - - - - - - - Utility factory class to use to construct multiple - mocks when consistent verification is - desired for all of them. - - - If multiple mocks will be created during a test, passing - the desired (if different than the - or the one - passed to the factory constructor) and later verifying each - mock can become repetitive and tedious. - - This factory class helps in that scenario by providing a - simplified creation of multiple mocks with a default - (unless overriden by calling - ) and posterior verification. - - - - The following is a straightforward example on how to - create and automatically verify strict mocks using a : - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(); - var bar = factory.Create<IBar>(); - - // no need to call Verifiable() on the setup - // as we'll be validating all of them anyway. - foo.Setup(f => f.Do()); - bar.Setup(b => b.Redo()); - - // exercise the mocks here - - factory.VerifyAll(); - // At this point all setups are already checked - // and an optional MockException might be thrown. - // Note also that because the mocks are strict, any invocation - // that doesn't have a matching setup will also throw a MockException. - - The following examples shows how to setup the factory - to create loose mocks and later verify only verifiable setups: - - var factory = new MockFactory(MockBehavior.Loose); - - var foo = factory.Create<IFoo>(); - var bar = factory.Create<IBar>(); - - // this setup will be verified when we verify the factory - foo.Setup(f => f.Do()).Verifiable(); - - // this setup will NOT be verified - foo.Setup(f => f.Calculate()); - - // this setup will be verified when we verify the factory - bar.Setup(b => b.Redo()).Verifiable(); - - // exercise the mocks here - // note that because the mocks are Loose, members - // called in the interfaces for which no matching - // setups exist will NOT throw exceptions, - // and will rather return default values. - - factory.Verify(); - // At this point verifiable setups are already checked - // and an optional MockException might be thrown. - - The following examples shows how to setup the factory with a - default strict behavior, overriding that default for a - specific mock: - - var factory = new MockFactory(MockBehavior.Strict); - - // this particular one we want loose - var foo = factory.Create<IFoo>(MockBehavior.Loose); - var bar = factory.Create<IBar>(); - - // specify setups - - // exercise the mocks here - - factory.Verify(); - - - - - - - Initializes the factory with the given - for newly created mocks from the factory. - - The behavior to use for mocks created - using the factory method if not overriden - by using the overload. - - - - Creates a new mock with the default - specified at factory construction time. - - Type to mock. - A new . - - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(); - // use mock on tests - - factory.VerifyAll(); - - - - - - Creates a new mock with the default - specified at factory construction time and with the - the given constructor arguments for the class. - - - The mock will try to find the best match constructor given the - constructor arguments, and invoke that to initialize the instance. - This applies only to classes, not interfaces. - - Type to mock. - Constructor arguments for mocked classes. - A new . - - - var factory = new MockFactory(MockBehavior.Default); - - var mock = factory.Create<MyBase>("Foo", 25, true); - // use mock on tests - - factory.Verify(); - - - - - - Creates a new mock with the given . - - Type to mock. - Behavior to use for the mock, which overrides - the default behavior specified at factory construction time. - A new . - - The following example shows how to create a mock with a different - behavior to that specified as the default for the factory: - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(MockBehavior.Loose); - - - - - - Creates a new mock with the given - and with the the given constructor arguments for the class. - - - The mock will try to find the best match constructor given the - constructor arguments, and invoke that to initialize the instance. - This applies only to classes, not interfaces. - - Type to mock. - Behavior to use for the mock, which overrides - the default behavior specified at factory construction time. - Constructor arguments for mocked classes. - A new . - - The following example shows how to create a mock with a different - behavior to that specified as the default for the factory, passing - constructor arguments: - - var factory = new MockFactory(MockBehavior.Default); - - var mock = factory.Create<MyBase>(MockBehavior.Strict, "Foo", 25, true); - - - - - - Implements creation of a new mock within the factory. - - Type to mock. - The behavior for the new mock. - Optional arguments for the construction of the mock. - - - - Verifies all verifiable expectations on all mocks created - by this factory. - - - One or more mocks had expectations that were not satisfied. - - - - Verifies all verifiable expectations on all mocks created - by this factory. - - - One or more mocks had expectations that were not satisfied. - - - - Invokes for each mock - in , and accumulates the resulting - that might be - thrown from the action. - - The action to execute against - each mock. - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Gets the mocks that have been created by this factory and - that will get verified together. - - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The type of the mocked object to query. - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The predicate with the setup expressions. - The type of the mocked object to query. - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the setup expressions. - The type of the mocked object. - The mocked object created. - - - - Creates the mock query with the underlying queriable implementation. - - - - - Wraps the enumerator inside a queryable. - - - - - Method that is turned into the actual call from .Query{T}, to - transform the queryable query into a normal enumerable query. - This method is never used directly by consumers. - - - - - Initializes the repository with the given - for newly created mocks from the repository. - - The behavior to use for mocks created - using the repository method if not overriden - by using the overload. - - - - A that returns an empty default value - for invocations that do not have setups or return values, with loose mocks. - This is the default behavior for a mock. - - - - - Interface to be implemented by classes that determine the - default value of non-expected invocations. - - - - - Defines the default value to return in all the methods returning . - The type of the return value.The value to set as default. - - - - Provides a value for the given member and arguments. - - The member to provide a default value for. - - - - - The intention of is to create a more readable - string representation for the failure message. - - - - - Implements the fluent API. - - - - - Defines the Throws verb. - - - - - Specifies the exception to throw when the method is invoked. - - Exception instance to throw. - - This example shows how to throw an exception when the method is - invoked with an empty string argument: - - mock.Setup(x => x.Execute("")) - .Throws(new ArgumentException()); - - - - - - Specifies the type of exception to throw when the method is invoked. - - Type of exception to instantiate and throw when the setup is matched. - - This example shows how to throw an exception when the method is - invoked with an empty string argument: - - mock.Setup(x => x.Execute("")) - .Throws<ArgumentException>(); - - - - - - Implements the fluent API. - - - - - Defines occurrence members to constraint setups. - - - - - The expected invocation can happen at most once. - - - - var mock = new Mock<ICommand>(); - mock.Setup(foo => foo.Execute("ping")) - .AtMostOnce(); - - - - - - The expected invocation can happen at most specified number of times. - - The number of times to accept calls. - - - var mock = new Mock<ICommand>(); - mock.Setup(foo => foo.Execute("ping")) - .AtMost( 5 ); - - - - - - Defines the Verifiable verb. - - - - - Marks the expectation as verifiable, meaning that a call - to will check if this particular - expectation was met. - - - The following example marks the expectation as verifiable: - - mock.Expect(x => x.Execute("ping")) - .Returns(true) - .Verifiable(); - - - - - - Marks the expectation as verifiable, meaning that a call - to will check if this particular - expectation was met, and specifies a message for failures. - - - The following example marks the expectation as verifiable: - - mock.Expect(x => x.Execute("ping")) - .Returns(true) - .Verifiable("Ping should be executed always!"); - - - - - - Implements the fluent API. - - - - - We need this non-generics base class so that - we can use from - generic code. - - - - - Implements the fluent API. - - - - - Implements the fluent API. - - - - - Implements the fluent API. - - - - - Defines the Callback verb for property getter setups. - - - Mocked type. - Type of the property. - - - - Specifies a callback to invoke when the property is retrieved. - - Callback method to invoke. - - Invokes the given callback with the property value being set. - - mock.SetupGet(x => x.Suspended) - .Callback(() => called = true) - .Returns(true); - - - - - - Implements the fluent API. - - - - - Defines the Returns verb for property get setups. - - Mocked type. - Type of the property. - - - - Specifies the value to return. - - The value to return, or . - - Return a true value from the property getter call: - - mock.SetupGet(x => x.Suspended) - .Returns(true); - - - - - - Specifies a function that will calculate the value to return for the property. - - The function that will calculate the return value. - - Return a calculated value when the property is retrieved: - - mock.SetupGet(x => x.Suspended) - .Returns(() => returnValues[0]); - - The lambda expression to retrieve the return value is lazy-executed, - meaning that its value may change depending on the moment the property - is retrieved and the value the returnValues array has at - that moment. - - - - - Implements the fluent API. - - - - - Encapsulates a method that has five parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has five parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has six parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has six parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has seven parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has seven parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has eight parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has eight parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has nine parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has nine parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has ten parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has ten parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has eleven parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has eleven parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has twelve parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has twelve parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has thirteen parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has thirteen parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has fourteen parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The type of the fourteenth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - The fourteenth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has fourteen parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The type of the fourteenth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - The fourteenth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has fifteen parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The type of the fourteenth parameter of the method that this delegate encapsulates. - The type of the fifteenth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - The fourteenth parameter of the method that this delegate encapsulates. - The fifteenth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has fifteen parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The type of the fourteenth parameter of the method that this delegate encapsulates. - The type of the fifteenth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - The fourteenth parameter of the method that this delegate encapsulates. - The fifteenth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Encapsulates a method that has sixteen parameters and does not return a value. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The type of the fourteenth parameter of the method that this delegate encapsulates. - The type of the fifteenth parameter of the method that this delegate encapsulates. - The type of the sixteenth parameter of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - The fourteenth parameter of the method that this delegate encapsulates. - The fifteenth parameter of the method that this delegate encapsulates. - The sixteenth parameter of the method that this delegate encapsulates. - - - - Encapsulates a method that has sixteen parameters and returns a value of the type specified by the parameter. - - The type of the first parameter of the method that this delegate encapsulates. - The type of the second parameter of the method that this delegate encapsulates. - The type of the third parameter of the method that this delegate encapsulates. - The type of the fourth parameter of the method that this delegate encapsulates. - The type of the fifth parameter of the method that this delegate encapsulates. - The type of the sixth parameter of the method that this delegate encapsulates. - The type of the seventh parameter of the method that this delegate encapsulates. - The type of the eighth parameter of the method that this delegate encapsulates. - The type of the nineth parameter of the method that this delegate encapsulates. - The type of the tenth parameter of the method that this delegate encapsulates. - The type of the eleventh parameter of the method that this delegate encapsulates. - The type of the twelfth parameter of the method that this delegate encapsulates. - The type of the thirteenth parameter of the method that this delegate encapsulates. - The type of the fourteenth parameter of the method that this delegate encapsulates. - The type of the fifteenth parameter of the method that this delegate encapsulates. - The type of the sixteenth parameter of the method that this delegate encapsulates. - The type of the return value of the method that this delegate encapsulates. - The first parameter of the method that this delegate encapsulates. - The second parameter of the method that this delegate encapsulates. - The third parameter of the method that this delegate encapsulates. - The fourth parameter of the method that this delegate encapsulates. - The fifth parameter of the method that this delegate encapsulates. - The sixth parameter of the method that this delegate encapsulates. - The seventh parameter of the method that this delegate encapsulates. - The eighth parameter of the method that this delegate encapsulates. - The nineth parameter of the method that this delegate encapsulates. - The tenth parameter of the method that this delegate encapsulates. - The eleventh parameter of the method that this delegate encapsulates. - The twelfth parameter of the method that this delegate encapsulates. - The thirteenth parameter of the method that this delegate encapsulates. - The fourteenth parameter of the method that this delegate encapsulates. - The fifteenth parameter of the method that this delegate encapsulates. - The sixteenth parameter of the method that this delegate encapsulates. - The return value of the method that this delegate encapsulates. - - - - Helper class to setup a full trace between many mocks - - - - - Initialize a trace setup - - - - - Allow sequence to be repeated - - - - - define nice api - - - - - Perform an expectation in the trace. - - - - - Marks a method as a matcher, which allows complete replacement - of the built-in class with your own argument - matching rules. - - - This feature has been deprecated in favor of the new - and simpler . - - - The argument matching is used to determine whether a concrete - invocation in the mock matches a given setup. This - matching mechanism is fully extensible. - - - There are two parts of a matcher: the compiler matcher - and the runtime matcher. - - - Compiler matcher - Used to satisfy the compiler requirements for the - argument. Needs to be a method optionally receiving any arguments - you might need for the matching, but with a return type that - matches that of the argument. - - Let's say I want to match a lists of orders that contains - a particular one. I might create a compiler matcher like the following: - - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return null; - } - } - - Now we can invoke this static method instead of an argument in an - invocation: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - Note that the return value from the compiler matcher is irrelevant. - This method will never be called, and is just used to satisfy the - compiler and to signal Moq that this is not a method that we want - to be invoked at runtime. - - - - Runtime matcher - - The runtime matcher is the one that will actually perform evaluation - when the test is run, and is defined by convention to have the - same signature as the compiler matcher, but where the return - value is the first argument to the call, which contains the - object received by the actual invocation at runtime: - - public static bool Contains(IEnumerable<Order> orders, Order order) - { - return orders.Contains(order); - } - - At runtime, the mocked method will be invoked with a specific - list of orders. This value will be passed to this runtime - matcher as the first argument, while the second argument is the - one specified in the setup (x.Save(Orders.Contains(order))). - - The boolean returned determines whether the given argument has been - matched. If all arguments to the expected method are matched, then - the setup matches and is evaluated. - - - - - - Using this extensible infrastructure, you can easily replace the entire - set of matchers with your own. You can also avoid the - typical (and annoying) lengthy expressions that result when you have - multiple arguments that use generics. - - - The following is the complete example explained above: - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return null; - } - - public static bool Contains(IEnumerable<Order> orders, Order order) - { - return orders.Contains(order); - } - } - - And the concrete test using this matcher: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - // use mock, invoke Save, and have the matcher filter. - - - - - - Provides a mock implementation of . - - Any interface type can be used for mocking, but for classes, only abstract and virtual members can be mocked. - - The behavior of the mock with regards to the setups and the actual calls is determined - by the optional that can be passed to the - constructor. - - Type to mock, which can be an interface or a class. - The following example shows establishing setups with specific values - for method invocations: - - // Arrange - var order = new Order(TALISKER, 50); - var mock = new Mock<IWarehouse>(); - - mock.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true); - - // Act - order.Fill(mock.Object); - - // Assert - Assert.True(order.IsFilled); - - The following example shows how to use the class - to specify conditions for arguments instead of specific values: - - // Arrange - var order = new Order(TALISKER, 50); - var mock = new Mock<IWarehouse>(); - - // shows how to expect a value within a range - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsInRange(0, 100, Range.Inclusive))) - .Returns(false); - - // shows how to throw for unexpected calls. - mock.Setup(x => x.Remove( - It.IsAny<string>(), - It.IsAny<int>())) - .Throws(new InvalidOperationException()); - - // Act - order.Fill(mock.Object); - - // Assert - Assert.False(order.IsFilled); - - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Ctor invoked by AsTInterface exclusively. - - - - - Initializes an instance of the mock with default behavior. - - var mock = new Mock<IFormatProvider>(); - - - - - Initializes an instance of the mock with default behavior and with - the given constructor arguments for the class. (Only valid when is a class) - - The mock will try to find the best match constructor given the constructor arguments, and invoke that - to initialize the instance. This applies only for classes, not interfaces. - - var mock = new Mock<MyProvider>(someArgument, 25); - Optional constructor arguments if the mocked type is a class. - - - - Initializes an instance of the mock with the specified behavior. - - var mock = new Mock<IFormatProvider>(MockBehavior.Relaxed); - Behavior of the mock. - - - - Initializes an instance of the mock with a specific behavior with - the given constructor arguments for the class. - - The mock will try to find the best match constructor given the constructor arguments, and invoke that - to initialize the instance. This applies only to classes, not interfaces. - - var mock = new Mock<MyProvider>(someArgument, 25); - Behavior of the mock.Optional constructor arguments if the mocked type is a class. - - - - Returns the mocked object value. - - - - - Specifies a setup on the mocked type for a call to - to a void method. - - If more than one setup is specified for the same method or property, - the latest one wins and is the one that will be executed. - Lambda expression that specifies the expected method invocation. - - var mock = new Mock<IProcessor>(); - mock.Setup(x => x.Execute("ping")); - - - - - - Specifies a setup on the mocked type for a call to - to a value returning method. - Type of the return value. Typically omitted as it can be inferred from the expression. - If more than one setup is specified for the same method or property, - the latest one wins and is the one that will be executed. - Lambda expression that specifies the method invocation. - - mock.Setup(x => x.HasInventory("Talisker", 50)).Returns(true); - - - - - - Specifies a setup on the mocked type for a call to - to a property getter. - - If more than one setup is set for the same property getter, - the latest one wins and is the one that will be executed. - Type of the property. Typically omitted as it can be inferred from the expression.Lambda expression that specifies the property getter. - - mock.SetupGet(x => x.Suspended) - .Returns(true); - - - - - - Specifies a setup on the mocked type for a call to - to a property setter. - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - - This overloads allows the use of a callback already - typed for the property type. - - Type of the property. Typically omitted as it can be inferred from the expression.The Lambda expression that sets a property to a value. - - mock.SetupSet(x => x.Suspended = true); - - - - - - Specifies a setup on the mocked type for a call to - to a property setter. - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - Lambda expression that sets a property to a value. - - mock.SetupSet(x => x.Suspended = true); - - - - - - Specifies that the given property should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. (this is also - known as "stubbing"). - - Type of the property, inferred from the property - expression (does not need to be specified). - Property expression to stub. - If you have an interface with an int property Value, you might - stub it using the following straightforward call: - - var mock = new Mock<IHaveValue>(); - mock.Stub(v => v.Value); - - After the Stub call has been issued, setting and - retrieving the object value will behave as expected: - - IHaveValue v = mock.Object; - - v.Value = 5; - Assert.Equal(5, v.Value); - - - - - - Specifies that the given property should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. This overload - allows setting the initial value for the property. (this is also - known as "stubbing"). - - Type of the property, inferred from the property - expression (does not need to be specified). - Property expression to stub.Initial value for the property. - If you have an interface with an int property Value, you might - stub it using the following straightforward call: - - var mock = new Mock<IHaveValue>(); - mock.SetupProperty(v => v.Value, 5); - - After the SetupProperty call has been issued, setting and - retrieving the object value will behave as expected: - - IHaveValue v = mock.Object; - // Initial value was stored - Assert.Equal(5, v.Value); - - // New value set which changes the initial value - v.Value = 6; - Assert.Equal(6, v.Value); - - - - - - Specifies that the all properties on the mock should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. (this is also - known as "stubbing"). The default value for each property will be the - one generated as specified by the property for the mock. - - If the mock is set to , - the mocked default values will also get all properties setup recursively. - - - - - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjuntion with the default . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IProcessor>(); - // exercise mock - //... - // Will throw if the test code didn't call Execute with a "ping" string argument. - mock.Verify(proc => proc.Execute("ping")); - - The invocation was not performed on the mock.Expression to verify. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjuntion with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjuntion with the default - . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IProcessor>(); - // exercise mock - //... - // Will throw if the test code didn't call Execute with a "ping" string argument. - mock.Verify(proc => proc.Execute("ping")); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjuntion with the default - . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjuntion with the default . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't call HasInventory. - mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50)); - - The invocation was not performed on the mock.Expression to verify.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock. Use in conjuntion - with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock, specifying a failure - error message. - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't call HasInventory. - mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50), "When filling orders, inventory has to be checked"); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails.Type of return value from the expression. - - - - Verifies that a property was read on the mock. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was retrieved from it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't retrieve the IsClosed property. - mock.VerifyGet(warehouse => warehouse.IsClosed); - - The invocation was not performed on the mock.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was retrieved from it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't retrieve the IsClosed property. - mock.VerifyGet(warehouse => warehouse.IsClosed); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was set on the mock. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was set on it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed = true); - - The invocation was not performed on the mock.Expression to verify. - - - - Verifies that a property was set on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was set on it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed = true, "Warehouse should always be closed after the action"); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - - - - Raises the event referenced in using - the given argument. - - The argument is - invalid for the target event invocation, or the is - not an event attach or detach expression. - - The following example shows how to raise a event: - - var mock = new Mock<IViewModel>(); - - mock.Raise(x => x.PropertyChanged -= null, new PropertyChangedEventArgs("Name")); - - - This example shows how to invoke an event with a custom event arguments - class in a view that will cause its corresponding presenter to - react by changing its state: - - var mockView = new Mock<IOrdersView>(); - var presenter = new OrdersPresenter(mockView.Object); - - // Check that the presenter has no selection by default - Assert.Null(presenter.SelectedOrder); - - // Raise the event with a specific arguments data - mockView.Raise(v => v.SelectionChanged += null, new OrderEventArgs { Order = new Order("moq", 500) }); - - // Now the presenter reacted to the event, and we have a selected order - Assert.NotNull(presenter.SelectedOrder); - Assert.Equal("moq", presenter.SelectedOrder.ProductName); - - - - - - Raises the event referenced in using - the given argument for a non-EventHandler typed event. - - The arguments are - invalid for the target event invocation, or the is - not an event attach or detach expression. - - The following example shows how to raise a custom event that does not adhere to - the standard EventHandler: - - var mock = new Mock<IViewModel>(); - - mock.Raise(x => x.MyEvent -= null, "Name", bool, 25); - - - - - - Exposes the mocked object instance. - - - - - Provides legacy API members as extensions so that - existing code continues to compile, but new code - doesn't see then. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Provides additional methods on mocks. - - - Provided as extension methods as they confuse the compiler - with the overloads taking Action. - - - - - Specifies a setup on the mocked type for a call to - to a property setter, regardless of its value. - - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - - Type of the property. Typically omitted as it can be inferred from the expression. - Type of the mock. - The target mock for the setup. - Lambda expression that specifies the property setter. - - - mock.SetupSet(x => x.Suspended); - - - - This method is not legacy, but must be on an extension method to avoid - confusing the compiler with the new Action syntax. - - - - - Verifies that a property has been set on the mock, regarless of its value. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - Expression to verify. - The mock instance. - Mocked type. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, specifying a failure - error message. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - Expression to verify. - Message to show if verification fails. - The mock instance. - Mocked type. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, regardless - of the value but only the specified number of times. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - The invocation was not call the times specified by - . - The mock instance. - Mocked type. - The number of times a method is allowed to be called. - Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, regardless - of the value but only the specified number of times, and specifying a failure - error message. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - The invocation was not call the times specified by - . - The mock instance. - Mocked type. - The number of times a method is allowed to be called. - Message to show if verification fails. - Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Helper for sequencing return values in the same method. - - - - - Return a sequence of values, once per call. - - - - - Casts the expression to a lambda expression, removing - a cast if there's any. - - - - - Casts the body of the lambda expression to a . - - If the body is not a method call. - - - - Converts the body of the lambda expression into the referenced by it. - - - - - Checks whether the body of the lambda expression is a property access. - - - - - Checks whether the expression is a property access. - - - - - Checks whether the body of the lambda expression is a property indexer, which is true - when the expression is an whose - has - equal to . - - - - - Checks whether the expression is a property indexer, which is true - when the expression is an whose - has - equal to . - - - - - Creates an expression that casts the given expression to the - type. - - - - - TODO: remove this code when https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=331583 - is fixed. - - - - - Provides partial evaluation of subtrees, whenever they can be evaluated locally. - - Matt Warren: http://blogs.msdn.com/mattwar - Documented by InSTEDD: http://www.instedd.org - - - - Performs evaluation and replacement of independent sub-trees - - The root of the expression tree. - A function that decides whether a given expression - node can be part of the local function. - A new tree with sub-trees evaluated and replaced. - - - - Performs evaluation and replacement of independent sub-trees - - The root of the expression tree. - A new tree with sub-trees evaluated and replaced. - - - - Evaluates and replaces sub-trees when first candidate is reached (top-down) - - - - - Performs bottom-up analysis to determine which nodes can possibly - be part of an evaluated sub-tree. - - - - - Ensures the given is not null. - Throws otherwise. - - - - - Ensures the given string is not null or empty. - Throws in the first case, or - in the latter. - - - - - Checks an argument to ensure it is in the specified range including the edges. - - Type of the argument to check, it must be an type. - - The expression containing the name of the argument. - The argument value to check. - The minimun allowed value for the argument. - The maximun allowed value for the argument. - - - - Checks an argument to ensure it is in the specified range excluding the edges. - - Type of the argument to check, it must be an type. - - The expression containing the name of the argument. - The argument value to check. - The minimun allowed value for the argument. - The maximun allowed value for the argument. - - - - Implemented by all generated mock object instances. - - - - - Implemented by all generated mock object instances. - - - - - Reference the Mock that contains this as the mock.Object value. - - - - - Reference the Mock that contains this as the mock.Object value. - - - - - Implements the actual interception and method invocation for - all mocks. - - - - - Get an eventInfo for a given event name. Search type ancestors depth first if necessary. - - Name of the event, with the set_ or get_ prefix already removed - - - - Given a type return all of its ancestors, both types and interfaces. - - The type to find immediate ancestors of - - - - Implements the fluent API. - - - - - Defines the Callback verb for property setter setups. - - Type of the property. - - - - Specifies a callback to invoke when the property is set that receives the - property value being set. - - Callback method to invoke. - - Invokes the given callback with the property value being set. - - mock.SetupSet(x => x.Suspended) - .Callback((bool state) => Console.WriteLine(state)); - - - - - - Allows the specification of a matching condition for an - argument in a method invocation, rather than a specific - argument value. "It" refers to the argument being matched. - - This class allows the setup to match a method invocation - with an arbitrary value, with a value in a specified range, or - even one that matches a given predicate. - - - - - Matches any value of the given type. - - Typically used when the actual argument value for a method - call is not relevant. - - - // Throws an exception for a call to Remove with any string value. - mock.Setup(x => x.Remove(It.IsAny<string>())).Throws(new InvalidOperationException()); - - Type of the value. - - - - Matches any value that satisfies the given predicate. - Type of the argument to check.The predicate used to match the method argument. - Allows the specification of a predicate to perform matching - of method call arguments. - - This example shows how to return the value 1 whenever the argument to the - Do method is an even number. - - mock.Setup(x => x.Do(It.Is<int>(i => i % 2 == 0))) - .Returns(1); - - This example shows how to throw an exception if the argument to the - method is a negative number: - - mock.Setup(x => x.GetUser(It.Is<int>(i => i < 0))) - .Throws(new ArgumentException()); - - - - - - Matches any value that is in the range specified. - Type of the argument to check.The lower bound of the range.The upper bound of the range. - The kind of range. See . - - The following example shows how to expect a method call - with an integer argument within the 0..100 range. - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsInRange(0, 100, Range.Inclusive))) - .Returns(false); - - - - - - Matches a string argument if it matches the given regular expression pattern. - The pattern to use to match the string argument value. - The following example shows how to expect a call to a method where the - string argument matches the given regular expression: - - mock.Setup(x => x.Check(It.IsRegex("[a-z]+"))).Returns(1); - - - - - - Matches a string argument if it matches the given regular expression pattern. - The pattern to use to match the string argument value.The options used to interpret the pattern. - The following example shows how to expect a call to a method where the - string argument matches the given regular expression, in a case insensitive way: - - mock.Setup(x => x.Check(It.IsRegex("[a-z]+", RegexOptions.IgnoreCase))).Returns(1); - - - - - - Matcher to treat static functions as matchers. - - mock.Setup(x => x.StringMethod(A.MagicString())); - - public static class A - { - [Matcher] - public static string MagicString() { return null; } - public static bool MagicString(string arg) - { - return arg == "magic"; - } - } - - Will succeed if: mock.Object.StringMethod("magic"); - and fail with any other call. - - - - - Options to customize the behavior of the mock. - - - - - Causes the mock to always throw - an exception for invocations that don't have a - corresponding setup. - - - - - Will never throw exceptions, returning default - values when necessary (null for reference types, - zero for value types or empty enumerables and arrays). - - - - - Default mock behavior, which equals . - - - - - Exception thrown by mocks when setups are not matched, - the mock is not properly setup, etc. - - - A distinct exception type is provided so that exceptions - thrown by the mock can be differentiated in tests that - expect other exceptions to be thrown (i.e. ArgumentException). - - Richer exception hierarchy/types are not provided as - tests typically should not catch or expect exceptions - from the mocks. These are typically the result of changes - in the tested class or its collaborators implementation, and - result in fixes in the mock setup so that they dissapear and - allow the test to pass. - - - - - - Supports the serialization infrastructure. - - Serialization information. - Streaming context. - - - - Supports the serialization infrastructure. - - Serialization information. - Streaming context. - - - - Made internal as it's of no use for - consumers, but it's important for - our own tests. - - - - - Used by the mock factory to accumulate verification - failures. - - - - - Supports the serialization infrastructure. - - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to Mock type has already been initialized by accessing its Object property. Adding interfaces must be done before that.. - - - - - Looks up a localized string similar to Value cannot be an empty string.. - - - - - Looks up a localized string similar to Can only add interfaces to the mock.. - - - - - Looks up a localized string similar to Can't set return value for void method {0}.. - - - - - Looks up a localized string similar to Constructor arguments cannot be passed for interface mocks.. - - - - - Looks up a localized string similar to A matching constructor for the given arguments was not found on the mocked type.. - - - - - Looks up a localized string similar to Could not locate event for attach or detach method {0}.. - - - - - Looks up a localized string similar to Expression {0} involves a field access, which is not supported. Use properties instead.. - - - - - Looks up a localized string similar to Type to mock must be an interface or an abstract or non-sealed class. . - - - - - Looks up a localized string similar to Cannot retrieve a mock with the given object type {0} as it's not the main type of the mock or any of its additional interfaces. - Please cast the argument to one of the supported types: {1}. - Remember that there's no generics covariance in the CLR, so your object must be one of these types in order for the call to succeed.. - - - - - Looks up a localized string similar to The equals ("==" or "=" in VB) and the conditional 'and' ("&&" or "AndAlso" in VB) operators are the only ones supported in the query specification expression. Unsupported expression: {0}. - - - - - Looks up a localized string similar to LINQ method '{0}' not supported.. - - - - - Looks up a localized string similar to Expression contains a call to a method which is not virtual (overridable in VB) or abstract. Unsupported expression: {0}. - - - - - Looks up a localized string similar to Member {0}.{1} does not exist.. - - - - - Looks up a localized string similar to Method {0}.{1} is public. Use strong-typed Expect overload instead: - mock.Setup(x => x.{1}()); - . - - - - - Looks up a localized string similar to {0} invocation failed with mock behavior {1}. - {2}. - - - - - Looks up a localized string similar to Expected only {0} calls to {1}.. - - - - - Looks up a localized string similar to Expected only one call to {0}.. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at least {2} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at least once, but was never performed: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at most {3} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at most once, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock between {2} and {3} times (Exclusive), but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock between {2} and {3} times (Inclusive), but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock exactly {2} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock should never have been performed, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock once, but was {4} times: {1}. - - - - - Looks up a localized string similar to All invocations on the mock must have a corresponding setup.. - - - - - Looks up a localized string similar to Object instance was not created by Moq.. - - - - - Looks up a localized string similar to Out expression must evaluate to a constant value.. - - - - - Looks up a localized string similar to Property {0}.{1} does not have a getter.. - - - - - Looks up a localized string similar to Property {0}.{1} does not exist.. - - - - - Looks up a localized string similar to Property {0}.{1} is write-only.. - - - - - Looks up a localized string similar to Property {0}.{1} is read-only.. - - - - - Looks up a localized string similar to Property {0}.{1} does not have a setter.. - - - - - Looks up a localized string similar to Cannot raise a mocked event unless it has been associated (attached) to a concrete event in a mocked object.. - - - - - Looks up a localized string similar to Ref expression must evaluate to a constant value.. - - - - - Looks up a localized string similar to Invocation needs to return a value and therefore must have a corresponding setup that provides it.. - - - - - Looks up a localized string similar to A lambda expression is expected as the argument to It.Is<T>.. - - - - - Looks up a localized string similar to Invocation {0} should not have been made.. - - - - - Looks up a localized string similar to Expression is not a method invocation: {0}. - - - - - Looks up a localized string similar to Expression is not a property access: {0}. - - - - - Looks up a localized string similar to Expression is not a property setter invocation.. - - - - - Looks up a localized string similar to Expression references a method that does not belong to the mocked object: {0}. - - - - - Looks up a localized string similar to Invalid setup on a non-virtual (overridable in VB) member: {0}. - - - - - Looks up a localized string similar to Type {0} does not implement required interface {1}. - - - - - Looks up a localized string similar to Type {0} does not from required type {1}. - - - - - Looks up a localized string similar to To specify a setup for public property {0}.{1}, use the typed overloads, such as: - mock.Setup(x => x.{1}).Returns(value); - mock.SetupGet(x => x.{1}).Returns(value); //equivalent to previous one - mock.SetupSet(x => x.{1}).Callback(callbackDelegate); - . - - - - - Looks up a localized string similar to Unsupported expression: {0}. - - - - - Looks up a localized string similar to Only property accesses are supported in intermediate invocations on a setup. Unsupported expression {0}.. - - - - - Looks up a localized string similar to Expression contains intermediate property access {0}.{1} which is of type {2} and cannot be mocked. Unsupported expression {3}.. - - - - - Looks up a localized string similar to Setter expression cannot use argument matchers that receive parameters.. - - - - - Looks up a localized string similar to Member {0} is not supported for protected mocking.. - - - - - Looks up a localized string similar to Setter expression can only use static custom matchers.. - - - - - Looks up a localized string similar to The following setups were not matched: - {0}. - - - - - Looks up a localized string similar to Invalid verify on a non-virtual (overridable in VB) member: {0}. - - - - - Allows setups to be specified for protected members by using their - name as a string, rather than strong-typing them which is not possible - due to their visibility. - - - - - Specifies a setup for a void method invocation with the given - , optionally specifying arguments for the method call. - - The name of the void method to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - - - - Specifies a setup for an invocation on a property or a non void method with the given - , optionally specifying arguments for the method call. - - The name of the method or property to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - The return type of the method or property. - - - - Specifies a setup for an invocation on a property getter with the given - . - - The name of the property. - The type of the property. - - - - Specifies a setup for an invocation on a property setter with the given - . - - The name of the property. - The property value. If argument matchers are used, - remember to use rather than . - The type of the property. - - - - Specifies a verify for a void method with the given , - optionally specifying arguments for the method call. Use in conjuntion with the default - . - - The invocation was not call the times specified by - . - The name of the void method to be verified. - The number of times a method is allowed to be called. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - - - - Specifies a verify for an invocation on a property or a non void method with the given - , optionally specifying arguments for the method call. - - The invocation was not call the times specified by - . - The name of the method or property to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - The number of times a method is allowed to be called. - The type of return value from the expression. - - - - Specifies a verify for an invocation on a property getter with the given - . - The invocation was not call the times specified by - . - - The name of the property. - The number of times a method is allowed to be called. - The type of the property. - - - - Specifies a setup for an invocation on a property setter with the given - . - - The invocation was not call the times specified by - . - The name of the property. - The number of times a method is allowed to be called. - The property value. - The type of the property. If argument matchers are used, - remember to use rather than . - - - - Allows the specification of a matching condition for an - argument in a protected member setup, rather than a specific - argument value. "ItExpr" refers to the argument being matched. - - - Use this variant of argument matching instead of - for protected setups. - This class allows the setup to match a method invocation - with an arbitrary value, with a value in a specified range, or - even one that matches a given predicate, or null. - - - - - Matches a null value of the given type. - - - Required for protected mocks as the null value cannot be used - directly as it prevents proper method overload selection. - - - - // Throws an exception for a call to Remove with a null string value. - mock.Protected() - .Setup("Remove", ItExpr.IsNull<string>()) - .Throws(new InvalidOperationException()); - - - Type of the value. - - - - Matches any value of the given type. - - - Typically used when the actual argument value for a method - call is not relevant. - - - - // Throws an exception for a call to Remove with any string value. - mock.Protected() - .Setup("Remove", ItExpr.IsAny<string>()) - .Throws(new InvalidOperationException()); - - - Type of the value. - - - - Matches any value that satisfies the given predicate. - - Type of the argument to check. - The predicate used to match the method argument. - - Allows the specification of a predicate to perform matching - of method call arguments. - - - This example shows how to return the value 1 whenever the argument to the - Do method is an even number. - - mock.Protected() - .Setup("Do", ItExpr.Is<int>(i => i % 2 == 0)) - .Returns(1); - - This example shows how to throw an exception if the argument to the - method is a negative number: - - mock.Protected() - .Setup("GetUser", ItExpr.Is<int>(i => i < 0)) - .Throws(new ArgumentException()); - - - - - - Matches any value that is in the range specified. - - Type of the argument to check. - The lower bound of the range. - The upper bound of the range. - The kind of range. See . - - The following example shows how to expect a method call - with an integer argument within the 0..100 range. - - mock.Protected() - .Setup("HasInventory", - ItExpr.IsAny<string>(), - ItExpr.IsInRange(0, 100, Range.Inclusive)) - .Returns(false); - - - - - - Matches a string argument if it matches the given regular expression pattern. - - The pattern to use to match the string argument value. - - The following example shows how to expect a call to a method where the - string argument matches the given regular expression: - - mock.Protected() - .Setup("Check", ItExpr.IsRegex("[a-z]+")) - .Returns(1); - - - - - - Matches a string argument if it matches the given regular expression pattern. - - The pattern to use to match the string argument value. - The options used to interpret the pattern. - - The following example shows how to expect a call to a method where the - string argument matches the given regular expression, in a case insensitive way: - - mock.Protected() - .Setup("Check", ItExpr.IsRegex("[a-z]+", RegexOptions.IgnoreCase)) - .Returns(1); - - - - - - Enables the Protected() method on , - allowing setups to be set for protected members by using their - name as a string, rather than strong-typing them which is not possible - due to their visibility. - - - - - Enable protected setups for the mock. - - Mocked object type. Typically omitted as it can be inferred from the mock instance. - The mock to set the protected setups on. - - - - - - - - - - - - Kind of range to use in a filter specified through - . - - - - - The range includes the to and - from values. - - - - - The range does not include the to and - from values. - - - - - Determines the way default values are generated - calculated for loose mocks. - - - - - Default behavior, which generates empty values for - value types (i.e. default(int)), empty array and - enumerables, and nulls for all other reference types. - - - - - Whenever the default value generated by - is null, replaces this value with a mock (if the type - can be mocked). - - - For sealed classes, a null value will be generated. - - - - - A default implementation of IQueryable for use with QueryProvider - - - - - The is a - static method that returns an IQueryable of Mocks of T which is used to - apply the linq specification to. - - - - - Allows creation custom value matchers that can be used on setups and verification, - completely replacing the built-in class with your own argument - matching rules. - - See also . - - - - - Provided for the sole purpose of rendering the delegate passed to the - matcher constructor if no friendly render lambda is provided. - - - - - Initializes the match with the condition that - will be checked in order to match invocation - values. - The condition to match against actual values. - - - - - - - - - This method is used to set an expression as the last matcher invoked, - which is used in the SetupSet to allow matchers in the prop = value - delegate expression. This delegate is executed in "fluent" mode in - order to capture the value being set, and construct the corresponding - methodcall. - This is also used in the MatcherFactory for each argument expression. - This method ensures that when we execute the delegate, we - also track the matcher that was invoked, so that when we create the - methodcall we build the expression using it, rather than the null/default - value returned from the actual invocation. - - - - - Allows creation custom value matchers that can be used on setups and verification, - completely replacing the built-in class with your own argument - matching rules. - Type of the value to match. - The argument matching is used to determine whether a concrete - invocation in the mock matches a given setup. This - matching mechanism is fully extensible. - - Creating a custom matcher is straightforward. You just need to create a method - that returns a value from a call to with - your matching condition and optional friendly render expression: - - [Matcher] - public Order IsBigOrder() - { - return Match<Order>.Create( - o => o.GrandTotal >= 5000, - /* a friendly expression to render on failures */ - () => IsBigOrder()); - } - - This method can be used in any mock setup invocation: - - mock.Setup(m => m.Submit(IsBigOrder()).Throws<UnauthorizedAccessException>(); - - At runtime, Moq knows that the return value was a matcher (note that the method MUST be - annotated with the [Matcher] attribute in order to determine this) and - evaluates your predicate with the actual value passed into your predicate. - - Another example might be a case where you want to match a lists of orders - that contains a particular one. You might create matcher like the following: - - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return Match<IEnumerable<Order>>.Create(orders => orders.Contains(order)); - } - } - - Now we can invoke this static method instead of an argument in an - invocation: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - - - - - Tracks the current mock and interception context. - - - - - Having an active fluent mock context means that the invocation - is being performed in "trial" mode, just to gather the - target method and arguments that need to be matched later - when the actual invocation is made. - - - - - A that returns an empty default value - for non-mockeable types, and mocks for all other types (interfaces and - non-sealed classes) that can be mocked. - - - - - Allows querying the universe of mocks for those that behave - according to the LINQ query specification. - - - This entry-point into Linq to Mocks is the only one in the root Moq - namespace to ease discovery. But to get all the mocking extension - methods on Object, a using of Moq.Linq must be done, so that the - polluting of the intellisense for all objects is an explicit opt-in. - - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The type of the mocked object to query. - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The predicate with the setup expressions. - The type of the mocked object to query. - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the setup expressions. - The type of the mocked object. - The mocked object created. - - - - Creates the mock query with the underlying queriable implementation. - - - - - Wraps the enumerator inside a queryable. - - - - - Method that is turned into the actual call from .Query{T}, to - transform the queryable query into a normal enumerable query. - This method is never used directly by consumers. - - - - - Extension method used to support Linq-like setup properties that are not virtual but do have - a getter and a setter, thereby allowing the use of Linq to Mocks to quickly initialize Dtos too :) - - - - - Helper extensions that are used by the query translator. - - - - - Retrieves a fluent mock from the given setup expression. - - - - - Defines the number of invocations allowed by a mocked method. - - - - - Specifies that a mocked method should be invoked times as minimum. - The minimun number of times.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked one time as minimum. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked time as maximun. - The maximun number of times.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked one time as maximun. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked between and - times. - The minimun number of times.The maximun number of times. - The kind of range. See . - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked exactly times. - The times that a method or property can be called.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should not be invoked. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked exactly one time. - An object defining the allowed number of invocations. - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Determines whether two specified objects have the same value. - - The first . - - The second . - - true if the value of left is the same as the value of right; otherwise, false. - - - - - Determines whether two specified objects have different values. - - The first . - - The second . - - true if the value of left is different from the value of right; otherwise, false. - - - - diff --git a/packages/Moq.4.0.10827/lib/NET40/Moq.dll b/packages/Moq.4.0.10827/lib/NET40/Moq.dll deleted file mode 100644 index 3a3e653..0000000 Binary files a/packages/Moq.4.0.10827/lib/NET40/Moq.dll and /dev/null differ diff --git a/packages/Moq.4.0.10827/lib/NET40/Moq.pdb b/packages/Moq.4.0.10827/lib/NET40/Moq.pdb deleted file mode 100644 index 03cca56..0000000 Binary files a/packages/Moq.4.0.10827/lib/NET40/Moq.pdb and /dev/null differ diff --git a/packages/Moq.4.0.10827/lib/NET40/Moq.xml b/packages/Moq.4.0.10827/lib/NET40/Moq.xml deleted file mode 100644 index 13b8804..0000000 --- a/packages/Moq.4.0.10827/lib/NET40/Moq.xml +++ /dev/null @@ -1,5120 +0,0 @@ - - - - Moq - - - - - Implements the fluent API. - - - - - The expectation will be considered only in the former condition. - - - - - - - The expectation will be considered only in the former condition. - - - - - - - - Setups the get. - - The type of the property. - The expression. - - - - - Setups the set. - - The type of the property. - The setter expression. - - - - - Setups the set. - - The setter expression. - - - - - Defines the Callback verb and overloads. - - - - - Helper interface used to hide the base - members from the fluent API to make it much cleaner - in Visual Studio intellisense. - - - - - - - - - - - - - - - - - Specifies a callback to invoke when the method is called. - - The callback method to invoke. - - The following example specifies a callback to set a boolean - value that can be used later: - - var called = false; - mock.Setup(x => x.Execute()) - .Callback(() => called = true); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The argument type of the invoked method. - The callback method to invoke. - - Invokes the given callback with the concrete invocation argument value. - - Notice how the specific string argument is retrieved by simply declaring - it as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Callback((string command) => Console.WriteLine(command)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2) => Console.WriteLine(arg1 + arg2)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3) => Console.WriteLine(arg1 + arg2 + arg3)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16)); - - - - - - Defines the Callback verb and overloads for callbacks on - setups that return a value. - - Mocked type. - Type of the return value of the setup. - - - - Specifies a callback to invoke when the method is called. - - The callback method to invoke. - - The following example specifies a callback to set a boolean value that can be used later: - - var called = false; - mock.Setup(x => x.Execute()) - .Callback(() => called = true) - .Returns(true); - - Note that in the case of value-returning methods, after the Callback - call you can still specify the return value. - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the argument of the invoked method. - Callback method to invoke. - - Invokes the given callback with the concrete invocation argument value. - - Notice how the specific string argument is retrieved by simply declaring - it as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Callback(command => Console.WriteLine(command)) - .Returns(true); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2) => Console.WriteLine(arg1 + arg2)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3) => Console.WriteLine(arg1 + arg2 + arg3)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16)); - - - - - - Defines the Raises verb. - - - - - Specifies the event that will be raised - when the setup is met. - - An expression that represents an event attach or detach action. - The event arguments to pass for the raised event. - - The following example shows how to raise an event when - the setup is met: - - var mock = new Mock<IContainer>(); - - mock.Setup(add => add.Add(It.IsAny<string>(), It.IsAny<object>())) - .Raises(add => add.Added += null, EventArgs.Empty); - - - - - - Specifies the event that will be raised - when the setup is matched. - - An expression that represents an event attach or detach action. - A function that will build the - to pass when raising the event. - - - - - Specifies the custom event that will be raised - when the setup is matched. - - An expression that represents an event attach or detach action. - The arguments to pass to the custom delegate (non EventHandler-compatible). - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - The type of the fifteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - The type of the fifteenth argument received by the expected invocation. - The type of the sixteenth argument received by the expected invocation. - - - - - Defines the Returns verb. - - Mocked type. - Type of the return value from the expression. - - - - Specifies the value to return. - - The value to return, or . - - Return a true value from the method call: - - mock.Setup(x => x.Execute("ping")) - .Returns(true); - - - - - - Specifies a function that will calculate the value to return from the method. - - The function that will calculate the return value. - - Return a calculated value when the method is called: - - mock.Setup(x => x.Execute("ping")) - .Returns(() => returnValues[0]); - - The lambda expression to retrieve the return value is lazy-executed, - meaning that its value may change depending on the moment the method - is executed and the value the returnValues array has at - that moment. - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the argument of the invoked method. - The function that will calculate the return value. - - Return a calculated value which is evaluated lazily at the time of the invocation. - - The lookup list can change between invocations and the setup - will return different values accordingly. Also, notice how the specific - string argument is retrieved by simply declaring it as part of the lambda - expression: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Returns((string command) => returnValues[command]); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2) => arg1 + arg2); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3) => arg1 + arg2 + arg3); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4) => arg1 + arg2 + arg3 + arg4); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5) => arg1 + arg2 + arg3 + arg4 + arg5); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16); - - - - - - Language for ReturnSequence - - - - - Returns value - - - - - Throws an exception - - - - - Throws an exception - - - - - The first method call or member access will be the - last segment of the expression (depth-first traversal), - which is the one we have to Setup rather than FluentMock. - And the last one is the one we have to Mock.Get rather - than FluentMock. - - - - - Base class for mocks and static helper class with methods that - apply to mocked objects, such as to - retrieve a from an object instance. - - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the specification of how the mocked object should behave. - The type of the mocked object. - The mocked object created. - - - - Initializes a new instance of the class. - - - - - Retrieves the mock object for the given object instance. - - Type of the mock to retrieve. Can be omitted as it's inferred - from the object instance passed in as the instance. - The instance of the mocked object.The mock associated with the mocked object. - The received instance - was not created by Moq. - - The following example shows how to add a new setup to an object - instance which is not the original but rather - the object associated with it: - - // Typed instance, not the mock, is retrieved from some test API. - HttpContextBase context = GetMockContext(); - - // context.Request is the typed object from the "real" API - // so in order to add a setup to it, we need to get - // the mock that "owns" it - Mock<HttpRequestBase> request = Mock.Get(context.Request); - mock.Setup(req => req.AppRelativeCurrentExecutionFilePath) - .Returns(tempUrl); - - - - - - Returns the mocked object value. - - - - - Verifies that all verifiable expectations have been met. - - This example sets up an expectation and marks it as verifiable. After - the mock is used, a Verify() call is issued on the mock - to ensure the method in the setup was invoked: - - var mock = new Mock<IWarehouse>(); - this.Setup(x => x.HasInventory(TALISKER, 50)).Verifiable().Returns(true); - ... - // other test code - ... - // Will throw if the test code has didn't call HasInventory. - this.Verify(); - - Not all verifiable expectations were met. - - - - Verifies all expectations regardless of whether they have - been flagged as verifiable. - - This example sets up an expectation without marking it as verifiable. After - the mock is used, a call is issued on the mock - to ensure that all expectations are met: - - var mock = new Mock<IWarehouse>(); - this.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true); - ... - // other test code - ... - // Will throw if the test code has didn't call HasInventory, even - // that expectation was not marked as verifiable. - this.VerifyAll(); - - At least one expectation was not met. - - - - Gets the interceptor target for the given expression and root mock, - building the intermediate hierarchy of mock objects if necessary. - - - - - Raises the associated event with the given - event argument data. - - - - - Raises the associated event with the given - event argument data. - - - - - Adds an interface implementation to the mock, - allowing setups to be specified for it. - - This method can only be called before the first use - of the mock property, at which - point the runtime type has already been generated - and no more interfaces can be added to it. - - Also, must be an - interface and not a class, which must be specified - when creating the mock instead. - - - The mock type - has already been generated by accessing the property. - - The specified - is not an interface. - - The following example creates a mock for the main interface - and later adds to it to verify - it's called by the consumer code: - - var mock = new Mock<IProcessor>(); - mock.Setup(x => x.Execute("ping")); - - // add IDisposable interface - var disposable = mock.As<IDisposable>(); - disposable.Setup(d => d.Dispose()).Verifiable(); - - Type of interface to cast the mock to. - - - - - - - Behavior of the mock, according to the value set in the constructor. - - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Gets the mocked object instance. - - - - - Retrieves the type of the mocked object, its generic type argument. - This is used in the auto-mocking of hierarchy access. - - - - - Specifies the class that will determine the default - value to return when invocations are made that - have no setups and need to return a default - value (for loose mocks). - - - - - Exposes the list of extra interfaces implemented by the mock. - - - - - Utility repository class to use to construct multiple - mocks when consistent verification is - desired for all of them. - - - If multiple mocks will be created during a test, passing - the desired (if different than the - or the one - passed to the repository constructor) and later verifying each - mock can become repetitive and tedious. - - This repository class helps in that scenario by providing a - simplified creation of multiple mocks with a default - (unless overriden by calling - ) and posterior verification. - - - - The following is a straightforward example on how to - create and automatically verify strict mocks using a : - - var repository = new MockRepository(MockBehavior.Strict); - - var foo = repository.Create<IFoo>(); - var bar = repository.Create<IBar>(); - - // no need to call Verifiable() on the setup - // as we'll be validating all of them anyway. - foo.Setup(f => f.Do()); - bar.Setup(b => b.Redo()); - - // exercise the mocks here - - repository.VerifyAll(); - // At this point all setups are already checked - // and an optional MockException might be thrown. - // Note also that because the mocks are strict, any invocation - // that doesn't have a matching setup will also throw a MockException. - - The following examples shows how to setup the repository - to create loose mocks and later verify only verifiable setups: - - var repository = new MockRepository(MockBehavior.Loose); - - var foo = repository.Create<IFoo>(); - var bar = repository.Create<IBar>(); - - // this setup will be verified when we verify the repository - foo.Setup(f => f.Do()).Verifiable(); - - // this setup will NOT be verified - foo.Setup(f => f.Calculate()); - - // this setup will be verified when we verify the repository - bar.Setup(b => b.Redo()).Verifiable(); - - // exercise the mocks here - // note that because the mocks are Loose, members - // called in the interfaces for which no matching - // setups exist will NOT throw exceptions, - // and will rather return default values. - - repository.Verify(); - // At this point verifiable setups are already checked - // and an optional MockException might be thrown. - - The following examples shows how to setup the repository with a - default strict behavior, overriding that default for a - specific mock: - - var repository = new MockRepository(MockBehavior.Strict); - - // this particular one we want loose - var foo = repository.Create<IFoo>(MockBehavior.Loose); - var bar = repository.Create<IBar>(); - - // specify setups - - // exercise the mocks here - - repository.Verify(); - - - - - - - Utility factory class to use to construct multiple - mocks when consistent verification is - desired for all of them. - - - If multiple mocks will be created during a test, passing - the desired (if different than the - or the one - passed to the factory constructor) and later verifying each - mock can become repetitive and tedious. - - This factory class helps in that scenario by providing a - simplified creation of multiple mocks with a default - (unless overriden by calling - ) and posterior verification. - - - - The following is a straightforward example on how to - create and automatically verify strict mocks using a : - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(); - var bar = factory.Create<IBar>(); - - // no need to call Verifiable() on the setup - // as we'll be validating all of them anyway. - foo.Setup(f => f.Do()); - bar.Setup(b => b.Redo()); - - // exercise the mocks here - - factory.VerifyAll(); - // At this point all setups are already checked - // and an optional MockException might be thrown. - // Note also that because the mocks are strict, any invocation - // that doesn't have a matching setup will also throw a MockException. - - The following examples shows how to setup the factory - to create loose mocks and later verify only verifiable setups: - - var factory = new MockFactory(MockBehavior.Loose); - - var foo = factory.Create<IFoo>(); - var bar = factory.Create<IBar>(); - - // this setup will be verified when we verify the factory - foo.Setup(f => f.Do()).Verifiable(); - - // this setup will NOT be verified - foo.Setup(f => f.Calculate()); - - // this setup will be verified when we verify the factory - bar.Setup(b => b.Redo()).Verifiable(); - - // exercise the mocks here - // note that because the mocks are Loose, members - // called in the interfaces for which no matching - // setups exist will NOT throw exceptions, - // and will rather return default values. - - factory.Verify(); - // At this point verifiable setups are already checked - // and an optional MockException might be thrown. - - The following examples shows how to setup the factory with a - default strict behavior, overriding that default for a - specific mock: - - var factory = new MockFactory(MockBehavior.Strict); - - // this particular one we want loose - var foo = factory.Create<IFoo>(MockBehavior.Loose); - var bar = factory.Create<IBar>(); - - // specify setups - - // exercise the mocks here - - factory.Verify(); - - - - - - - Initializes the factory with the given - for newly created mocks from the factory. - - The behavior to use for mocks created - using the factory method if not overriden - by using the overload. - - - - Creates a new mock with the default - specified at factory construction time. - - Type to mock. - A new . - - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(); - // use mock on tests - - factory.VerifyAll(); - - - - - - Creates a new mock with the default - specified at factory construction time and with the - the given constructor arguments for the class. - - - The mock will try to find the best match constructor given the - constructor arguments, and invoke that to initialize the instance. - This applies only to classes, not interfaces. - - Type to mock. - Constructor arguments for mocked classes. - A new . - - - var factory = new MockFactory(MockBehavior.Default); - - var mock = factory.Create<MyBase>("Foo", 25, true); - // use mock on tests - - factory.Verify(); - - - - - - Creates a new mock with the given . - - Type to mock. - Behavior to use for the mock, which overrides - the default behavior specified at factory construction time. - A new . - - The following example shows how to create a mock with a different - behavior to that specified as the default for the factory: - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(MockBehavior.Loose); - - - - - - Creates a new mock with the given - and with the the given constructor arguments for the class. - - - The mock will try to find the best match constructor given the - constructor arguments, and invoke that to initialize the instance. - This applies only to classes, not interfaces. - - Type to mock. - Behavior to use for the mock, which overrides - the default behavior specified at factory construction time. - Constructor arguments for mocked classes. - A new . - - The following example shows how to create a mock with a different - behavior to that specified as the default for the factory, passing - constructor arguments: - - var factory = new MockFactory(MockBehavior.Default); - - var mock = factory.Create<MyBase>(MockBehavior.Strict, "Foo", 25, true); - - - - - - Implements creation of a new mock within the factory. - - Type to mock. - The behavior for the new mock. - Optional arguments for the construction of the mock. - - - - Verifies all verifiable expectations on all mocks created - by this factory. - - - One or more mocks had expectations that were not satisfied. - - - - Verifies all verifiable expectations on all mocks created - by this factory. - - - One or more mocks had expectations that were not satisfied. - - - - Invokes for each mock - in , and accumulates the resulting - that might be - thrown from the action. - - The action to execute against - each mock. - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Gets the mocks that have been created by this factory and - that will get verified together. - - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The type of the mocked object to query. - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The predicate with the setup expressions. - The type of the mocked object to query. - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the setup expressions. - The type of the mocked object. - The mocked object created. - - - - Creates the mock query with the underlying queriable implementation. - - - - - Wraps the enumerator inside a queryable. - - - - - Method that is turned into the actual call from .Query{T}, to - transform the queryable query into a normal enumerable query. - This method is never used directly by consumers. - - - - - Initializes the repository with the given - for newly created mocks from the repository. - - The behavior to use for mocks created - using the repository method if not overriden - by using the overload. - - - - A that returns an empty default value - for invocations that do not have setups or return values, with loose mocks. - This is the default behavior for a mock. - - - - - Interface to be implemented by classes that determine the - default value of non-expected invocations. - - - - - Defines the default value to return in all the methods returning . - The type of the return value.The value to set as default. - - - - Provides a value for the given member and arguments. - - The member to provide a default value for. - - - - - The intention of is to create a more readable - string representation for the failure message. - - - - - Implements the fluent API. - - - - - Defines the Throws verb. - - - - - Specifies the exception to throw when the method is invoked. - - Exception instance to throw. - - This example shows how to throw an exception when the method is - invoked with an empty string argument: - - mock.Setup(x => x.Execute("")) - .Throws(new ArgumentException()); - - - - - - Specifies the type of exception to throw when the method is invoked. - - Type of exception to instantiate and throw when the setup is matched. - - This example shows how to throw an exception when the method is - invoked with an empty string argument: - - mock.Setup(x => x.Execute("")) - .Throws<ArgumentException>(); - - - - - - Implements the fluent API. - - - - - Defines occurrence members to constraint setups. - - - - - The expected invocation can happen at most once. - - - - var mock = new Mock<ICommand>(); - mock.Setup(foo => foo.Execute("ping")) - .AtMostOnce(); - - - - - - The expected invocation can happen at most specified number of times. - - The number of times to accept calls. - - - var mock = new Mock<ICommand>(); - mock.Setup(foo => foo.Execute("ping")) - .AtMost( 5 ); - - - - - - Defines the Verifiable verb. - - - - - Marks the expectation as verifiable, meaning that a call - to will check if this particular - expectation was met. - - - The following example marks the expectation as verifiable: - - mock.Expect(x => x.Execute("ping")) - .Returns(true) - .Verifiable(); - - - - - - Marks the expectation as verifiable, meaning that a call - to will check if this particular - expectation was met, and specifies a message for failures. - - - The following example marks the expectation as verifiable: - - mock.Expect(x => x.Execute("ping")) - .Returns(true) - .Verifiable("Ping should be executed always!"); - - - - - - Implements the fluent API. - - - - - We need this non-generics base class so that - we can use from - generic code. - - - - - Implements the fluent API. - - - - - Implements the fluent API. - - - - - Implements the fluent API. - - - - - Defines the Callback verb for property getter setups. - - - Mocked type. - Type of the property. - - - - Specifies a callback to invoke when the property is retrieved. - - Callback method to invoke. - - Invokes the given callback with the property value being set. - - mock.SetupGet(x => x.Suspended) - .Callback(() => called = true) - .Returns(true); - - - - - - Implements the fluent API. - - - - - Defines the Returns verb for property get setups. - - Mocked type. - Type of the property. - - - - Specifies the value to return. - - The value to return, or . - - Return a true value from the property getter call: - - mock.SetupGet(x => x.Suspended) - .Returns(true); - - - - - - Specifies a function that will calculate the value to return for the property. - - The function that will calculate the return value. - - Return a calculated value when the property is retrieved: - - mock.SetupGet(x => x.Suspended) - .Returns(() => returnValues[0]); - - The lambda expression to retrieve the return value is lazy-executed, - meaning that its value may change depending on the moment the property - is retrieved and the value the returnValues array has at - that moment. - - - - - Implements the fluent API. - - - - - Helper class to setup a full trace between many mocks - - - - - Initialize a trace setup - - - - - Allow sequence to be repeated - - - - - define nice api - - - - - Perform an expectation in the trace. - - - - - Marks a method as a matcher, which allows complete replacement - of the built-in class with your own argument - matching rules. - - - This feature has been deprecated in favor of the new - and simpler . - - - The argument matching is used to determine whether a concrete - invocation in the mock matches a given setup. This - matching mechanism is fully extensible. - - - There are two parts of a matcher: the compiler matcher - and the runtime matcher. - - - Compiler matcher - Used to satisfy the compiler requirements for the - argument. Needs to be a method optionally receiving any arguments - you might need for the matching, but with a return type that - matches that of the argument. - - Let's say I want to match a lists of orders that contains - a particular one. I might create a compiler matcher like the following: - - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return null; - } - } - - Now we can invoke this static method instead of an argument in an - invocation: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - Note that the return value from the compiler matcher is irrelevant. - This method will never be called, and is just used to satisfy the - compiler and to signal Moq that this is not a method that we want - to be invoked at runtime. - - - - Runtime matcher - - The runtime matcher is the one that will actually perform evaluation - when the test is run, and is defined by convention to have the - same signature as the compiler matcher, but where the return - value is the first argument to the call, which contains the - object received by the actual invocation at runtime: - - public static bool Contains(IEnumerable<Order> orders, Order order) - { - return orders.Contains(order); - } - - At runtime, the mocked method will be invoked with a specific - list of orders. This value will be passed to this runtime - matcher as the first argument, while the second argument is the - one specified in the setup (x.Save(Orders.Contains(order))). - - The boolean returned determines whether the given argument has been - matched. If all arguments to the expected method are matched, then - the setup matches and is evaluated. - - - - - - Using this extensible infrastructure, you can easily replace the entire - set of matchers with your own. You can also avoid the - typical (and annoying) lengthy expressions that result when you have - multiple arguments that use generics. - - - The following is the complete example explained above: - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return null; - } - - public static bool Contains(IEnumerable<Order> orders, Order order) - { - return orders.Contains(order); - } - } - - And the concrete test using this matcher: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - // use mock, invoke Save, and have the matcher filter. - - - - - - Provides a mock implementation of . - - Any interface type can be used for mocking, but for classes, only abstract and virtual members can be mocked. - - The behavior of the mock with regards to the setups and the actual calls is determined - by the optional that can be passed to the - constructor. - - Type to mock, which can be an interface or a class. - The following example shows establishing setups with specific values - for method invocations: - - // Arrange - var order = new Order(TALISKER, 50); - var mock = new Mock<IWarehouse>(); - - mock.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true); - - // Act - order.Fill(mock.Object); - - // Assert - Assert.True(order.IsFilled); - - The following example shows how to use the class - to specify conditions for arguments instead of specific values: - - // Arrange - var order = new Order(TALISKER, 50); - var mock = new Mock<IWarehouse>(); - - // shows how to expect a value within a range - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsInRange(0, 100, Range.Inclusive))) - .Returns(false); - - // shows how to throw for unexpected calls. - mock.Setup(x => x.Remove( - It.IsAny<string>(), - It.IsAny<int>())) - .Throws(new InvalidOperationException()); - - // Act - order.Fill(mock.Object); - - // Assert - Assert.False(order.IsFilled); - - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Ctor invoked by AsTInterface exclusively. - - - - - Initializes an instance of the mock with default behavior. - - var mock = new Mock<IFormatProvider>(); - - - - - Initializes an instance of the mock with default behavior and with - the given constructor arguments for the class. (Only valid when is a class) - - The mock will try to find the best match constructor given the constructor arguments, and invoke that - to initialize the instance. This applies only for classes, not interfaces. - - var mock = new Mock<MyProvider>(someArgument, 25); - Optional constructor arguments if the mocked type is a class. - - - - Initializes an instance of the mock with the specified behavior. - - var mock = new Mock<IFormatProvider>(MockBehavior.Relaxed); - Behavior of the mock. - - - - Initializes an instance of the mock with a specific behavior with - the given constructor arguments for the class. - - The mock will try to find the best match constructor given the constructor arguments, and invoke that - to initialize the instance. This applies only to classes, not interfaces. - - var mock = new Mock<MyProvider>(someArgument, 25); - Behavior of the mock.Optional constructor arguments if the mocked type is a class. - - - - Returns the mocked object value. - - - - - Specifies a setup on the mocked type for a call to - to a void method. - - If more than one setup is specified for the same method or property, - the latest one wins and is the one that will be executed. - Lambda expression that specifies the expected method invocation. - - var mock = new Mock<IProcessor>(); - mock.Setup(x => x.Execute("ping")); - - - - - - Specifies a setup on the mocked type for a call to - to a value returning method. - Type of the return value. Typically omitted as it can be inferred from the expression. - If more than one setup is specified for the same method or property, - the latest one wins and is the one that will be executed. - Lambda expression that specifies the method invocation. - - mock.Setup(x => x.HasInventory("Talisker", 50)).Returns(true); - - - - - - Specifies a setup on the mocked type for a call to - to a property getter. - - If more than one setup is set for the same property getter, - the latest one wins and is the one that will be executed. - Type of the property. Typically omitted as it can be inferred from the expression.Lambda expression that specifies the property getter. - - mock.SetupGet(x => x.Suspended) - .Returns(true); - - - - - - Specifies a setup on the mocked type for a call to - to a property setter. - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - - This overloads allows the use of a callback already - typed for the property type. - - Type of the property. Typically omitted as it can be inferred from the expression.The Lambda expression that sets a property to a value. - - mock.SetupSet(x => x.Suspended = true); - - - - - - Specifies a setup on the mocked type for a call to - to a property setter. - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - Lambda expression that sets a property to a value. - - mock.SetupSet(x => x.Suspended = true); - - - - - - Specifies that the given property should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. (this is also - known as "stubbing"). - - Type of the property, inferred from the property - expression (does not need to be specified). - Property expression to stub. - If you have an interface with an int property Value, you might - stub it using the following straightforward call: - - var mock = new Mock<IHaveValue>(); - mock.Stub(v => v.Value); - - After the Stub call has been issued, setting and - retrieving the object value will behave as expected: - - IHaveValue v = mock.Object; - - v.Value = 5; - Assert.Equal(5, v.Value); - - - - - - Specifies that the given property should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. This overload - allows setting the initial value for the property. (this is also - known as "stubbing"). - - Type of the property, inferred from the property - expression (does not need to be specified). - Property expression to stub.Initial value for the property. - If you have an interface with an int property Value, you might - stub it using the following straightforward call: - - var mock = new Mock<IHaveValue>(); - mock.SetupProperty(v => v.Value, 5); - - After the SetupProperty call has been issued, setting and - retrieving the object value will behave as expected: - - IHaveValue v = mock.Object; - // Initial value was stored - Assert.Equal(5, v.Value); - - // New value set which changes the initial value - v.Value = 6; - Assert.Equal(6, v.Value); - - - - - - Specifies that the all properties on the mock should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. (this is also - known as "stubbing"). The default value for each property will be the - one generated as specified by the property for the mock. - - If the mock is set to , - the mocked default values will also get all properties setup recursively. - - - - - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjuntion with the default . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IProcessor>(); - // exercise mock - //... - // Will throw if the test code didn't call Execute with a "ping" string argument. - mock.Verify(proc => proc.Execute("ping")); - - The invocation was not performed on the mock.Expression to verify. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjuntion with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjuntion with the default - . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IProcessor>(); - // exercise mock - //... - // Will throw if the test code didn't call Execute with a "ping" string argument. - mock.Verify(proc => proc.Execute("ping")); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjuntion with the default - . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjuntion with the default . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't call HasInventory. - mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50)); - - The invocation was not performed on the mock.Expression to verify.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock. Use in conjuntion - with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock, specifying a failure - error message. - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't call HasInventory. - mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50), "When filling orders, inventory has to be checked"); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails.Type of return value from the expression. - - - - Verifies that a property was read on the mock. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was retrieved from it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't retrieve the IsClosed property. - mock.VerifyGet(warehouse => warehouse.IsClosed); - - The invocation was not performed on the mock.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was retrieved from it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't retrieve the IsClosed property. - mock.VerifyGet(warehouse => warehouse.IsClosed); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was set on the mock. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was set on it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed = true); - - The invocation was not performed on the mock.Expression to verify. - - - - Verifies that a property was set on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was set on it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed = true, "Warehouse should always be closed after the action"); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - - - - Raises the event referenced in using - the given argument. - - The argument is - invalid for the target event invocation, or the is - not an event attach or detach expression. - - The following example shows how to raise a event: - - var mock = new Mock<IViewModel>(); - - mock.Raise(x => x.PropertyChanged -= null, new PropertyChangedEventArgs("Name")); - - - This example shows how to invoke an event with a custom event arguments - class in a view that will cause its corresponding presenter to - react by changing its state: - - var mockView = new Mock<IOrdersView>(); - var presenter = new OrdersPresenter(mockView.Object); - - // Check that the presenter has no selection by default - Assert.Null(presenter.SelectedOrder); - - // Raise the event with a specific arguments data - mockView.Raise(v => v.SelectionChanged += null, new OrderEventArgs { Order = new Order("moq", 500) }); - - // Now the presenter reacted to the event, and we have a selected order - Assert.NotNull(presenter.SelectedOrder); - Assert.Equal("moq", presenter.SelectedOrder.ProductName); - - - - - - Raises the event referenced in using - the given argument for a non-EventHandler typed event. - - The arguments are - invalid for the target event invocation, or the is - not an event attach or detach expression. - - The following example shows how to raise a custom event that does not adhere to - the standard EventHandler: - - var mock = new Mock<IViewModel>(); - - mock.Raise(x => x.MyEvent -= null, "Name", bool, 25); - - - - - - Exposes the mocked object instance. - - - - - Provides legacy API members as extensions so that - existing code continues to compile, but new code - doesn't see then. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Provides additional methods on mocks. - - - Provided as extension methods as they confuse the compiler - with the overloads taking Action. - - - - - Specifies a setup on the mocked type for a call to - to a property setter, regardless of its value. - - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - - Type of the property. Typically omitted as it can be inferred from the expression. - Type of the mock. - The target mock for the setup. - Lambda expression that specifies the property setter. - - - mock.SetupSet(x => x.Suspended); - - - - This method is not legacy, but must be on an extension method to avoid - confusing the compiler with the new Action syntax. - - - - - Verifies that a property has been set on the mock, regarless of its value. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - Expression to verify. - The mock instance. - Mocked type. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, specifying a failure - error message. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - Expression to verify. - Message to show if verification fails. - The mock instance. - Mocked type. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, regardless - of the value but only the specified number of times. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - The invocation was not call the times specified by - . - The mock instance. - Mocked type. - The number of times a method is allowed to be called. - Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, regardless - of the value but only the specified number of times, and specifying a failure - error message. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - The invocation was not call the times specified by - . - The mock instance. - Mocked type. - The number of times a method is allowed to be called. - Message to show if verification fails. - Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Helper for sequencing return values in the same method. - - - - - Return a sequence of values, once per call. - - - - - Casts the expression to a lambda expression, removing - a cast if there's any. - - - - - Casts the body of the lambda expression to a . - - If the body is not a method call. - - - - Converts the body of the lambda expression into the referenced by it. - - - - - Checks whether the body of the lambda expression is a property access. - - - - - Checks whether the expression is a property access. - - - - - Checks whether the body of the lambda expression is a property indexer, which is true - when the expression is an whose - has - equal to . - - - - - Checks whether the expression is a property indexer, which is true - when the expression is an whose - has - equal to . - - - - - Creates an expression that casts the given expression to the - type. - - - - - TODO: remove this code when https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=331583 - is fixed. - - - - - Provides partial evaluation of subtrees, whenever they can be evaluated locally. - - Matt Warren: http://blogs.msdn.com/mattwar - Documented by InSTEDD: http://www.instedd.org - - - - Performs evaluation and replacement of independent sub-trees - - The root of the expression tree. - A function that decides whether a given expression - node can be part of the local function. - A new tree with sub-trees evaluated and replaced. - - - - Performs evaluation and replacement of independent sub-trees - - The root of the expression tree. - A new tree with sub-trees evaluated and replaced. - - - - Evaluates and replaces sub-trees when first candidate is reached (top-down) - - - - - Performs bottom-up analysis to determine which nodes can possibly - be part of an evaluated sub-tree. - - - - - Ensures the given is not null. - Throws otherwise. - - - - - Ensures the given string is not null or empty. - Throws in the first case, or - in the latter. - - - - - Checks an argument to ensure it is in the specified range including the edges. - - Type of the argument to check, it must be an type. - - The expression containing the name of the argument. - The argument value to check. - The minimun allowed value for the argument. - The maximun allowed value for the argument. - - - - Checks an argument to ensure it is in the specified range excluding the edges. - - Type of the argument to check, it must be an type. - - The expression containing the name of the argument. - The argument value to check. - The minimun allowed value for the argument. - The maximun allowed value for the argument. - - - - Implemented by all generated mock object instances. - - - - - Implemented by all generated mock object instances. - - - - - Reference the Mock that contains this as the mock.Object value. - - - - - Reference the Mock that contains this as the mock.Object value. - - - - - Implements the actual interception and method invocation for - all mocks. - - - - - Get an eventInfo for a given event name. Search type ancestors depth first if necessary. - - Name of the event, with the set_ or get_ prefix already removed - - - - Given a type return all of its ancestors, both types and interfaces. - - The type to find immediate ancestors of - - - - Implements the fluent API. - - - - - Defines the Callback verb for property setter setups. - - Type of the property. - - - - Specifies a callback to invoke when the property is set that receives the - property value being set. - - Callback method to invoke. - - Invokes the given callback with the property value being set. - - mock.SetupSet(x => x.Suspended) - .Callback((bool state) => Console.WriteLine(state)); - - - - - - Allows the specification of a matching condition for an - argument in a method invocation, rather than a specific - argument value. "It" refers to the argument being matched. - - This class allows the setup to match a method invocation - with an arbitrary value, with a value in a specified range, or - even one that matches a given predicate. - - - - - Matches any value of the given type. - - Typically used when the actual argument value for a method - call is not relevant. - - - // Throws an exception for a call to Remove with any string value. - mock.Setup(x => x.Remove(It.IsAny<string>())).Throws(new InvalidOperationException()); - - Type of the value. - - - - Matches any value that satisfies the given predicate. - Type of the argument to check.The predicate used to match the method argument. - Allows the specification of a predicate to perform matching - of method call arguments. - - This example shows how to return the value 1 whenever the argument to the - Do method is an even number. - - mock.Setup(x => x.Do(It.Is<int>(i => i % 2 == 0))) - .Returns(1); - - This example shows how to throw an exception if the argument to the - method is a negative number: - - mock.Setup(x => x.GetUser(It.Is<int>(i => i < 0))) - .Throws(new ArgumentException()); - - - - - - Matches any value that is in the range specified. - Type of the argument to check.The lower bound of the range.The upper bound of the range. - The kind of range. See . - - The following example shows how to expect a method call - with an integer argument within the 0..100 range. - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsInRange(0, 100, Range.Inclusive))) - .Returns(false); - - - - - - Matches a string argument if it matches the given regular expression pattern. - The pattern to use to match the string argument value. - The following example shows how to expect a call to a method where the - string argument matches the given regular expression: - - mock.Setup(x => x.Check(It.IsRegex("[a-z]+"))).Returns(1); - - - - - - Matches a string argument if it matches the given regular expression pattern. - The pattern to use to match the string argument value.The options used to interpret the pattern. - The following example shows how to expect a call to a method where the - string argument matches the given regular expression, in a case insensitive way: - - mock.Setup(x => x.Check(It.IsRegex("[a-z]+", RegexOptions.IgnoreCase))).Returns(1); - - - - - - Matcher to treat static functions as matchers. - - mock.Setup(x => x.StringMethod(A.MagicString())); - - public static class A - { - [Matcher] - public static string MagicString() { return null; } - public static bool MagicString(string arg) - { - return arg == "magic"; - } - } - - Will succeed if: mock.Object.StringMethod("magic"); - and fail with any other call. - - - - - Options to customize the behavior of the mock. - - - - - Causes the mock to always throw - an exception for invocations that don't have a - corresponding setup. - - - - - Will never throw exceptions, returning default - values when necessary (null for reference types, - zero for value types or empty enumerables and arrays). - - - - - Default mock behavior, which equals . - - - - - Exception thrown by mocks when setups are not matched, - the mock is not properly setup, etc. - - - A distinct exception type is provided so that exceptions - thrown by the mock can be differentiated in tests that - expect other exceptions to be thrown (i.e. ArgumentException). - - Richer exception hierarchy/types are not provided as - tests typically should not catch or expect exceptions - from the mocks. These are typically the result of changes - in the tested class or its collaborators implementation, and - result in fixes in the mock setup so that they dissapear and - allow the test to pass. - - - - - - Supports the serialization infrastructure. - - Serialization information. - Streaming context. - - - - Supports the serialization infrastructure. - - Serialization information. - Streaming context. - - - - Made internal as it's of no use for - consumers, but it's important for - our own tests. - - - - - Used by the mock factory to accumulate verification - failures. - - - - - Supports the serialization infrastructure. - - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to Mock type has already been initialized by accessing its Object property. Adding interfaces must be done before that.. - - - - - Looks up a localized string similar to Value cannot be an empty string.. - - - - - Looks up a localized string similar to Can only add interfaces to the mock.. - - - - - Looks up a localized string similar to Can't set return value for void method {0}.. - - - - - Looks up a localized string similar to Constructor arguments cannot be passed for interface mocks.. - - - - - Looks up a localized string similar to A matching constructor for the given arguments was not found on the mocked type.. - - - - - Looks up a localized string similar to Could not locate event for attach or detach method {0}.. - - - - - Looks up a localized string similar to Expression {0} involves a field access, which is not supported. Use properties instead.. - - - - - Looks up a localized string similar to Type to mock must be an interface or an abstract or non-sealed class. . - - - - - Looks up a localized string similar to Cannot retrieve a mock with the given object type {0} as it's not the main type of the mock or any of its additional interfaces. - Please cast the argument to one of the supported types: {1}. - Remember that there's no generics covariance in the CLR, so your object must be one of these types in order for the call to succeed.. - - - - - Looks up a localized string similar to The equals ("==" or "=" in VB) and the conditional 'and' ("&&" or "AndAlso" in VB) operators are the only ones supported in the query specification expression. Unsupported expression: {0}. - - - - - Looks up a localized string similar to LINQ method '{0}' not supported.. - - - - - Looks up a localized string similar to Expression contains a call to a method which is not virtual (overridable in VB) or abstract. Unsupported expression: {0}. - - - - - Looks up a localized string similar to Member {0}.{1} does not exist.. - - - - - Looks up a localized string similar to Method {0}.{1} is public. Use strong-typed Expect overload instead: - mock.Setup(x => x.{1}()); - . - - - - - Looks up a localized string similar to {0} invocation failed with mock behavior {1}. - {2}. - - - - - Looks up a localized string similar to Expected only {0} calls to {1}.. - - - - - Looks up a localized string similar to Expected only one call to {0}.. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at least {2} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at least once, but was never performed: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at most {3} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at most once, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock between {2} and {3} times (Exclusive), but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock between {2} and {3} times (Inclusive), but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock exactly {2} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock should never have been performed, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock once, but was {4} times: {1}. - - - - - Looks up a localized string similar to All invocations on the mock must have a corresponding setup.. - - - - - Looks up a localized string similar to Object instance was not created by Moq.. - - - - - Looks up a localized string similar to Out expression must evaluate to a constant value.. - - - - - Looks up a localized string similar to Property {0}.{1} does not have a getter.. - - - - - Looks up a localized string similar to Property {0}.{1} does not exist.. - - - - - Looks up a localized string similar to Property {0}.{1} is write-only.. - - - - - Looks up a localized string similar to Property {0}.{1} is read-only.. - - - - - Looks up a localized string similar to Property {0}.{1} does not have a setter.. - - - - - Looks up a localized string similar to Cannot raise a mocked event unless it has been associated (attached) to a concrete event in a mocked object.. - - - - - Looks up a localized string similar to Ref expression must evaluate to a constant value.. - - - - - Looks up a localized string similar to Invocation needs to return a value and therefore must have a corresponding setup that provides it.. - - - - - Looks up a localized string similar to A lambda expression is expected as the argument to It.Is<T>.. - - - - - Looks up a localized string similar to Invocation {0} should not have been made.. - - - - - Looks up a localized string similar to Expression is not a method invocation: {0}. - - - - - Looks up a localized string similar to Expression is not a property access: {0}. - - - - - Looks up a localized string similar to Expression is not a property setter invocation.. - - - - - Looks up a localized string similar to Expression references a method that does not belong to the mocked object: {0}. - - - - - Looks up a localized string similar to Invalid setup on a non-virtual (overridable in VB) member: {0}. - - - - - Looks up a localized string similar to Type {0} does not implement required interface {1}. - - - - - Looks up a localized string similar to Type {0} does not from required type {1}. - - - - - Looks up a localized string similar to To specify a setup for public property {0}.{1}, use the typed overloads, such as: - mock.Setup(x => x.{1}).Returns(value); - mock.SetupGet(x => x.{1}).Returns(value); //equivalent to previous one - mock.SetupSet(x => x.{1}).Callback(callbackDelegate); - . - - - - - Looks up a localized string similar to Unsupported expression: {0}. - - - - - Looks up a localized string similar to Only property accesses are supported in intermediate invocations on a setup. Unsupported expression {0}.. - - - - - Looks up a localized string similar to Expression contains intermediate property access {0}.{1} which is of type {2} and cannot be mocked. Unsupported expression {3}.. - - - - - Looks up a localized string similar to Setter expression cannot use argument matchers that receive parameters.. - - - - - Looks up a localized string similar to Member {0} is not supported for protected mocking.. - - - - - Looks up a localized string similar to Setter expression can only use static custom matchers.. - - - - - Looks up a localized string similar to The following setups were not matched: - {0}. - - - - - Looks up a localized string similar to Invalid verify on a non-virtual (overridable in VB) member: {0}. - - - - - Allows setups to be specified for protected members by using their - name as a string, rather than strong-typing them which is not possible - due to their visibility. - - - - - Specifies a setup for a void method invocation with the given - , optionally specifying arguments for the method call. - - The name of the void method to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - - - - Specifies a setup for an invocation on a property or a non void method with the given - , optionally specifying arguments for the method call. - - The name of the method or property to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - The return type of the method or property. - - - - Specifies a setup for an invocation on a property getter with the given - . - - The name of the property. - The type of the property. - - - - Specifies a setup for an invocation on a property setter with the given - . - - The name of the property. - The property value. If argument matchers are used, - remember to use rather than . - The type of the property. - - - - Specifies a verify for a void method with the given , - optionally specifying arguments for the method call. Use in conjuntion with the default - . - - The invocation was not call the times specified by - . - The name of the void method to be verified. - The number of times a method is allowed to be called. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - - - - Specifies a verify for an invocation on a property or a non void method with the given - , optionally specifying arguments for the method call. - - The invocation was not call the times specified by - . - The name of the method or property to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - The number of times a method is allowed to be called. - The type of return value from the expression. - - - - Specifies a verify for an invocation on a property getter with the given - . - The invocation was not call the times specified by - . - - The name of the property. - The number of times a method is allowed to be called. - The type of the property. - - - - Specifies a setup for an invocation on a property setter with the given - . - - The invocation was not call the times specified by - . - The name of the property. - The number of times a method is allowed to be called. - The property value. - The type of the property. If argument matchers are used, - remember to use rather than . - - - - Allows the specification of a matching condition for an - argument in a protected member setup, rather than a specific - argument value. "ItExpr" refers to the argument being matched. - - - Use this variant of argument matching instead of - for protected setups. - This class allows the setup to match a method invocation - with an arbitrary value, with a value in a specified range, or - even one that matches a given predicate, or null. - - - - - Matches a null value of the given type. - - - Required for protected mocks as the null value cannot be used - directly as it prevents proper method overload selection. - - - - // Throws an exception for a call to Remove with a null string value. - mock.Protected() - .Setup("Remove", ItExpr.IsNull<string>()) - .Throws(new InvalidOperationException()); - - - Type of the value. - - - - Matches any value of the given type. - - - Typically used when the actual argument value for a method - call is not relevant. - - - - // Throws an exception for a call to Remove with any string value. - mock.Protected() - .Setup("Remove", ItExpr.IsAny<string>()) - .Throws(new InvalidOperationException()); - - - Type of the value. - - - - Matches any value that satisfies the given predicate. - - Type of the argument to check. - The predicate used to match the method argument. - - Allows the specification of a predicate to perform matching - of method call arguments. - - - This example shows how to return the value 1 whenever the argument to the - Do method is an even number. - - mock.Protected() - .Setup("Do", ItExpr.Is<int>(i => i % 2 == 0)) - .Returns(1); - - This example shows how to throw an exception if the argument to the - method is a negative number: - - mock.Protected() - .Setup("GetUser", ItExpr.Is<int>(i => i < 0)) - .Throws(new ArgumentException()); - - - - - - Matches any value that is in the range specified. - - Type of the argument to check. - The lower bound of the range. - The upper bound of the range. - The kind of range. See . - - The following example shows how to expect a method call - with an integer argument within the 0..100 range. - - mock.Protected() - .Setup("HasInventory", - ItExpr.IsAny<string>(), - ItExpr.IsInRange(0, 100, Range.Inclusive)) - .Returns(false); - - - - - - Matches a string argument if it matches the given regular expression pattern. - - The pattern to use to match the string argument value. - - The following example shows how to expect a call to a method where the - string argument matches the given regular expression: - - mock.Protected() - .Setup("Check", ItExpr.IsRegex("[a-z]+")) - .Returns(1); - - - - - - Matches a string argument if it matches the given regular expression pattern. - - The pattern to use to match the string argument value. - The options used to interpret the pattern. - - The following example shows how to expect a call to a method where the - string argument matches the given regular expression, in a case insensitive way: - - mock.Protected() - .Setup("Check", ItExpr.IsRegex("[a-z]+", RegexOptions.IgnoreCase)) - .Returns(1); - - - - - - Enables the Protected() method on , - allowing setups to be set for protected members by using their - name as a string, rather than strong-typing them which is not possible - due to their visibility. - - - - - Enable protected setups for the mock. - - Mocked object type. Typically omitted as it can be inferred from the mock instance. - The mock to set the protected setups on. - - - - - - - - - - - - Kind of range to use in a filter specified through - . - - - - - The range includes the to and - from values. - - - - - The range does not include the to and - from values. - - - - - Determines the way default values are generated - calculated for loose mocks. - - - - - Default behavior, which generates empty values for - value types (i.e. default(int)), empty array and - enumerables, and nulls for all other reference types. - - - - - Whenever the default value generated by - is null, replaces this value with a mock (if the type - can be mocked). - - - For sealed classes, a null value will be generated. - - - - - A default implementation of IQueryable for use with QueryProvider - - - - - The is a - static method that returns an IQueryable of Mocks of T which is used to - apply the linq specification to. - - - - - Allows creation custom value matchers that can be used on setups and verification, - completely replacing the built-in class with your own argument - matching rules. - - See also . - - - - - Provided for the sole purpose of rendering the delegate passed to the - matcher constructor if no friendly render lambda is provided. - - - - - Initializes the match with the condition that - will be checked in order to match invocation - values. - The condition to match against actual values. - - - - - - - - - This method is used to set an expression as the last matcher invoked, - which is used in the SetupSet to allow matchers in the prop = value - delegate expression. This delegate is executed in "fluent" mode in - order to capture the value being set, and construct the corresponding - methodcall. - This is also used in the MatcherFactory for each argument expression. - This method ensures that when we execute the delegate, we - also track the matcher that was invoked, so that when we create the - methodcall we build the expression using it, rather than the null/default - value returned from the actual invocation. - - - - - Allows creation custom value matchers that can be used on setups and verification, - completely replacing the built-in class with your own argument - matching rules. - Type of the value to match. - The argument matching is used to determine whether a concrete - invocation in the mock matches a given setup. This - matching mechanism is fully extensible. - - Creating a custom matcher is straightforward. You just need to create a method - that returns a value from a call to with - your matching condition and optional friendly render expression: - - [Matcher] - public Order IsBigOrder() - { - return Match<Order>.Create( - o => o.GrandTotal >= 5000, - /* a friendly expression to render on failures */ - () => IsBigOrder()); - } - - This method can be used in any mock setup invocation: - - mock.Setup(m => m.Submit(IsBigOrder()).Throws<UnauthorizedAccessException>(); - - At runtime, Moq knows that the return value was a matcher (note that the method MUST be - annotated with the [Matcher] attribute in order to determine this) and - evaluates your predicate with the actual value passed into your predicate. - - Another example might be a case where you want to match a lists of orders - that contains a particular one. You might create matcher like the following: - - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return Match<IEnumerable<Order>>.Create(orders => orders.Contains(order)); - } - } - - Now we can invoke this static method instead of an argument in an - invocation: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - - - - - Tracks the current mock and interception context. - - - - - Having an active fluent mock context means that the invocation - is being performed in "trial" mode, just to gather the - target method and arguments that need to be matched later - when the actual invocation is made. - - - - - A that returns an empty default value - for non-mockeable types, and mocks for all other types (interfaces and - non-sealed classes) that can be mocked. - - - - - Allows querying the universe of mocks for those that behave - according to the LINQ query specification. - - - This entry-point into Linq to Mocks is the only one in the root Moq - namespace to ease discovery. But to get all the mocking extension - methods on Object, a using of Moq.Linq must be done, so that the - polluting of the intellisense for all objects is an explicit opt-in. - - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The type of the mocked object to query. - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The predicate with the setup expressions. - The type of the mocked object to query. - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the setup expressions. - The type of the mocked object. - The mocked object created. - - - - Creates the mock query with the underlying queriable implementation. - - - - - Wraps the enumerator inside a queryable. - - - - - Method that is turned into the actual call from .Query{T}, to - transform the queryable query into a normal enumerable query. - This method is never used directly by consumers. - - - - - Extension method used to support Linq-like setup properties that are not virtual but do have - a getter and a setter, thereby allowing the use of Linq to Mocks to quickly initialize Dtos too :) - - - - - Helper extensions that are used by the query translator. - - - - - Retrieves a fluent mock from the given setup expression. - - - - - Defines the number of invocations allowed by a mocked method. - - - - - Specifies that a mocked method should be invoked times as minimum. - The minimun number of times.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked one time as minimum. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked time as maximun. - The maximun number of times.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked one time as maximun. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked between and - times. - The minimun number of times.The maximun number of times. - The kind of range. See . - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked exactly times. - The times that a method or property can be called.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should not be invoked. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked exactly one time. - An object defining the allowed number of invocations. - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Determines whether two specified objects have the same value. - - The first . - - The second . - - true if the value of left is the same as the value of right; otherwise, false. - - - - - Determines whether two specified objects have different values. - - The first . - - The second . - - true if the value of left is different from the value of right; otherwise, false. - - - - diff --git a/packages/Moq.4.0.10827/lib/Silverlight4/Castle.Core.dll b/packages/Moq.4.0.10827/lib/Silverlight4/Castle.Core.dll deleted file mode 100644 index a887ecd..0000000 Binary files a/packages/Moq.4.0.10827/lib/Silverlight4/Castle.Core.dll and /dev/null differ diff --git a/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.dll b/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.dll deleted file mode 100644 index fb516c1..0000000 Binary files a/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.dll and /dev/null differ diff --git a/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.pdb b/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.pdb deleted file mode 100644 index d33d394..0000000 Binary files a/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.pdb and /dev/null differ diff --git a/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.xml b/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.xml deleted file mode 100644 index ac37f5c..0000000 --- a/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.xml +++ /dev/null @@ -1,5101 +0,0 @@ - - - - Moq.Silverlight - - - - - Provides a mock implementation of . - - Any interface type can be used for mocking, but for classes, only abstract and virtual members can be mocked. - - The behavior of the mock with regards to the setups and the actual calls is determined - by the optional that can be passed to the - constructor. - - Type to mock, which can be an interface or a class. - The following example shows establishing setups with specific values - for method invocations: - - // Arrange - var order = new Order(TALISKER, 50); - var mock = new Mock<IWarehouse>(); - - mock.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true); - - // Act - order.Fill(mock.Object); - - // Assert - Assert.True(order.IsFilled); - - The following example shows how to use the class - to specify conditions for arguments instead of specific values: - - // Arrange - var order = new Order(TALISKER, 50); - var mock = new Mock<IWarehouse>(); - - // shows how to expect a value within a range - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsInRange(0, 100, Range.Inclusive))) - .Returns(false); - - // shows how to throw for unexpected calls. - mock.Setup(x => x.Remove( - It.IsAny<string>(), - It.IsAny<int>())) - .Throws(new InvalidOperationException()); - - // Act - order.Fill(mock.Object); - - // Assert - Assert.False(order.IsFilled); - - - - - - Base class for mocks and static helper class with methods that - apply to mocked objects, such as to - retrieve a from an object instance. - - - - - Helper interface used to hide the base - members from the fluent API to make it much cleaner - in Visual Studio intellisense. - - - - - - - - - - - - - - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the specification of how the mocked object should behave. - The type of the mocked object. - The mocked object created. - - - - Initializes a new instance of the class. - - - - - Retrieves the mock object for the given object instance. - - Type of the mock to retrieve. Can be omitted as it's inferred - from the object instance passed in as the instance. - The instance of the mocked object.The mock associated with the mocked object. - The received instance - was not created by Moq. - - The following example shows how to add a new setup to an object - instance which is not the original but rather - the object associated with it: - - // Typed instance, not the mock, is retrieved from some test API. - HttpContextBase context = GetMockContext(); - - // context.Request is the typed object from the "real" API - // so in order to add a setup to it, we need to get - // the mock that "owns" it - Mock<HttpRequestBase> request = Mock.Get(context.Request); - mock.Setup(req => req.AppRelativeCurrentExecutionFilePath) - .Returns(tempUrl); - - - - - - Returns the mocked object value. - - - - - Verifies that all verifiable expectations have been met. - - This example sets up an expectation and marks it as verifiable. After - the mock is used, a Verify() call is issued on the mock - to ensure the method in the setup was invoked: - - var mock = new Mock<IWarehouse>(); - this.Setup(x => x.HasInventory(TALISKER, 50)).Verifiable().Returns(true); - ... - // other test code - ... - // Will throw if the test code has didn't call HasInventory. - this.Verify(); - - Not all verifiable expectations were met. - - - - Verifies all expectations regardless of whether they have - been flagged as verifiable. - - This example sets up an expectation without marking it as verifiable. After - the mock is used, a call is issued on the mock - to ensure that all expectations are met: - - var mock = new Mock<IWarehouse>(); - this.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true); - ... - // other test code - ... - // Will throw if the test code has didn't call HasInventory, even - // that expectation was not marked as verifiable. - this.VerifyAll(); - - At least one expectation was not met. - - - - Gets the interceptor target for the given expression and root mock, - building the intermediate hierarchy of mock objects if necessary. - - - - - Raises the associated event with the given - event argument data. - - - - - Raises the associated event with the given - event argument data. - - - - - Adds an interface implementation to the mock, - allowing setups to be specified for it. - - This method can only be called before the first use - of the mock property, at which - point the runtime type has already been generated - and no more interfaces can be added to it. - - Also, must be an - interface and not a class, which must be specified - when creating the mock instead. - - - The mock type - has already been generated by accessing the property. - - The specified - is not an interface. - - The following example creates a mock for the main interface - and later adds to it to verify - it's called by the consumer code: - - var mock = new Mock<IProcessor>(); - mock.Setup(x => x.Execute("ping")); - - // add IDisposable interface - var disposable = mock.As<IDisposable>(); - disposable.Setup(d => d.Dispose()).Verifiable(); - - Type of interface to cast the mock to. - - - - - - - Behavior of the mock, according to the value set in the constructor. - - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Gets the mocked object instance. - - - - - Retrieves the type of the mocked object, its generic type argument. - This is used in the auto-mocking of hierarchy access. - - - - - Specifies the class that will determine the default - value to return when invocations are made that - have no setups and need to return a default - value (for loose mocks). - - - - - Exposes the list of extra interfaces implemented by the mock. - - - - - Ctor invoked by AsTInterface exclusively. - - - - - Initializes an instance of the mock with default behavior. - - var mock = new Mock<IFormatProvider>(); - - - - - Initializes an instance of the mock with default behavior and with - the given constructor arguments for the class. (Only valid when is a class) - - The mock will try to find the best match constructor given the constructor arguments, and invoke that - to initialize the instance. This applies only for classes, not interfaces. - - var mock = new Mock<MyProvider>(someArgument, 25); - Optional constructor arguments if the mocked type is a class. - - - - Initializes an instance of the mock with the specified behavior. - - var mock = new Mock<IFormatProvider>(MockBehavior.Relaxed); - Behavior of the mock. - - - - Initializes an instance of the mock with a specific behavior with - the given constructor arguments for the class. - - The mock will try to find the best match constructor given the constructor arguments, and invoke that - to initialize the instance. This applies only to classes, not interfaces. - - var mock = new Mock<MyProvider>(someArgument, 25); - Behavior of the mock.Optional constructor arguments if the mocked type is a class. - - - - Returns the mocked object value. - - - - - Specifies a setup on the mocked type for a call to - to a void method. - - If more than one setup is specified for the same method or property, - the latest one wins and is the one that will be executed. - Lambda expression that specifies the expected method invocation. - - var mock = new Mock<IProcessor>(); - mock.Setup(x => x.Execute("ping")); - - - - - - Specifies a setup on the mocked type for a call to - to a value returning method. - Type of the return value. Typically omitted as it can be inferred from the expression. - If more than one setup is specified for the same method or property, - the latest one wins and is the one that will be executed. - Lambda expression that specifies the method invocation. - - mock.Setup(x => x.HasInventory("Talisker", 50)).Returns(true); - - - - - - Specifies a setup on the mocked type for a call to - to a property getter. - - If more than one setup is set for the same property getter, - the latest one wins and is the one that will be executed. - Type of the property. Typically omitted as it can be inferred from the expression.Lambda expression that specifies the property getter. - - mock.SetupGet(x => x.Suspended) - .Returns(true); - - - - - - Specifies a setup on the mocked type for a call to - to a property setter. - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - - This overloads allows the use of a callback already - typed for the property type. - - Type of the property. Typically omitted as it can be inferred from the expression.The Lambda expression that sets a property to a value. - - mock.SetupSet(x => x.Suspended = true); - - - - - - Specifies a setup on the mocked type for a call to - to a property setter. - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - Lambda expression that sets a property to a value. - - mock.SetupSet(x => x.Suspended = true); - - - - - - Specifies that the given property should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. (this is also - known as "stubbing"). - - Type of the property, inferred from the property - expression (does not need to be specified). - Property expression to stub. - If you have an interface with an int property Value, you might - stub it using the following straightforward call: - - var mock = new Mock<IHaveValue>(); - mock.Stub(v => v.Value); - - After the Stub call has been issued, setting and - retrieving the object value will behave as expected: - - IHaveValue v = mock.Object; - - v.Value = 5; - Assert.Equal(5, v.Value); - - - - - - Specifies that the given property should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. This overload - allows setting the initial value for the property. (this is also - known as "stubbing"). - - Type of the property, inferred from the property - expression (does not need to be specified). - Property expression to stub.Initial value for the property. - If you have an interface with an int property Value, you might - stub it using the following straightforward call: - - var mock = new Mock<IHaveValue>(); - mock.SetupProperty(v => v.Value, 5); - - After the SetupProperty call has been issued, setting and - retrieving the object value will behave as expected: - - IHaveValue v = mock.Object; - // Initial value was stored - Assert.Equal(5, v.Value); - - // New value set which changes the initial value - v.Value = 6; - Assert.Equal(6, v.Value); - - - - - - Specifies that the all properties on the mock should have "property behavior", - meaning that setting its value will cause it to be saved and - later returned when the property is requested. (this is also - known as "stubbing"). The default value for each property will be the - one generated as specified by the property for the mock. - - If the mock is set to , - the mocked default values will also get all properties setup recursively. - - - - - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjuntion with the default . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IProcessor>(); - // exercise mock - //... - // Will throw if the test code didn't call Execute with a "ping" string argument. - mock.Verify(proc => proc.Execute("ping")); - - The invocation was not performed on the mock.Expression to verify. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjuntion with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjuntion with the default - . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IProcessor>(); - // exercise mock - //... - // Will throw if the test code didn't call Execute with a "ping" string argument. - mock.Verify(proc => proc.Execute("ping")); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock, - specifying a failure error message. Use in conjuntion with the default - . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails. - - - - Verifies that a specific invocation matching the given expression was performed on the mock. Use - in conjuntion with the default . - - This example assumes that the mock has been used, and later we want to verify that a given - invocation with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't call HasInventory. - mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50)); - - The invocation was not performed on the mock.Expression to verify.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock. Use in conjuntion - with the default . - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock, specifying a failure - error message. - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't call HasInventory. - mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50), "When filling orders, inventory has to be checked"); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails.Type of return value from the expression. - - - - Verifies that a specific invocation matching the given - expression was performed on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails.Type of return value from the expression. - - - - Verifies that a property was read on the mock. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was retrieved from it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't retrieve the IsClosed property. - mock.VerifyGet(warehouse => warehouse.IsClosed); - - The invocation was not performed on the mock.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was retrieved from it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't retrieve the IsClosed property. - mock.VerifyGet(warehouse => warehouse.IsClosed); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was read on the mock, specifying a failure - error message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - - Verifies that a property was set on the mock. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was set on it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed = true); - - The invocation was not performed on the mock.Expression to verify. - - - - Verifies that a property was set on the mock. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - This example assumes that the mock has been used, - and later we want to verify that a given property - was set on it: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed = true, "Warehouse should always be closed after the action"); - - The invocation was not performed on the mock.Expression to verify.Message to show if verification fails. - - - - Verifies that a property was set on the mock, specifying - a failure message. - - The invocation was not call the times specified by - . - The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails. - - - - Raises the event referenced in using - the given argument. - - The argument is - invalid for the target event invocation, or the is - not an event attach or detach expression. - - The following example shows how to raise a event: - - var mock = new Mock<IViewModel>(); - - mock.Raise(x => x.PropertyChanged -= null, new PropertyChangedEventArgs("Name")); - - - This example shows how to invoke an event with a custom event arguments - class in a view that will cause its corresponding presenter to - react by changing its state: - - var mockView = new Mock<IOrdersView>(); - var presenter = new OrdersPresenter(mockView.Object); - - // Check that the presenter has no selection by default - Assert.Null(presenter.SelectedOrder); - - // Raise the event with a specific arguments data - mockView.Raise(v => v.SelectionChanged += null, new OrderEventArgs { Order = new Order("moq", 500) }); - - // Now the presenter reacted to the event, and we have a selected order - Assert.NotNull(presenter.SelectedOrder); - Assert.Equal("moq", presenter.SelectedOrder.ProductName); - - - - - - Raises the event referenced in using - the given argument for a non-EventHandler typed event. - - The arguments are - invalid for the target event invocation, or the is - not an event attach or detach expression. - - The following example shows how to raise a custom event that does not adhere to - the standard EventHandler: - - var mock = new Mock<IViewModel>(); - - mock.Raise(x => x.MyEvent -= null, "Name", bool, 25); - - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Exposes the mocked object instance. - - - - - Implements the fluent API. - - - - - The expectation will be considered only in the former condition. - - - - - - - The expectation will be considered only in the former condition. - - - - - - - - Setups the get. - - The type of the property. - The expression. - - - - - Setups the set. - - The type of the property. - The setter expression. - - - - - Setups the set. - - The setter expression. - - - - - Determines the way default values are generated - calculated for loose mocks. - - - - - Default behavior, which generates empty values for - value types (i.e. default(int)), empty array and - enumerables, and nulls for all other reference types. - - - - - Whenever the default value generated by - is null, replaces this value with a mock (if the type - can be mocked). - - - For sealed classes, a null value will be generated. - - - - - A that returns an empty default value - for invocations that do not have setups or return values, with loose mocks. - This is the default behavior for a mock. - - - - - Interface to be implemented by classes that determine the - default value of non-expected invocations. - - - - - Defines the default value to return in all the methods returning . - The type of the return value.The value to set as default. - - - - Provides a value for the given member and arguments. - - The member to provide a default value for. - - - - - Provides partial evaluation of subtrees, whenever they can be evaluated locally. - - Matt Warren: http://blogs.msdn.com/mattwar - Documented by InSTEDD: http://www.instedd.org - - - - Performs evaluation and replacement of independent sub-trees - - The root of the expression tree. - A function that decides whether a given expression - node can be part of the local function. - A new tree with sub-trees evaluated and replaced. - - - - Performs evaluation and replacement of independent sub-trees - - The root of the expression tree. - A new tree with sub-trees evaluated and replaced. - - - - Evaluates and replaces sub-trees when first candidate is reached (top-down) - - - - - Performs bottom-up analysis to determine which nodes can possibly - be part of an evaluated sub-tree. - - - - - Casts the expression to a lambda expression, removing - a cast if there's any. - - - - - Casts the body of the lambda expression to a . - - If the body is not a method call. - - - - Converts the body of the lambda expression into the referenced by it. - - - - - Checks whether the body of the lambda expression is a property access. - - - - - Checks whether the expression is a property access. - - - - - Checks whether the body of the lambda expression is a property indexer, which is true - when the expression is an whose - has - equal to . - - - - - Checks whether the expression is a property indexer, which is true - when the expression is an whose - has - equal to . - - - - - Creates an expression that casts the given expression to the - type. - - - - - TODO: remove this code when https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=331583 - is fixed. - - - - - The intention of is to create a more readable - string representation for the failure message. - - - - - Tracks the current mock and interception context. - - - - - Having an active fluent mock context means that the invocation - is being performed in "trial" mode, just to gather the - target method and arguments that need to be matched later - when the actual invocation is made. - - - - - Ensures the given is not null. - Throws otherwise. - - - - - Ensures the given string is not null or empty. - Throws in the first case, or - in the latter. - - - - - Checks an argument to ensure it is in the specified range including the edges. - - Type of the argument to check, it must be an type. - - The expression containing the name of the argument. - The argument value to check. - The minimun allowed value for the argument. - The maximun allowed value for the argument. - - - - Checks an argument to ensure it is in the specified range excluding the edges. - - Type of the argument to check, it must be an type. - - The expression containing the name of the argument. - The argument value to check. - The minimun allowed value for the argument. - The maximun allowed value for the argument. - - - - Implemented by all generated mock object instances. - - - - - Implemented by all generated mock object instances. - - - - - Reference the Mock that contains this as the mock.Object value. - - - - - Reference the Mock that contains this as the mock.Object value. - - - - - Implements the actual interception and method invocation for - all mocks. - - - - - Get an eventInfo for a given event name. Search type ancestors depth first if necessary. - - Name of the event, with the set_ or get_ prefix already removed - - - - Given a type return all of its ancestors, both types and interfaces. - - The type to find immediate ancestors of - - - - Allows the specification of a matching condition for an - argument in a method invocation, rather than a specific - argument value. "It" refers to the argument being matched. - - This class allows the setup to match a method invocation - with an arbitrary value, with a value in a specified range, or - even one that matches a given predicate. - - - - - Matches any value of the given type. - - Typically used when the actual argument value for a method - call is not relevant. - - - // Throws an exception for a call to Remove with any string value. - mock.Setup(x => x.Remove(It.IsAny<string>())).Throws(new InvalidOperationException()); - - Type of the value. - - - - Matches any value that satisfies the given predicate. - Type of the argument to check.The predicate used to match the method argument. - Allows the specification of a predicate to perform matching - of method call arguments. - - This example shows how to return the value 1 whenever the argument to the - Do method is an even number. - - mock.Setup(x => x.Do(It.Is<int>(i => i % 2 == 0))) - .Returns(1); - - This example shows how to throw an exception if the argument to the - method is a negative number: - - mock.Setup(x => x.GetUser(It.Is<int>(i => i < 0))) - .Throws(new ArgumentException()); - - - - - - Matches any value that is in the range specified. - Type of the argument to check.The lower bound of the range.The upper bound of the range. - The kind of range. See . - - The following example shows how to expect a method call - with an integer argument within the 0..100 range. - - mock.Setup(x => x.HasInventory( - It.IsAny<string>(), - It.IsInRange(0, 100, Range.Inclusive))) - .Returns(false); - - - - - - Matches a string argument if it matches the given regular expression pattern. - The pattern to use to match the string argument value. - The following example shows how to expect a call to a method where the - string argument matches the given regular expression: - - mock.Setup(x => x.Check(It.IsRegex("[a-z]+"))).Returns(1); - - - - - - Matches a string argument if it matches the given regular expression pattern. - The pattern to use to match the string argument value.The options used to interpret the pattern. - The following example shows how to expect a call to a method where the - string argument matches the given regular expression, in a case insensitive way: - - mock.Setup(x => x.Check(It.IsRegex("[a-z]+", RegexOptions.IgnoreCase))).Returns(1); - - - - - - Implements the fluent API. - - - - - Defines the Callback verb and overloads. - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2) => Console.WriteLine(arg1 + arg2)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3) => Console.WriteLine(arg1 + arg2 + arg3)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15)); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16)); - - - - - - Specifies a callback to invoke when the method is called. - - The callback method to invoke. - - The following example specifies a callback to set a boolean - value that can be used later: - - var called = false; - mock.Setup(x => x.Execute()) - .Callback(() => called = true); - - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The argument type of the invoked method. - The callback method to invoke. - - Invokes the given callback with the concrete invocation argument value. - - Notice how the specific string argument is retrieved by simply declaring - it as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Callback((string command) => Console.WriteLine(command)); - - - - - - Defines occurrence members to constraint setups. - - - - - The expected invocation can happen at most once. - - - - var mock = new Mock<ICommand>(); - mock.Setup(foo => foo.Execute("ping")) - .AtMostOnce(); - - - - - - The expected invocation can happen at most specified number of times. - - The number of times to accept calls. - - - var mock = new Mock<ICommand>(); - mock.Setup(foo => foo.Execute("ping")) - .AtMost( 5 ); - - - - - - Defines the Raises verb. - - - - - Specifies the event that will be raised - when the setup is met. - - An expression that represents an event attach or detach action. - The event arguments to pass for the raised event. - - The following example shows how to raise an event when - the setup is met: - - var mock = new Mock<IContainer>(); - - mock.Setup(add => add.Add(It.IsAny<string>(), It.IsAny<object>())) - .Raises(add => add.Added += null, EventArgs.Empty); - - - - - - Specifies the event that will be raised - when the setup is matched. - - An expression that represents an event attach or detach action. - A function that will build the - to pass when raising the event. - - - - - Specifies the custom event that will be raised - when the setup is matched. - - An expression that represents an event attach or detach action. - The arguments to pass to the custom delegate (non EventHandler-compatible). - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - The type of the fifteenth argument received by the expected invocation. - - - - - Specifies the event that will be raised when the setup is matched. - - The expression that represents an event attach or detach action. - The function that will build the - to pass when raising the event. - The type of the first argument received by the expected invocation. - The type of the second argument received by the expected invocation. - The type of the third argument received by the expected invocation. - The type of the fourth argument received by the expected invocation. - The type of the fifth argument received by the expected invocation. - The type of the sixth argument received by the expected invocation. - The type of the seventh argument received by the expected invocation. - The type of the eighth argument received by the expected invocation. - The type of the nineth argument received by the expected invocation. - The type of the tenth argument received by the expected invocation. - The type of the eleventh argument received by the expected invocation. - The type of the twelfth argument received by the expected invocation. - The type of the thirteenth argument received by the expected invocation. - The type of the fourteenth argument received by the expected invocation. - The type of the fifteenth argument received by the expected invocation. - The type of the sixteenth argument received by the expected invocation. - - - - - Defines the Verifiable verb. - - - - - Marks the expectation as verifiable, meaning that a call - to will check if this particular - expectation was met. - - - The following example marks the expectation as verifiable: - - mock.Expect(x => x.Execute("ping")) - .Returns(true) - .Verifiable(); - - - - - - Marks the expectation as verifiable, meaning that a call - to will check if this particular - expectation was met, and specifies a message for failures. - - - The following example marks the expectation as verifiable: - - mock.Expect(x => x.Execute("ping")) - .Returns(true) - .Verifiable("Ping should be executed always!"); - - - - - - Implements the fluent API. - - - - - Implements the fluent API. - - - - - Defines the Throws verb. - - - - - Specifies the exception to throw when the method is invoked. - - Exception instance to throw. - - This example shows how to throw an exception when the method is - invoked with an empty string argument: - - mock.Setup(x => x.Execute("")) - .Throws(new ArgumentException()); - - - - - - Specifies the type of exception to throw when the method is invoked. - - Type of exception to instantiate and throw when the setup is matched. - - This example shows how to throw an exception when the method is - invoked with an empty string argument: - - mock.Setup(x => x.Execute("")) - .Throws<ArgumentException>(); - - - - - - Implements the fluent API. - - - - - Implements the fluent API. - - - - - Defines the Callback verb and overloads for callbacks on - setups that return a value. - - Mocked type. - Type of the return value of the setup. - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2) => Console.WriteLine(arg1 + arg2)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3) => Console.WriteLine(arg1 + arg2 + arg3)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15)); - - - - - - Specifies a callback to invoke when the method is called that receives the original - arguments. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The callback method to invoke. - A reference to interface. - - Invokes the given callback with the concrete invocation arguments values. - - Notice how the specific arguments are retrieved by simply declaring - them as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute( - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>(), - It.IsAny<string>())) - .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16)); - - - - - - Specifies a callback to invoke when the method is called. - - The callback method to invoke. - - The following example specifies a callback to set a boolean value that can be used later: - - var called = false; - mock.Setup(x => x.Execute()) - .Callback(() => called = true) - .Returns(true); - - Note that in the case of value-returning methods, after the Callback - call you can still specify the return value. - - - - - Specifies a callback to invoke when the method is called that receives the original arguments. - - The type of the argument of the invoked method. - Callback method to invoke. - - Invokes the given callback with the concrete invocation argument value. - - Notice how the specific string argument is retrieved by simply declaring - it as part of the lambda expression for the callback: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Callback(command => Console.WriteLine(command)) - .Returns(true); - - - - - - Implements the fluent API. - - - - - Defines the Returns verb. - - Mocked type. - Type of the return value from the expression. - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2) => arg1 + arg2); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3) => arg1 + arg2 + arg3); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4) => arg1 + arg2 + arg3 + arg4); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5) => arg1 + arg2 + arg3 + arg4 + arg5); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15); - - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the first argument of the invoked method. - The type of the second argument of the invoked method. - The type of the third argument of the invoked method. - The type of the fourth argument of the invoked method. - The type of the fifth argument of the invoked method. - The type of the sixth argument of the invoked method. - The type of the seventh argument of the invoked method. - The type of the eighth argument of the invoked method. - The type of the nineth argument of the invoked method. - The type of the tenth argument of the invoked method. - The type of the eleventh argument of the invoked method. - The type of the twelfth argument of the invoked method. - The type of the thirteenth argument of the invoked method. - The type of the fourteenth argument of the invoked method. - The type of the fifteenth argument of the invoked method. - The type of the sixteenth argument of the invoked method. - The function that will calculate the return value. - Returns a calculated value which is evaluated lazily at the time of the invocation. - - - The return value is calculated from the value of the actual method invocation arguments. - Notice how the arguments are retrieved by simply declaring them as part of the lambda - expression: - - - mock.Setup(x => x.Execute( - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>(), - It.IsAny<int>())) - .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16); - - - - - - Specifies the value to return. - - The value to return, or . - - Return a true value from the method call: - - mock.Setup(x => x.Execute("ping")) - .Returns(true); - - - - - - Specifies a function that will calculate the value to return from the method. - - The function that will calculate the return value. - - Return a calculated value when the method is called: - - mock.Setup(x => x.Execute("ping")) - .Returns(() => returnValues[0]); - - The lambda expression to retrieve the return value is lazy-executed, - meaning that its value may change depending on the moment the method - is executed and the value the returnValues array has at - that moment. - - - - - Specifies a function that will calculate the value to return from the method, - retrieving the arguments for the invocation. - - The type of the argument of the invoked method. - The function that will calculate the return value. - - Return a calculated value which is evaluated lazily at the time of the invocation. - - The lookup list can change between invocations and the setup - will return different values accordingly. Also, notice how the specific - string argument is retrieved by simply declaring it as part of the lambda - expression: - - - mock.Setup(x => x.Execute(It.IsAny<string>())) - .Returns((string command) => returnValues[command]); - - - - - - Implements the fluent API. - - - - - Defines the Callback verb for property getter setups. - - - Mocked type. - Type of the property. - - - - Specifies a callback to invoke when the property is retrieved. - - Callback method to invoke. - - Invokes the given callback with the property value being set. - - mock.SetupGet(x => x.Suspended) - .Callback(() => called = true) - .Returns(true); - - - - - - Implements the fluent API. - - - - - Defines the Returns verb for property get setups. - - Mocked type. - Type of the property. - - - - Specifies the value to return. - - The value to return, or . - - Return a true value from the property getter call: - - mock.SetupGet(x => x.Suspended) - .Returns(true); - - - - - - Specifies a function that will calculate the value to return for the property. - - The function that will calculate the return value. - - Return a calculated value when the property is retrieved: - - mock.SetupGet(x => x.Suspended) - .Returns(() => returnValues[0]); - - The lambda expression to retrieve the return value is lazy-executed, - meaning that its value may change depending on the moment the property - is retrieved and the value the returnValues array has at - that moment. - - - - - Implements the fluent API. - - - - - Defines the Callback verb for property setter setups. - - Type of the property. - - - - Specifies a callback to invoke when the property is set that receives the - property value being set. - - Callback method to invoke. - - Invokes the given callback with the property value being set. - - mock.SetupSet(x => x.Suspended) - .Callback((bool state) => Console.WriteLine(state)); - - - - - - Language for ReturnSequence - - - - - Returns value - - - - - Throws an exception - - - - - Throws an exception - - - - - The first method call or member access will be the - last segment of the expression (depth-first traversal), - which is the one we have to Setup rather than FluentMock. - And the last one is the one we have to Mock.Get rather - than FluentMock. - - - - - A default implementation of IQueryable for use with QueryProvider - - - - - The is a - static method that returns an IQueryable of Mocks of T which is used to - apply the linq specification to. - - - - - Utility repository class to use to construct multiple - mocks when consistent verification is - desired for all of them. - - - If multiple mocks will be created during a test, passing - the desired (if different than the - or the one - passed to the repository constructor) and later verifying each - mock can become repetitive and tedious. - - This repository class helps in that scenario by providing a - simplified creation of multiple mocks with a default - (unless overriden by calling - ) and posterior verification. - - - - The following is a straightforward example on how to - create and automatically verify strict mocks using a : - - var repository = new MockRepository(MockBehavior.Strict); - - var foo = repository.Create<IFoo>(); - var bar = repository.Create<IBar>(); - - // no need to call Verifiable() on the setup - // as we'll be validating all of them anyway. - foo.Setup(f => f.Do()); - bar.Setup(b => b.Redo()); - - // exercise the mocks here - - repository.VerifyAll(); - // At this point all setups are already checked - // and an optional MockException might be thrown. - // Note also that because the mocks are strict, any invocation - // that doesn't have a matching setup will also throw a MockException. - - The following examples shows how to setup the repository - to create loose mocks and later verify only verifiable setups: - - var repository = new MockRepository(MockBehavior.Loose); - - var foo = repository.Create<IFoo>(); - var bar = repository.Create<IBar>(); - - // this setup will be verified when we verify the repository - foo.Setup(f => f.Do()).Verifiable(); - - // this setup will NOT be verified - foo.Setup(f => f.Calculate()); - - // this setup will be verified when we verify the repository - bar.Setup(b => b.Redo()).Verifiable(); - - // exercise the mocks here - // note that because the mocks are Loose, members - // called in the interfaces for which no matching - // setups exist will NOT throw exceptions, - // and will rather return default values. - - repository.Verify(); - // At this point verifiable setups are already checked - // and an optional MockException might be thrown. - - The following examples shows how to setup the repository with a - default strict behavior, overriding that default for a - specific mock: - - var repository = new MockRepository(MockBehavior.Strict); - - // this particular one we want loose - var foo = repository.Create<IFoo>(MockBehavior.Loose); - var bar = repository.Create<IBar>(); - - // specify setups - - // exercise the mocks here - - repository.Verify(); - - - - - - - Utility factory class to use to construct multiple - mocks when consistent verification is - desired for all of them. - - - If multiple mocks will be created during a test, passing - the desired (if different than the - or the one - passed to the factory constructor) and later verifying each - mock can become repetitive and tedious. - - This factory class helps in that scenario by providing a - simplified creation of multiple mocks with a default - (unless overriden by calling - ) and posterior verification. - - - - The following is a straightforward example on how to - create and automatically verify strict mocks using a : - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(); - var bar = factory.Create<IBar>(); - - // no need to call Verifiable() on the setup - // as we'll be validating all of them anyway. - foo.Setup(f => f.Do()); - bar.Setup(b => b.Redo()); - - // exercise the mocks here - - factory.VerifyAll(); - // At this point all setups are already checked - // and an optional MockException might be thrown. - // Note also that because the mocks are strict, any invocation - // that doesn't have a matching setup will also throw a MockException. - - The following examples shows how to setup the factory - to create loose mocks and later verify only verifiable setups: - - var factory = new MockFactory(MockBehavior.Loose); - - var foo = factory.Create<IFoo>(); - var bar = factory.Create<IBar>(); - - // this setup will be verified when we verify the factory - foo.Setup(f => f.Do()).Verifiable(); - - // this setup will NOT be verified - foo.Setup(f => f.Calculate()); - - // this setup will be verified when we verify the factory - bar.Setup(b => b.Redo()).Verifiable(); - - // exercise the mocks here - // note that because the mocks are Loose, members - // called in the interfaces for which no matching - // setups exist will NOT throw exceptions, - // and will rather return default values. - - factory.Verify(); - // At this point verifiable setups are already checked - // and an optional MockException might be thrown. - - The following examples shows how to setup the factory with a - default strict behavior, overriding that default for a - specific mock: - - var factory = new MockFactory(MockBehavior.Strict); - - // this particular one we want loose - var foo = factory.Create<IFoo>(MockBehavior.Loose); - var bar = factory.Create<IBar>(); - - // specify setups - - // exercise the mocks here - - factory.Verify(); - - - - - - - Initializes the factory with the given - for newly created mocks from the factory. - - The behavior to use for mocks created - using the factory method if not overriden - by using the overload. - - - - Creates a new mock with the default - specified at factory construction time. - - Type to mock. - A new . - - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(); - // use mock on tests - - factory.VerifyAll(); - - - - - - Creates a new mock with the default - specified at factory construction time and with the - the given constructor arguments for the class. - - - The mock will try to find the best match constructor given the - constructor arguments, and invoke that to initialize the instance. - This applies only to classes, not interfaces. - - Type to mock. - Constructor arguments for mocked classes. - A new . - - - var factory = new MockFactory(MockBehavior.Default); - - var mock = factory.Create<MyBase>("Foo", 25, true); - // use mock on tests - - factory.Verify(); - - - - - - Creates a new mock with the given . - - Type to mock. - Behavior to use for the mock, which overrides - the default behavior specified at factory construction time. - A new . - - The following example shows how to create a mock with a different - behavior to that specified as the default for the factory: - - var factory = new MockFactory(MockBehavior.Strict); - - var foo = factory.Create<IFoo>(MockBehavior.Loose); - - - - - - Creates a new mock with the given - and with the the given constructor arguments for the class. - - - The mock will try to find the best match constructor given the - constructor arguments, and invoke that to initialize the instance. - This applies only to classes, not interfaces. - - Type to mock. - Behavior to use for the mock, which overrides - the default behavior specified at factory construction time. - Constructor arguments for mocked classes. - A new . - - The following example shows how to create a mock with a different - behavior to that specified as the default for the factory, passing - constructor arguments: - - var factory = new MockFactory(MockBehavior.Default); - - var mock = factory.Create<MyBase>(MockBehavior.Strict, "Foo", 25, true); - - - - - - Implements creation of a new mock within the factory. - - Type to mock. - The behavior for the new mock. - Optional arguments for the construction of the mock. - - - - Verifies all verifiable expectations on all mocks created - by this factory. - - - One or more mocks had expectations that were not satisfied. - - - - Verifies all verifiable expectations on all mocks created - by this factory. - - - One or more mocks had expectations that were not satisfied. - - - - Invokes for each mock - in , and accumulates the resulting - that might be - thrown from the action. - - The action to execute against - each mock. - - - - Whether the base member virtual implementation will be called - for mocked classes if no setup is matched. Defaults to . - - - - - Specifies the behavior to use when returning default values for - unexpected invocations on loose mocks. - - - - - Gets the mocks that have been created by this factory and - that will get verified together. - - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The type of the mocked object to query. - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The predicate with the setup expressions. - The type of the mocked object to query. - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the setup expressions. - The type of the mocked object. - The mocked object created. - - - - Creates the mock query with the underlying queriable implementation. - - - - - Wraps the enumerator inside a queryable. - - - - - Method that is turned into the actual call from .Query{T}, to - transform the queryable query into a normal enumerable query. - This method is never used directly by consumers. - - - - - Initializes the repository with the given - for newly created mocks from the repository. - - The behavior to use for mocks created - using the repository method if not overriden - by using the overload. - - - - Allows querying the universe of mocks for those that behave - according to the LINQ query specification. - - - This entry-point into Linq to Mocks is the only one in the root Moq - namespace to ease discovery. But to get all the mocking extension - methods on Object, a using of Moq.Linq must be done, so that the - polluting of the intellisense for all objects is an explicit opt-in. - - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The type of the mocked object to query. - - - - Access the universe of mocks of the given type, to retrieve those - that behave according to the LINQ query specification. - - The predicate with the setup expressions. - The type of the mocked object to query. - - - - Creates an mock object of the indicated type. - - The type of the mocked object. - The mocked object created. - - - - Creates an mock object of the indicated type. - - The predicate with the setup expressions. - The type of the mocked object. - The mocked object created. - - - - Creates the mock query with the underlying queriable implementation. - - - - - Wraps the enumerator inside a queryable. - - - - - Method that is turned into the actual call from .Query{T}, to - transform the queryable query into a normal enumerable query. - This method is never used directly by consumers. - - - - - Extension method used to support Linq-like setup properties that are not virtual but do have - a getter and a setter, thereby allowing the use of Linq to Mocks to quickly initialize Dtos too :) - - - - - Helper extensions that are used by the query translator. - - - - - Retrieves a fluent mock from the given setup expression. - - - - - Allows creation custom value matchers that can be used on setups and verification, - completely replacing the built-in class with your own argument - matching rules. - - See also . - - - - - Provided for the sole purpose of rendering the delegate passed to the - matcher constructor if no friendly render lambda is provided. - - - - - Initializes the match with the condition that - will be checked in order to match invocation - values. - The condition to match against actual values. - - - - - - - - - This method is used to set an expression as the last matcher invoked, - which is used in the SetupSet to allow matchers in the prop = value - delegate expression. This delegate is executed in "fluent" mode in - order to capture the value being set, and construct the corresponding - methodcall. - This is also used in the MatcherFactory for each argument expression. - This method ensures that when we execute the delegate, we - also track the matcher that was invoked, so that when we create the - methodcall we build the expression using it, rather than the null/default - value returned from the actual invocation. - - - - - Allows creation custom value matchers that can be used on setups and verification, - completely replacing the built-in class with your own argument - matching rules. - Type of the value to match. - The argument matching is used to determine whether a concrete - invocation in the mock matches a given setup. This - matching mechanism is fully extensible. - - Creating a custom matcher is straightforward. You just need to create a method - that returns a value from a call to with - your matching condition and optional friendly render expression: - - [Matcher] - public Order IsBigOrder() - { - return Match<Order>.Create( - o => o.GrandTotal >= 5000, - /* a friendly expression to render on failures */ - () => IsBigOrder()); - } - - This method can be used in any mock setup invocation: - - mock.Setup(m => m.Submit(IsBigOrder()).Throws<UnauthorizedAccessException>(); - - At runtime, Moq knows that the return value was a matcher (note that the method MUST be - annotated with the [Matcher] attribute in order to determine this) and - evaluates your predicate with the actual value passed into your predicate. - - Another example might be a case where you want to match a lists of orders - that contains a particular one. You might create matcher like the following: - - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return Match<IEnumerable<Order>>.Create(orders => orders.Contains(order)); - } - } - - Now we can invoke this static method instead of an argument in an - invocation: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - - - - - Marks a method as a matcher, which allows complete replacement - of the built-in class with your own argument - matching rules. - - - This feature has been deprecated in favor of the new - and simpler . - - - The argument matching is used to determine whether a concrete - invocation in the mock matches a given setup. This - matching mechanism is fully extensible. - - - There are two parts of a matcher: the compiler matcher - and the runtime matcher. - - - Compiler matcher - Used to satisfy the compiler requirements for the - argument. Needs to be a method optionally receiving any arguments - you might need for the matching, but with a return type that - matches that of the argument. - - Let's say I want to match a lists of orders that contains - a particular one. I might create a compiler matcher like the following: - - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return null; - } - } - - Now we can invoke this static method instead of an argument in an - invocation: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - Note that the return value from the compiler matcher is irrelevant. - This method will never be called, and is just used to satisfy the - compiler and to signal Moq that this is not a method that we want - to be invoked at runtime. - - - - Runtime matcher - - The runtime matcher is the one that will actually perform evaluation - when the test is run, and is defined by convention to have the - same signature as the compiler matcher, but where the return - value is the first argument to the call, which contains the - object received by the actual invocation at runtime: - - public static bool Contains(IEnumerable<Order> orders, Order order) - { - return orders.Contains(order); - } - - At runtime, the mocked method will be invoked with a specific - list of orders. This value will be passed to this runtime - matcher as the first argument, while the second argument is the - one specified in the setup (x.Save(Orders.Contains(order))). - - The boolean returned determines whether the given argument has been - matched. If all arguments to the expected method are matched, then - the setup matches and is evaluated. - - - - - - Using this extensible infrastructure, you can easily replace the entire - set of matchers with your own. You can also avoid the - typical (and annoying) lengthy expressions that result when you have - multiple arguments that use generics. - - - The following is the complete example explained above: - - public static class Orders - { - [Matcher] - public static IEnumerable<Order> Contains(Order order) - { - return null; - } - - public static bool Contains(IEnumerable<Order> orders, Order order) - { - return orders.Contains(order); - } - } - - And the concrete test using this matcher: - - var order = new Order { ... }; - var mock = new Mock<IRepository<Order>>(); - - mock.Setup(x => x.Save(Orders.Contains(order))) - .Throws<ArgumentException>(); - - // use mock, invoke Save, and have the matcher filter. - - - - - - Matcher to treat static functions as matchers. - - mock.Setup(x => x.StringMethod(A.MagicString())); - - public static class A - { - [Matcher] - public static string MagicString() { return null; } - public static bool MagicString(string arg) - { - return arg == "magic"; - } - } - - Will succeed if: mock.Object.StringMethod("magic"); - and fail with any other call. - - - - - We need this non-generics base class so that - we can use from - generic code. - - - - - Options to customize the behavior of the mock. - - - - - Causes the mock to always throw - an exception for invocations that don't have a - corresponding setup. - - - - - Will never throw exceptions, returning default - values when necessary (null for reference types, - zero for value types or empty enumerables and arrays). - - - - - Default mock behavior, which equals . - - - - - A that returns an empty default value - for non-mockeable types, and mocks for all other types (interfaces and - non-sealed classes) that can be mocked. - - - - - Exception thrown by mocks when setups are not matched, - the mock is not properly setup, etc. - - - A distinct exception type is provided so that exceptions - thrown by the mock can be differentiated in tests that - expect other exceptions to be thrown (i.e. ArgumentException). - - Richer exception hierarchy/types are not provided as - tests typically should not catch or expect exceptions - from the mocks. These are typically the result of changes - in the tested class or its collaborators implementation, and - result in fixes in the mock setup so that they dissapear and - allow the test to pass. - - - - - - Made internal as it's of no use for - consumers, but it's important for - our own tests. - - - - - Used by the mock factory to accumulate verification - failures. - - - - - Helper class to setup a full trace between many mocks - - - - - Initialize a trace setup - - - - - Allow sequence to be repeated - - - - - define nice api - - - - - Perform an expectation in the trace. - - - - - Provides legacy API members as extensions so that - existing code continues to compile, but new code - doesn't see then. - - - - - Obsolete. - - - - - Obsolete. - - - - - Obsolete. - - - - - Provides additional methods on mocks. - - - Provided as extension methods as they confuse the compiler - with the overloads taking Action. - - - - - Specifies a setup on the mocked type for a call to - to a property setter, regardless of its value. - - - If more than one setup is set for the same property setter, - the latest one wins and is the one that will be executed. - - Type of the property. Typically omitted as it can be inferred from the expression. - Type of the mock. - The target mock for the setup. - Lambda expression that specifies the property setter. - - - mock.SetupSet(x => x.Suspended); - - - - This method is not legacy, but must be on an extension method to avoid - confusing the compiler with the new Action syntax. - - - - - Verifies that a property has been set on the mock, regarless of its value. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - Expression to verify. - The mock instance. - Mocked type. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, specifying a failure - error message. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - Expression to verify. - Message to show if verification fails. - The mock instance. - Mocked type. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, regardless - of the value but only the specified number of times. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - The invocation was not call the times specified by - . - The mock instance. - Mocked type. - The number of times a method is allowed to be called. - Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Verifies that a property has been set on the mock, regardless - of the value but only the specified number of times, and specifying a failure - error message. - - - This example assumes that the mock has been used, - and later we want to verify that a given invocation - with specific parameters was performed: - - var mock = new Mock<IWarehouse>(); - // exercise mock - //... - // Will throw if the test code didn't set the IsClosed property. - mock.VerifySet(warehouse => warehouse.IsClosed); - - - The invocation was not performed on the mock. - The invocation was not call the times specified by - . - The mock instance. - Mocked type. - The number of times a method is allowed to be called. - Message to show if verification fails. - Expression to verify. - Type of the property to verify. Typically omitted as it can - be inferred from the expression's return type. - - - - Allows setups to be specified for protected members by using their - name as a string, rather than strong-typing them which is not possible - due to their visibility. - - - - - Specifies a setup for a void method invocation with the given - , optionally specifying arguments for the method call. - - The name of the void method to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - - - - Specifies a setup for an invocation on a property or a non void method with the given - , optionally specifying arguments for the method call. - - The name of the method or property to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - The return type of the method or property. - - - - Specifies a setup for an invocation on a property getter with the given - . - - The name of the property. - The type of the property. - - - - Specifies a setup for an invocation on a property setter with the given - . - - The name of the property. - The property value. If argument matchers are used, - remember to use rather than . - The type of the property. - - - - Specifies a verify for a void method with the given , - optionally specifying arguments for the method call. Use in conjuntion with the default - . - - The invocation was not call the times specified by - . - The name of the void method to be verified. - The number of times a method is allowed to be called. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - - - - Specifies a verify for an invocation on a property or a non void method with the given - , optionally specifying arguments for the method call. - - The invocation was not call the times specified by - . - The name of the method or property to be invoked. - The optional arguments for the invocation. If argument matchers are used, - remember to use rather than . - The number of times a method is allowed to be called. - The type of return value from the expression. - - - - Specifies a verify for an invocation on a property getter with the given - . - The invocation was not call the times specified by - . - - The name of the property. - The number of times a method is allowed to be called. - The type of the property. - - - - Specifies a setup for an invocation on a property setter with the given - . - - The invocation was not call the times specified by - . - The name of the property. - The number of times a method is allowed to be called. - The property value. - The type of the property. If argument matchers are used, - remember to use rather than . - - - - Allows the specification of a matching condition for an - argument in a protected member setup, rather than a specific - argument value. "ItExpr" refers to the argument being matched. - - - Use this variant of argument matching instead of - for protected setups. - This class allows the setup to match a method invocation - with an arbitrary value, with a value in a specified range, or - even one that matches a given predicate, or null. - - - - - Matches a null value of the given type. - - - Required for protected mocks as the null value cannot be used - directly as it prevents proper method overload selection. - - - - // Throws an exception for a call to Remove with a null string value. - mock.Protected() - .Setup("Remove", ItExpr.IsNull<string>()) - .Throws(new InvalidOperationException()); - - - Type of the value. - - - - Matches any value of the given type. - - - Typically used when the actual argument value for a method - call is not relevant. - - - - // Throws an exception for a call to Remove with any string value. - mock.Protected() - .Setup("Remove", ItExpr.IsAny<string>()) - .Throws(new InvalidOperationException()); - - - Type of the value. - - - - Matches any value that satisfies the given predicate. - - Type of the argument to check. - The predicate used to match the method argument. - - Allows the specification of a predicate to perform matching - of method call arguments. - - - This example shows how to return the value 1 whenever the argument to the - Do method is an even number. - - mock.Protected() - .Setup("Do", ItExpr.Is<int>(i => i % 2 == 0)) - .Returns(1); - - This example shows how to throw an exception if the argument to the - method is a negative number: - - mock.Protected() - .Setup("GetUser", ItExpr.Is<int>(i => i < 0)) - .Throws(new ArgumentException()); - - - - - - Matches any value that is in the range specified. - - Type of the argument to check. - The lower bound of the range. - The upper bound of the range. - The kind of range. See . - - The following example shows how to expect a method call - with an integer argument within the 0..100 range. - - mock.Protected() - .Setup("HasInventory", - ItExpr.IsAny<string>(), - ItExpr.IsInRange(0, 100, Range.Inclusive)) - .Returns(false); - - - - - - Matches a string argument if it matches the given regular expression pattern. - - The pattern to use to match the string argument value. - - The following example shows how to expect a call to a method where the - string argument matches the given regular expression: - - mock.Protected() - .Setup("Check", ItExpr.IsRegex("[a-z]+")) - .Returns(1); - - - - - - Matches a string argument if it matches the given regular expression pattern. - - The pattern to use to match the string argument value. - The options used to interpret the pattern. - - The following example shows how to expect a call to a method where the - string argument matches the given regular expression, in a case insensitive way: - - mock.Protected() - .Setup("Check", ItExpr.IsRegex("[a-z]+", RegexOptions.IgnoreCase)) - .Returns(1); - - - - - - Enables the Protected() method on , - allowing setups to be set for protected members by using their - name as a string, rather than strong-typing them which is not possible - due to their visibility. - - - - - Enable protected setups for the mock. - - Mocked object type. Typically omitted as it can be inferred from the mock instance. - The mock to set the protected setups on. - - - - - - - - - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to Mock type has already been initialized by accessing its Object property. Adding interfaces must be done before that.. - - - - - Looks up a localized string similar to Value cannot be an empty string.. - - - - - Looks up a localized string similar to Can only add interfaces to the mock.. - - - - - Looks up a localized string similar to Can't set return value for void method {0}.. - - - - - Looks up a localized string similar to Constructor arguments cannot be passed for interface mocks.. - - - - - Looks up a localized string similar to A matching constructor for the given arguments was not found on the mocked type.. - - - - - Looks up a localized string similar to Could not locate event for attach or detach method {0}.. - - - - - Looks up a localized string similar to Expression {0} involves a field access, which is not supported. Use properties instead.. - - - - - Looks up a localized string similar to Type to mock must be an interface or an abstract or non-sealed class. . - - - - - Looks up a localized string similar to Cannot retrieve a mock with the given object type {0} as it's not the main type of the mock or any of its additional interfaces. - Please cast the argument to one of the supported types: {1}. - Remember that there's no generics covariance in the CLR, so your object must be one of these types in order for the call to succeed.. - - - - - Looks up a localized string similar to The equals ("==" or "=" in VB) and the conditional 'and' ("&&" or "AndAlso" in VB) operators are the only ones supported in the query specification expression. Unsupported expression: {0}. - - - - - Looks up a localized string similar to LINQ method '{0}' not supported.. - - - - - Looks up a localized string similar to Expression contains a call to a method which is not virtual (overridable in VB) or abstract. Unsupported expression: {0}. - - - - - Looks up a localized string similar to Member {0}.{1} does not exist.. - - - - - Looks up a localized string similar to Method {0}.{1} is public. Use strong-typed Expect overload instead: - mock.Setup(x => x.{1}()); - . - - - - - Looks up a localized string similar to {0} invocation failed with mock behavior {1}. - {2}. - - - - - Looks up a localized string similar to Expected only {0} calls to {1}.. - - - - - Looks up a localized string similar to Expected only one call to {0}.. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at least {2} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at least once, but was never performed: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at most {3} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock at most once, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock between {2} and {3} times (Exclusive), but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock between {2} and {3} times (Inclusive), but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock exactly {2} times, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock should never have been performed, but was {4} times: {1}. - - - - - Looks up a localized string similar to {0} - Expected invocation on the mock once, but was {4} times: {1}. - - - - - Looks up a localized string similar to All invocations on the mock must have a corresponding setup.. - - - - - Looks up a localized string similar to Object instance was not created by Moq.. - - - - - Looks up a localized string similar to Out expression must evaluate to a constant value.. - - - - - Looks up a localized string similar to Property {0}.{1} does not have a getter.. - - - - - Looks up a localized string similar to Property {0}.{1} does not exist.. - - - - - Looks up a localized string similar to Property {0}.{1} is write-only.. - - - - - Looks up a localized string similar to Property {0}.{1} is read-only.. - - - - - Looks up a localized string similar to Property {0}.{1} does not have a setter.. - - - - - Looks up a localized string similar to Cannot raise a mocked event unless it has been associated (attached) to a concrete event in a mocked object.. - - - - - Looks up a localized string similar to Ref expression must evaluate to a constant value.. - - - - - Looks up a localized string similar to Invocation needs to return a value and therefore must have a corresponding setup that provides it.. - - - - - Looks up a localized string similar to A lambda expression is expected as the argument to It.Is<T>.. - - - - - Looks up a localized string similar to Invocation {0} should not have been made.. - - - - - Looks up a localized string similar to Expression is not a method invocation: {0}. - - - - - Looks up a localized string similar to Expression is not a property access: {0}. - - - - - Looks up a localized string similar to Expression is not a property setter invocation.. - - - - - Looks up a localized string similar to Expression references a method that does not belong to the mocked object: {0}. - - - - - Looks up a localized string similar to Invalid setup on a non-virtual (overridable in VB) member: {0}. - - - - - Looks up a localized string similar to Type {0} does not implement required interface {1}. - - - - - Looks up a localized string similar to Type {0} does not from required type {1}. - - - - - Looks up a localized string similar to To specify a setup for public property {0}.{1}, use the typed overloads, such as: - mock.Setup(x => x.{1}).Returns(value); - mock.SetupGet(x => x.{1}).Returns(value); //equivalent to previous one - mock.SetupSet(x => x.{1}).Callback(callbackDelegate); - . - - - - - Looks up a localized string similar to Unsupported expression: {0}. - - - - - Looks up a localized string similar to Only property accesses are supported in intermediate invocations on a setup. Unsupported expression {0}.. - - - - - Looks up a localized string similar to Expression contains intermediate property access {0}.{1} which is of type {2} and cannot be mocked. Unsupported expression {3}.. - - - - - Looks up a localized string similar to Setter expression cannot use argument matchers that receive parameters.. - - - - - Looks up a localized string similar to Member {0} is not supported for protected mocking.. - - - - - Looks up a localized string similar to Setter expression can only use static custom matchers.. - - - - - Looks up a localized string similar to The following setups were not matched: - {0}. - - - - - Looks up a localized string similar to Invalid verify on a non-virtual (overridable in VB) member: {0}. - - - - - Kind of range to use in a filter specified through - . - - - - - The range includes the to and - from values. - - - - - The range does not include the to and - from values. - - - - - Helper for sequencing return values in the same method. - - - - - Return a sequence of values, once per call. - - - - - Defines the number of invocations allowed by a mocked method. - - - - - Specifies that a mocked method should be invoked times as minimum. - The minimun number of times.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked one time as minimum. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked time as maximun. - The maximun number of times.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked one time as maximun. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked between and - times. - The minimun number of times.The maximun number of times. - The kind of range. See . - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked exactly times. - The times that a method or property can be called.An object defining the allowed number of invocations. - - - - Specifies that a mocked method should not be invoked. - An object defining the allowed number of invocations. - - - - Specifies that a mocked method should be invoked exactly one time. - An object defining the allowed number of invocations. - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Determines whether two specified objects have the same value. - - The first . - - The second . - - true if the value of left is the same as the value of right; otherwise, false. - - - - - Determines whether two specified objects have different values. - - The first . - - The second . - - true if the value of left is different from the value of right; otherwise, false. - - - - diff --git a/packages/Ninject.2.2.1.4/Ninject.2.2.1.4.nupkg b/packages/Ninject.2.2.1.4/Ninject.2.2.1.4.nupkg deleted file mode 100644 index 8e06be5..0000000 Binary files a/packages/Ninject.2.2.1.4/Ninject.2.2.1.4.nupkg and /dev/null differ diff --git a/packages/Ninject.2.2.1.4/lib/net35-Client/Ninject.dll b/packages/Ninject.2.2.1.4/lib/net35-Client/Ninject.dll deleted file mode 100644 index c12e773..0000000 Binary files a/packages/Ninject.2.2.1.4/lib/net35-Client/Ninject.dll and /dev/null differ diff --git a/packages/Ninject.2.2.1.4/lib/net35-Client/Ninject.pdb b/packages/Ninject.2.2.1.4/lib/net35-Client/Ninject.pdb deleted file mode 100644 index 72099f6..0000000 Binary files a/packages/Ninject.2.2.1.4/lib/net35-Client/Ninject.pdb and /dev/null differ diff --git a/packages/Ninject.2.2.1.4/lib/net35-Client/Ninject.xml b/packages/Ninject.2.2.1.4/lib/net35-Client/Ninject.xml deleted file mode 100644 index 59289bf..0000000 --- a/packages/Ninject.2.2.1.4/lib/net35-Client/Ninject.xml +++ /dev/null @@ -1,4646 +0,0 @@ - - - - Ninject - - - - - A block used for deterministic disposal of activated instances. When the block is - disposed, all instances activated via it will be deactivated. - - - - - An object that notifies when it is disposed. - - - - - An object that can report whether or not it is disposed. - - - - - Gets a value indicating whether this instance is disposed. - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Releases resources held by the object. - - - - - Releases resources before the object is reclaimed by garbage collection. - - - - - Gets a value indicating whether this instance is disposed. - - - - - A block used for deterministic disposal of activated instances. When the block is - disposed, all instances activated via it will be deactivated. - - - - - Provides a path to resolve instances. - - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - An object that fires an event when it is disposed. - - - - - Occurs when the object is disposed. - - - - - Initializes a new instance of the class. - - The parent resolution root. - - - - Releases resources held by the object. - - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - Gets or sets the parent resolution root (usually the kernel). - - - - - Occurs when the object is disposed. - - - - - Stores the objects that were activated - - - - - A component that contributes to the internals of Ninject. - - - - - A component that contributes to the internals of Ninject. - - - - - Gets or sets the settings. - - - - - Gets or sets the settings. - - - - - Stores the objects that were activated - - - - - Clears the cache. - - - - - Adds an activated instance. - - The instance to be added. - - - - Adds an deactivated instance. - - The instance to be added. - - - - Determines whether the specified instance is activated. - - The instance. - - true if the specified instance is activated; otherwise, false. - - - - - Determines whether the specified instance is deactivated. - - The instance. - - true if the specified instance is deactivated; otherwise, false. - - - - - An object that is prunealble. - - - - - Removes instances from the cache which should no longer be re-used. - - - - - The objects that were activated as reference equal weak references. - - - - - The objects that were activated as reference equal weak references. - - - - - Initializes a new instance of the class. - - The cache pruner. - - - - Clears the cache. - - - - - Adds an activated instance. - - The instance to be added. - - - - Adds an deactivated instance. - - The instance to be added. - - - - Determines whether the specified instance is activated. - - The instance. - - true if the specified instance is activated; otherwise, false. - - - - - Determines whether the specified instance is deactivated. - - The instance. - - true if the specified instance is deactivated; otherwise, false. - - - - - Prunes this instance. - - - - - Removes all dead objects. - - The objects collection to be freed of dead objects. - - - - Gets the activated object count. - - The activated object count. - - - - Gets the deactivated object count. - - The deactivated object count. - - - - Tracks instances for re-use in certain scopes. - - - - - Tracks instances for re-use in certain scopes. - - - - - Stores the specified instance in the cache. - - The context to store. - The instance reference. - - - - Tries to retrieve an instance to re-use in the specified context. - - The context that is being activated. - The instance for re-use, or if none has been stored. - - - - Deactivates and releases the specified instance from the cache. - - The instance to release. - if the instance was found and released; otherwise . - - - - Immediately deactivates and removes all instances in the cache that are owned by - the specified scope. - - The scope whose instances should be deactivated. - - - - Immediately deactivates and removes all instances in the cache, regardless of scope. - - - - - Gets the number of entries currently stored in the cache. - - - - - Contains all cached instances. - This is a dictionary of scopes to a multimap for bindings to cache entries. - - - - - Initializes a new instance of the class. - - The pipeline component. - The cache pruner component. - - - - Releases resources held by the object. - - - - - - Stores the specified context in the cache. - - The context to store. - The instance reference. - - - - Tries to retrieve an instance to re-use in the specified context. - - The context that is being activated. - The instance for re-use, or if none has been stored. - - - - Deactivates and releases the specified instance from the cache. - - The instance to release. - if the instance was found and released; otherwise . - - - - Removes instances from the cache which should no longer be re-used. - - - - - Immediately deactivates and removes all instances in the cache that are owned by - the specified scope. - - The scope whose instances should be deactivated. - - - - Immediately deactivates and removes all instances in the cache, regardless of scope. - - - - - Gets all entries for a binding withing the selected scope. - - The bindings. - All bindings of a binding. - - - - Gets all cache entries. - - Returns all cache entries. - - - - Forgets the specified cache entries. - - The cache entries. - - - - Forgets the specified entry. - - The entry. - - - - Gets the pipeline component. - - - - - Gets the number of entries currently stored in the cache. - - - - - An entry in the cache. - - - - - Initializes a new instance of the class. - - The context. - The instance reference. - - - - Gets the context of the instance. - - The context. - - - - Gets the instance reference. - - The instance reference. - - - - Uses a and some magic to poll - the garbage collector to see if it has run. - - - - - Prunes instances from an based on environmental information. - - - - - Starts pruning the specified cache based on the rules of the pruner. - - The cache that will be pruned. - - - - Stops pruning. - - - - - The caches that are being pruned. - - - - - Releases resources held by the object. - - - - - Starts pruning the specified pruneable based on the rules of the pruner. - - The pruneable that will be pruned. - - - - Stops pruning. - - - - - A provider that delegates to a callback method to create instances. - - The type of instances the provider creates. - - - - A simple abstract provider for instances of a specific type. - - The type of instances the provider creates. - - - - Creates instances of services. - - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Initializes a new instance of the CallbackProvider<T> class. - - The callback method that will be called to create instances. - - - - Invokes the callback method to create an instance. - - The context. - The created instance. - - - - Gets the callback method used by the provider. - - - - - A provider that always returns the same constant value. - - The type of value that is returned. - - - - Initializes a new instance of the ConstantProvider<T> class. - - The value that the provider should return. - - - - Creates an instance within the specified context. - - The context. - The constant value this provider returns. - - - - Gets the value that the provider will return. - - - - - The standard provider for types, which activates instances via a . - - - - - Initializes a new instance of the class. - - The type (or prototype) of instances the provider creates. - The planner component. - The selector component. - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the value to inject into the specified target. - - The context. - The target. - The value to inject into the specified target. - - - - Gets the implementation type that the provider will activate an instance of - for the specified service. - - The service in question. - The implementation type that will be activated. - - - - Gets a callback that creates an instance of the - for the specified type. - - The prototype the provider instance will create. - The created callback. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Gets or sets the planner component. - - - - - Gets or sets the selector component. - - - - - Adds all activated instances to the activation cache. - - - - - Contributes to a , and is called during the activation - and deactivation of an instance. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - The activation cache. - - - - - Initializes a new instance of the class. - - The activation cache. - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - Gets or sets the settings. - - The ninject settings. - - - - Contributes to a , and is called during the activation - and deactivation of an instance. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - Executes actions defined on the binding during activation and deactivation. - - - - - Calls the activation actions defined on the binding. - - The context. - A reference to the instance being activated. - - - - Calls the deactivation actions defined on the binding. - - The context. - A reference to the instance being deactivated. - - - - During deactivation, disposes instances that implement . - - - - - Disposes the specified instance. - - The context. - A reference to the instance being deactivated. - - - - During activation, initializes instances that implement . - - - - - Initializes the specified instance. - - The context. - A reference to the instance being activated. - - - - Injects methods on an instance during activation. - - - - - Injects values into the properties as described by s - contained in the plan. - - The context. - A reference to the instance being activated. - - - - Injects properties on an instance during activation. - - - - - Initializes a new instance of the class. - - The injector factory component. - - - - Injects values into the properties as described by s - contained in the plan. - - The context. - A reference to the instance being activated. - - - - Applies user supplied override values to instance properties. - - The context. - A reference to the instance being activated. - The parameter ovverride value accessors. - - - - Gets the value to inject into the specified target. - - The context. - The target. - The value to inject into the specified target. - - - - Gets the injector factory component. - - - - - Starts instances that implement during activation, - and stops them during deactivation. - - - - - Starts the specified instance. - - The context. - A reference to the instance being activated. - - - - Stops the specified instance. - - The context. - A reference to the instance being deactivated. - - - - Contains information about the activation of a single instance. - - - - - Contains information about the activation of a single instance. - - - - - Gets the provider that should be used to create the instance for this context. - - The provider that should be used. - - - - Gets the scope for the context that "owns" the instance activated therein. - - The object that acts as the scope. - - - - Resolves this instance for this context. - - The resolved instance. - - - - Gets the kernel that is driving the activation. - - - - - Gets the request. - - - - - Gets the binding. - - - - - Gets or sets the activation plan. - - - - - Gets the parameters that were passed to manipulate the activation process. - - - - - Gets the generic arguments for the request, if any. - - - - - Gets a value indicating whether the request involves inferred generic arguments. - - - - - Initializes a new instance of the class. - - The kernel managing the resolution. - The context's request. - The context's binding. - The cache component. - The planner component. - The pipeline component. - - - - Gets the scope for the context that "owns" the instance activated therein. - - The object that acts as the scope. - - - - Gets the provider that should be used to create the instance for this context. - - The provider that should be used. - - - - Resolves the instance associated with this hook. - - The resolved instance. - - - - Gets the kernel that is driving the activation. - - - - - Gets the request. - - - - - Gets the binding. - - - - - Gets or sets the activation plan. - - - - - Gets the parameters that were passed to manipulate the activation process. - - - - - Gets the generic arguments for the request, if any. - - - - - Gets a value indicating whether the request involves inferred generic arguments. - - - - - Gets or sets the cache component. - - - - - Gets or sets the planner component. - - - - - Gets or sets the pipeline component. - - - - - Holds an instance during activation or after it has been cached. - - - - - Returns a value indicating whether the instance is of the specified type. - - The type in question. - if the instance is of the specified type, otherwise . - - - - Returns the instance as the specified type. - - The requested type. - The instance. - - - - Executes the specified action if the instance if of the specified type. - - The type in question. - The action to execute. - - - - Gets or sets the instance. - - - - - Drives the activation (injection, etc.) of an instance. - - - - - Activates the instance in the specified context. - - The context. - The instance reference. - - - - Deactivates the instance in the specified context. - - The context. - The instance reference. - - - - Gets the strategies that contribute to the activation and deactivation processes. - - - - - Describes the request for a service resolution. - - - - - Determines whether the specified binding satisfies the constraint defined on this request. - - The binding. - True if the binding satisfies the constraint; otherwise false. - - - - Gets the scope if one was specified in the request. - - The object that acts as the scope. - - - - Creates a child request. - - The service that is being requested. - The context in which the request was made. - The target that will receive the injection. - The child request. - - - - Gets the service that was requested. - - - - - Gets the parent request. - - - - - Gets the parent context. - - - - - Gets the target that will receive the injection, if any. - - - - - Gets the constraint that will be applied to filter the bindings used for the request. - - - - - Gets the parameters that affect the resolution. - - - - - Gets the stack of bindings which have been activated by either this request or its ancestors. - - - - - Gets the recursive depth at which this request occurs. - - - - - Gets or sets value indicating whether the request is optional. - - - - - Gets or sets value indicating whether the request should return a unique result. - - - - - Drives the activation (injection, etc.) of an instance. - - - - - The activation cache. - - - - - Initializes a new instance of the class. - - The strategies to execute during activation and deactivation. - The activation cache. - - - - Activates the instance in the specified context. - - The context. - The instance reference. - - - - Deactivates the instance in the specified context. - - The context. - The instance reference. - - - - Gets the strategies that contribute to the activation and deactivation processes. - - - - - Describes the request for a service resolution. - - - - - Initializes a new instance of the class. - - The service that was requested. - The constraint that will be applied to filter the bindings used for the request. - The parameters that affect the resolution. - The scope callback, if an external scope was specified. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - - - - Initializes a new instance of the class. - - The parent context. - The service that was requested. - The target that will receive the injection. - The scope callback, if an external scope was specified. - - - - Determines whether the specified binding satisfies the constraints defined on this request. - - The binding. - True if the binding satisfies the constraints; otherwise false. - - - - Gets the scope if one was specified in the request. - - The object that acts as the scope. - - - - Creates a child request. - - The service that is being requested. - The context in which the request was made. - The target that will receive the injection. - The child request. - - - - Gets the service that was requested. - - - - - Gets the parent request. - - - - - Gets the parent context. - - - - - Gets the target that will receive the injection, if any. - - - - - Gets the constraint that will be applied to filter the bindings used for the request. - - - - - Gets the parameters that affect the resolution. - - - - - Gets the stack of bindings which have been activated by either this request or its ancestors. - - - - - Gets the recursive depth at which this request occurs. - - - - - Gets or sets value indicating whether the request is optional. - - - - - Gets or sets value indicating whether the request is for a single service. - - - - - Gets the callback that resolves the scope for the request, if an external scope was provided. - - - - - Defines a constraint on the decorated member. - - - - - Determines whether the specified binding metadata matches the constraint. - - The metadata in question. - True if the metadata matches; otherwise false. - - - - Indicates that the decorated member should be injected. - - - - - Indicates that the decorated member should only be injected using binding(s) registered - with the specified name. - - - - - Initializes a new instance of the class. - - The name of the binding(s) to use. - - - - Determines whether the specified binding metadata matches the constraint. - - The metadata in question. - True if the metadata matches; otherwise false. - - - - Gets the binding name. - - - - - Indicates that the decorated member represents an optional dependency. - - - - - An internal container that manages and resolves components that contribute to Ninject. - - - - - An internal container that manages and resolves components that contribute to Ninject. - - - - - Registers a component in the container. - - The component type. - The component's implementation type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Removes all registrations for the specified component. - - The component's type. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets or sets the kernel that owns the component container. - - - - - Releases resources held by the object. - - - - - Registers a component in the container. - - The component type. - The component's implementation type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets or sets the kernel that owns the component container. - - - - - Provides meaningful exception messages. - - - - - Generates a message saying that modules without names are not supported. - - The exception message. - - - - Generates a message saying that a module with the same name is already loaded. - - The new module. - The existing module. - The exception message. - - - - Generates a message saying that no module has been loaded with the specified name. - - The module name. - The exception message. - - - - Generates a message saying that the binding could not be uniquely resolved. - - The request. - The exception message. - - - - Generates a message saying that the binding could not be resolved on the specified request. - - The request. - The exception message. - - - - Generates a message saying that the specified context has cyclic dependencies. - - The context. - The exception message. - - - - Generates a message saying that an invalid attribute type is used in the binding condition. - - The binding. - Name of the method. - The type. - The exception message. - - - - Generates a message saying that no constructors are available on the specified context. - - The context. - The exception message. - - - - Generates a message saying that no constructors are available for the given component. - - The component. - The implementation. - The exception message. - - - - Generates a message saying that the specified component is not registered. - - The component. - The exception message. - - - - Generates a message saying that the specified property could not be resolved on the specified request. - - The request. - The property name. - The exception message. - - - - Generates a message saying that the provider on the specified context returned null. - - The context. - The exception message. - - - - Provides extension methods for string formatting - - - - - Formats the activation path into a meaningful string representation. - - The request to be formatted. - The activation path formatted as string. - - - - Formats the given binding into a meaningful string representation. - - The binding to be formatted. - The context. - The binding formatted as string - - - - Formats the specified request into a meaningful string representation. - - The request to be formatted. - The request formatted as string. - - - - Formats the specified target into a meaningful string representation.. - - The target to be formatted. - The target formatted as string. - - - - Formats the specified type into a meaningful string representation.. - - The type to be formatted. - The type formatted as string. - - - - Extensions for MemberInfo - - - - - Determines whether the specified member has attribute. - - The type of the attribute. - The member. - - true if the specified member has attribute; otherwise, false. - - - - - Determines whether the specified member has attribute. - - The member. - The type of the attribute. - - true if the specified member has attribute; otherwise, false. - - - - - Gets the property info from its declared tpe. - - The member info. - The property definition. - The flags. - The property info from the declared type of the property. - - - - Determines whether the specified property info is private. - - The property info. - - true if the specified property info is private; otherwise, false. - - - - - Gets the custom attributes. - This version is able to get custom attributes for properties from base types even if the property is none public. - - The member. - Type of the attribute. - if set to true [inherited]. - - - - - Represents a future value. - - The type of value. - - - - Initializes a new instance of the Future<T> class. - - The callback that will be triggered to read the value. - - - - Gets the value from the future. - - The future. - The future value. - - - - Gets the value, resolving it if necessary. - - - - - Gets the callback that will be called to resolve the value. - - - - - Indicates the object has a reference to a . - - - - - Gets the binding. - - - - - Indicates that the object has a reference to an . - - - - - Gets the kernel. - - - - - A data structure that contains multiple values for a each key. - - The type of key. - The type of value. - - - - Adds the specified value for the specified key. - - The key. - The value. - - - - Removes the specified value for the specified key. - - The key. - The value. - True if such a value existed and was removed; otherwise false. - - - - Removes all values for the specified key. - - The key. - True if any such values existed; otherwise false. - - - - Removes all values. - - - - - Determines whether the multimap contains any values for the specified key. - - The key. - True if the multimap has one or more values for the specified key; otherwise, false. - - - - Determines whether the multimap contains the specified value for the specified key. - - The key. - The value. - True if the multimap contains such a value; otherwise, false. - - - - Returns an enumerator that iterates through a the multimap. - - An object that can be used to iterate through the multimap. - - - - Gets the collection of values stored under the specified key. - - The key. - - - - Gets the collection of keys. - - - - - Gets the collection of collections of values. - - - - - Weak reference that can be used in collections. It is equal to the - object it references and has the same hash code. - - - - - Initializes a new instance of the class. - - The target. - - - - Initializes a new instance of the class. - - The target. - if set to true [track resurrection]. - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - The parameter is null. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Gets a value indicating whether this instance is alive. - - true if this instance is alive; otherwise, false. - - - - Gets or sets the target of this weak reference. - - The targe of this weak reference. - - - - Defines the style of request (single or multi-injection, whether it is optional, etc.) - - - - - Indicates a request for a single instance of a service. - - - - - Indicates a request for multiple instances of a service. - - - - - Indicates that null should be returned (instead of throwing) if the service cannot be resolved. - - - - - Scope callbacks for standard scopes. - - - - - Gets the callback for transient scope. - - - - - Gets the callback for singleton scope. - - - - - Gets the callback for thread scope. - - - - - A delegate that can inject values into a constructor. - - - - - Creates injectors for members via s. - - - - - Creates injectors from members. - - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - A delegate that can inject values into a method. - - - - - A delegate that can inject values into a property. - - - - - Creates injectors from members via reflective invocation. - - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - Loads modules from compiled assemblies. - - - - - Loads modules at runtime by searching external files. - - - - - Loads modules from the specified files. - - The names of the files to load modules from. - - - - Gets the file extensions that the plugin understands how to load. - - - - - Initializes a new instance of the class. - - The kernel into which modules will be loaded. - - - - Loads modules from the specified files. - - The names of the files to load modules from. - - - - Gets or sets the kernel into which modules will be loaded. - - - - - Gets the file extensions that the plugin understands how to load. - - - - - Finds modules defined in external files. - - - - - Loads any modules found in the files that match the specified patterns. - - The patterns to search. - - - - A pluggable unit that can be loaded into an . - - - - - Called when the module is loaded into a kernel. - - The kernel that is loading the module. - - - - Called when the module is unloaded from a kernel. - - The kernel that is unloading the module. - - - - Gets the module's name. - - - - - Automatically finds and loads modules from assemblies. - - - - - Initializes a new instance of the class. - - The kernel into which modules will be loaded. - - - - Loads any modules found in the files that match the specified patterns. - - The patterns to search. - - - - Gets or sets the kernel into which modules will be loaded. - - - - - A loadable unit that defines bindings for your application. - - - - - Provides a path to register bindings. - - - - - Provides a path to register bindings. - - - - - Declares a binding for the specified service. - - The service to bind. - - - - Declares a binding from the service to itself. - - The service to bind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Declares a binding for the specified service. - - The service to bind. - - - - Declares a binding for the specified service. - - The service to bind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Initializes a new instance of the class. - - - - - Called when the module is loaded into a kernel. - - The kernel that is loading the module. - - - - Called when the module is unloaded from a kernel. - - The kernel that is unloading the module. - - - - Loads the module into the kernel. - - - - - Unloads the module from the kernel. - - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Gets the kernel that the module is loaded into. - - - - - Gets the module's name. Only a single module with a given name can be loaded at one time. - - - - - Gets the bindings that were registered by the module. - - - - - Overrides the injected value of a constructor argument. - - - - - Modifies an activation process in some way. - - - - - Modifies an activation process in some way. - - - - - Gets the value for the parameter within the specified context. - - The context. - The target. - The value for the parameter. - - - - Gets the name of the parameter. - - - - - Gets a value indicating whether the parameter should be inherited into child requests. - - - - - Initializes a new instance of the class. - - The name of the parameter. - The value of the parameter. - Whether the parameter should be inherited into child requests. - - - - Initializes a new instance of the class. - - The name of the parameter. - The callback that will be triggered to get the parameter's value. - Whether the parameter should be inherited into child requests. - - - - Initializes a new instance of the class. - - The name of the parameter. - The callback that will be triggered to get the parameter's value. - Whether the parameter should be inherited into child requests. - - - - Gets the value for the parameter within the specified context. - - The context. - The target. - The value for the parameter. - - - - Determines whether the object equals the specified object. - - An object to compare with this object. - True if the objects are equal; otherwise false - - - - Serves as a hash function for a particular type. - - A hash code for the object. - - - - Indicates whether the current object is equal to another object of the same type. - - An object to compare with this object. - True if the objects are equal; otherwise false - - - - Gets the name of the parameter. - - - - - Gets a value indicating whether the parameter should be inherited into child requests. - - - - - Gets or sets the callback that will be triggered to get the parameter's value. - - - - - Initializes a new instance of the class. - - The name of the argument to override. - The value to inject into the property. - - - - Initializes a new instance of the class. - - The name of the argument to override. - The callback to invoke to get the value that should be injected. - - - - Initializes a new instance of the class. - - The name of the argument to override. - The callback to invoke to get the value that should be injected. - - - - Overrides the injected value of a property. - - - - - Initializes a new instance of the class. - - The name of the property to override. - The value to inject into the property. - - - - Initializes a new instance of the class. - - The name of the property to override. - The callback to invoke to get the value that should be injected. - - - - Initializes a new instance of the class. - - The name of the property to override. - The callback to invoke to get the value that should be injected. - - - - Contains logic about which bindings to use for a given service request. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Contains logic about which bindings to use for a given service request - when other attempts have failed. - - - - - Returns any bindings from the specified collection that match the specified request. - - The multimap of all registered bindings. - The request in question. - The series of matching bindings. - - - - Resolves bindings for open generic types. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Returns a value indicating whether the specified service is self-bindable. - - The service. - if the type is self-bindable; otherwise . - - - - Resolves bindings that have been registered directly for the service. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Contains information about a service registration. - - - - - Contains information about a service registration. - - - - - Gets the provider for the binding. - - The context. - The provider to use. - - - - Gets the scope for the binding, if any. - - The context. - The object that will act as the scope, or if the service is transient. - - - - Determines whether the specified request satisfies the condition defined on the binding, - if one was defined. - - The request. - True if the request satisfies the condition; otherwise false. - - - - Gets the service type that is controlled by the binding. - - - - - Gets the binding's metadata. - - - - - Gets or sets the type of target for the binding. - - - - - Gets or sets a value indicating whether the binding was implicitly registered. - - - - - Gets a value indicating whether the binding has a condition associated with it. - - - - - Gets or sets the condition defined for the binding. - - - - - Gets or sets the callback that returns the provider that should be used by the binding. - - - - - Gets or sets the callback that returns the object that will act as the binding's scope. - - - - - Gets the parameters defined for the binding. - - - - - Gets the actions that should be called after instances are activated via the binding. - - - - - Gets the actions that should be called before instances are deactivated via the binding. - - - - - Initializes a new instance of the class. - - The service that is controlled by the binding. - - - - Initializes a new instance of the class. - - The service that is controlled by the binding. - The binding's metadata container. - - - - Gets the provider for the binding. - - The context. - The provider to use. - - - - Gets the scope for the binding, if any. - - The context. - The object that will act as the scope, or if the service is transient. - - - - Determines whether the specified request satisfies the conditions defined on this binding. - - The request. - True if the request satisfies the conditions; otherwise false. - - - - Gets the service type that is controlled by the binding. - - - - - Gets the binding's metadata. - - - - - Gets or sets a value indicating whether the binding was implicitly registered. - - - - - Gets a value indicating whether the binding has a condition associated with it. - - - - - Gets or sets the type of target for the binding. - - - - - Gets or sets the condition defined for the binding. - - - - - Gets or sets the callback that returns the provider that should be used by the binding. - - - - - Gets or sets the callback that returns the object that will act as the binding's scope. - - - - - Gets the parameters defined for the binding. - - - - - Gets the actions that should be called after instances are activated via the binding. - - - - - Gets the actions that should be called before instances are deactivated via the binding. - - - - - Provides a root for the fluent syntax associated with an . - - - - - Used to define the target of a binding. - - The service being bound. - - - - Used to define a basic binding syntax builder. - - - - - A hack to hide methods defined on for IntelliSense - on fluent interfaces. Credit to Daniel Cazzulino. - - - - - - - - - - - - - - - - - Indicates that the service should be self-bound. - - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to the specified provider. - - The provider. - - - - Indicates that the service should be bound to the specified callback method. - - The method. - - - - Indicates that the service should be bound to the specified constant value. - - The constant value. - - - - Used to set the condition, scope, name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to define the conditions under which a binding should be used. - - The service being bound. - - - - Indicates that the binding should be used only for requests that support the specified condition. - - The condition. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the service is being requested - by a service bound with the specified name. - - The name to expect. - - - - Used to define the scope in which instances activated via a binding should be re-used. - - The service being bound. - - - - Indicates that only a single instance of the binding should be created, and then - should be re-used for all subsequent requests. - - - - - Indicates that instances activated via the binding should not be re-used, nor have - their lifecycle managed by Ninject. - - - - - Indicates that instances activated via the binding should be re-used within the same thread. - - - - - Indicates that instances activated via the binding should be re-used as long as the object - returned by the provided callback remains alive (that is, has not been garbage collected). - - The callback that returns the scope. - - - - Used to define the name of a binding. - - The service being bound. - - - - Indicates that the binding should be registered with the specified name. Names are not - necessarily unique; multiple bindings for a given service may be registered with the same name. - - The name to give the binding. - - - - Used to add additional information to a binding. - - The service being bound. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Adds a custom parameter to the binding. - - The parameter. - - - - Sets the value of a piece of metadata on the binding. - - The metadata key. - The metadata value. - - - - Used to add additional actions to be performed during activation or deactivation of instances via a binding. - - The service being bound. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Used to set the scope, name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to set the name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to add additional information or actions to a binding. - - The service being bound. - - - - Initializes a new instance of the BindingBuilder<T> class. - - The binding to build. - The kernel. - - - - Indicates that the service should be self-bound. - - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to the specified provider. - - The provider. - - - - Indicates that the service should be bound to the specified callback method. - - The method. - - - - Indicates that the service should be bound to the specified constant value. - - The constant value. - - - - Indicates that the binding should be used only for requests that support the specified condition. - - The condition. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the service is being requested - by a service bound with the specified name. - - The name to expect. - - - - Indicates that the binding should be registered with the specified name. Names are not - necessarily unique; multiple bindings for a given service may be registered with the same name. - - The name to give the binding. - - - - Indicates that only a single instance of the binding should be created, and then - should be re-used for all subsequent requests. - - - - - Indicates that instances activated via the binding should not be re-used, nor have - their lifecycle managed by Ninject. - - - - - Indicates that instances activated via the binding should be re-used within the same thread. - - - - - Indicates that instances activated via the binding should be re-used as long as the object - returned by the provided callback remains alive (that is, has not been garbage collected). - - The callback that returns the scope. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Adds a custom parameter to the binding. - - The parameter. - - - - Sets the value of a piece of metadata on the binding. - - The metadata key. - The metadata value. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Provides a root for the fluent syntax associated with an . - - - - - Gets the binding being built. - - - - - Gets the kernel. - - - - - Additional information available about a binding, which can be used in constraints - to select bindings to use in activation. - - - - - Additional information available about a binding, which can be used in constraints - to select bindings to use in activation. - - - - - Determines whether a piece of metadata with the specified key has been defined. - - The metadata key. - True if such a piece of metadata exists; otherwise, false. - - - - Gets the value of metadata defined with the specified key, cast to the specified type. - - The type of value to expect. - The metadata key. - The metadata value. - - - - Gets the value of metadata defined with the specified key. - - The metadata key. - The value to return if the binding has no metadata set with the specified key. - The metadata value, or the default value if none was set. - - - - Sets the value of a piece of metadata. - - The metadata key. - The metadata value. - - - - Gets or sets the binding's name. - - - - - Determines whether a piece of metadata with the specified key has been defined. - - The metadata key. - True if such a piece of metadata exists; otherwise, false. - - - - Gets the value of metadata defined with the specified key, cast to the specified type. - - The type of value to expect. - The metadata key. - The metadata value. - - - - Gets the value of metadata defined with the specified key. - - The metadata key. - The value to return if the binding has no metadata set with the specified key. - The metadata value, or the default value if none was set. - - - - Sets the value of a piece of metadata. - - The metadata key. - The metadata value. - - - - Gets or sets the binding's name. - - - - - Describes the target of a binding. - - - - - Indicates that the binding is from a type to itself. - - - - - Indicates that the binding is from one type to another. - - - - - Indicates that the binding is from a type to a provider. - - - - - Indicates that the binding is from a type to a callback method. - - - - - Indicates that the binding is from a type to a constant value. - - - - - Describes the injection of a constructor. - - - - - Describes the injection of a method or constructor. - - - - - A piece of information used in an . (Just a marker.) - - - - - Initializes a new instance of the MethodInjectionDirectiveBase<TMethod, TInjector> class. - - The method this directive represents. - The injector that will be triggered. - - - - Creates targets for the parameters of the method. - - The method. - The targets for the method's parameters. - - - - Gets or sets the injector that will be triggered. - - - - - Gets or sets the targets for the directive. - - - - - Initializes a new instance of the class. - - The constructor described by the directive. - The injector that will be triggered. - - - - The base .ctor definition. - - - - - Describes the injection of a method. - - - - - Initializes a new instance of the class. - - The method described by the directive. - The injector that will be triggered. - - - - Describes the injection of a property. - - - - - Initializes a new instance of the class. - - The member the directive describes. - The injector that will be triggered. - - - - Creates a target for the property. - - The property. - The target for the property. - - - - Gets or sets the injector that will be triggered. - - - - - Gets or sets the injection target for the directive. - - - - - Adds a directive to plans indicating which constructor should be injected during activation. - - - - - Contributes to the generation of a . - - - - - Contributes to the specified plan. - - The plan that is being generated. - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for the constructor - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Adds directives to plans indicating which methods should be injected during activation. - - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for each method - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Adds directives to plans indicating which properties should be injected during activation. - - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for each property - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Represents a site on a type where a value will be injected. - - - - - Resolves a value for the target within the specified parent context. - - The parent context. - The resolved value. - - - - Gets the type of the target. - - - - - Gets the name of the target. - - - - - Gets the member that contains the target. - - - - - Gets the constraint defined on the target. - - - - - Gets a value indicating whether the target represents an optional dependency. - - - - - Represents an injection target for a . - - - - - Represents a site on a type where a value can be injected. - - The type of site this represents. - - - - Initializes a new instance of the Target<T> class. - - The member that contains the target. - The site represented by the target. - - - - Returns an array of custom attributes of a specified type defined on the target. - - The type of attribute to search for. - Whether to look up the hierarchy chain for inherited custom attributes. - An array of custom attributes of the specified type. - - - - Returns an array of custom attributes defined on the target. - - Whether to look up the hierarchy chain for inherited custom attributes. - An array of custom attributes. - - - - Returns a value indicating whether an attribute of the specified type is defined on the target. - - The type of attribute to search for. - Whether to look up the hierarchy chain for inherited custom attributes. - True if such an attribute is defined; otherwise false. - - - - Resolves a value for the target within the specified parent context. - - The parent context. - The resolved value. - - - - Gets the value(s) that should be injected into the target. - - The service that the target is requesting. - The parent context in which the target is being injected. - A series of values that are available for injection. - - - - Gets the value that should be injected into the target. - - The service that the target is requesting. - The parent context in which the target is being injected. - The value that is to be injected. - - - - Reads whether the target represents an optional dependency. - - if it is optional; otherwise . - - - - Reads the resolution constraint from target. - - The resolution constraint. - - - - Gets the member that contains the target. - - - - - Gets or sets the site (property, parameter, etc.) represented by the target. - - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Gets the constraint defined on the target. - - - - - Gets a value indicating whether the target represents an optional dependency. - - - - - Initializes a new instance of the class. - - The method that defines the parameter. - The parameter that this target represents. - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Represents an injection target for a . - - - - - Initializes a new instance of the class. - - The property that this target represents. - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Describes the means by which a type should be activated. - - - - - Adds the specified directive to the plan. - - The directive. - - - - Determines whether the plan contains one or more directives of the specified type. - - The type of directive. - True if the plan has one or more directives of the type; otherwise, false. - - - - Gets the first directive of the specified type from the plan. - - The type of directive. - The first directive, or if no matching directives exist. - - - - Gets all directives of the specified type that exist in the plan. - - The type of directive. - A series of directives of the specified type. - - - - Gets the type that the plan describes. - - - - - Generates plans for how to activate instances. - - - - - Gets or creates an activation plan for the specified type. - - The type for which a plan should be created. - The type's activation plan. - - - - Gets the strategies that contribute to the planning process. - - - - - Describes the means by which a type should be activated. - - - - - Initializes a new instance of the class. - - The type the plan describes. - - - - Adds the specified directive to the plan. - - The directive. - - - - Determines whether the plan contains one or more directives of the specified type. - - The type of directive. - True if the plan has one or more directives of the type; otherwise, false. - - - - Gets the first directive of the specified type from the plan. - - The type of directive. - The first directive, or if no matching directives exist. - - - - Gets all directives of the specified type that exist in the plan. - - The type of directive. - A series of directives of the specified type. - - - - Gets the type that the plan describes. - - - - - Gets the directives defined in the plan. - - - - - Generates plans for how to activate instances. - - - - - Initializes a new instance of the class. - - The strategies to execute during planning. - - - - Gets or creates an activation plan for the specified type. - - The type for which a plan should be created. - The type's activation plan. - - - - Creates an empty plan for the specified type. - - The type for which a plan should be created. - The created plan. - - - - Gets the strategies that contribute to the planning process. - - - - - Generates scores for constructors, to determine which is the best one to call during activation. - - - - - Gets the score for the specified constructor. - - The injection context. - The constructor. - The constructor's score. - - - - Determines whether members should be injected during activation. - - - - - Returns a value indicating whether the specified member should be injected. - - The member in question. - True if the member should be injected; otherwise false. - - - - Scores constructors by either looking for the existence of an injection marker - attribute, or by counting the number of parameters. - - - - - Gets the score for the specified constructor. - - The injection context. - The constructor. - The constructor's score. - - - - Determines whether members should be injected during activation by checking - if they are decorated with an injection marker attribute. - - - - - Returns a value indicating whether the specified member should be injected. - - The member in question. - True if the member should be injected; otherwise false. - - - - Selects members for injection. - - - - - Selects the constructor to call on the specified type, by using the constructor scorer. - - The type. - The selected constructor, or if none were available. - - - - Selects properties that should be injected. - - The type. - A series of the selected properties. - - - - Selects methods that should be injected. - - The type. - A series of the selected methods. - - - - Gets or sets the constructor scorer. - - - - - Gets the heuristics used to determine which members should be injected. - - - - - Selects members for injection. - - - - - Initializes a new instance of the class. - - The constructor scorer. - The injection heuristics. - - - - Selects the constructor to call on the specified type, by using the constructor scorer. - - The type. - The selected constructor, or if none were available. - - - - Selects properties that should be injected. - - The type. - A series of the selected properties. - - - - Selects methods that should be injected. - - The type. - A series of the selected methods. - - - - Gets or sets the constructor scorer. - - - - - Gets the property injection heuristics. - - - - - Extension methods that enhance module loading. - - - - - Creates a new instance of the module and loads it into the kernel. - - The type of the module. - The kernel. - - - - Loads the module(s) into the kernel. - - The kernel. - The modules to load. - - - - Loads modules from the files that match the specified pattern(s). - - The kernel. - The file patterns (i.e. "*.dll", "modules/*.rb") to match. - - - - Loads modules defined in the specified assemblies. - - The kernel. - The assemblies to search. - - - - Extensions that enhance resolution of services. - - - - - Gets an instance of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding that matches the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service. - - - - Tries to get an instance of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding that matches the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Gets all available instances of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service using bindings registered with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service by using the bindings that match the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the bindings. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets an instance of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding that matches the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service. - - - - Tries to get an instance of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding that matches the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Gets all available instances of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service using bindings registered with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service by using the bindings that match the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the bindings. - The parameters to pass to the request. - A series of instances of the service. - - - - Indicates that an error occured during activation of an instance. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The exception message. - - - - Initializes a new instance of the class. - - The exception message. - The inner exception. - - - - Initializes a new instance of the class. - - The serialized object data. - The serialization context. - - - - A service that requires initialization after it is activated. - - - - - Initializes the instance. Called during activation. - - - - - A super-factory that can create objects of all kinds, following hints provided by s. - - - - - Gets the modules that have been loaded into the kernel. - - A series of loaded modules. - - - - Determines whether a module with the specified name has been loaded in the kernel. - - The name of the module. - True if the specified module has been loaded; otherwise, false. - - - - Loads the module(s) into the kernel. - - The modules to load. - - - - Loads modules from the files that match the specified pattern(s). - - The file patterns (i.e. "*.dll", "modules/*.rb") to match. - - - - Loads modules defined in the specified assemblies. - - The assemblies to search. - - - - Unloads the plugin with the specified name. - - The plugin's name. - - - - Injects the specified existing instance, without managing its lifecycle. - - The instance to inject. - The parameters to pass to the request. - - - - Deactivates and releases the specified instance if it is currently managed by Ninject. - - The instance to release. - if the instance was found and released; otherwise . - - - - Gets the bindings registered for the specified service. - - The service in question. - A series of bindings that are registered for the service. - - - - Begins a new activation block, which can be used to deterministically dispose resolved instances. - - The new activation block. - - - - Gets the kernel settings. - - - - - Gets the component container, which holds components that contribute to Ninject. - - - - - Contains configuration options for Ninject. - - - - - Gets the value for the specified key. - - The type of value to return. - The setting's key. - The value to return if no setting is available. - The value, or the default value if none was found. - - - - Sets the value for the specified key. - - The setting's key. - The setting's value. - - - - Gets the attribute that indicates that a member should be injected. - - - - - Gets the interval at which the cache should be pruned. - - - - - Gets a value indicating whether the kernel should automatically load extensions at startup. - - - - - Gets the path that should be searched for extensions. - - - - - Gets a value indicating whether Ninject should use reflection-based injection instead of - the (usually faster) lightweight code generation system. - - - - - Gets a value indicating whether Ninject should inject non public members. - - - - - Gets a value indicating whether Ninject should inject private properties of base classes. - - - Activating this setting has an impact on the performance. It is recomended not - to use this feature and use constructor injection instead. - - - - - Gets or sets a value indicating whether the activation cache is disabled. - If the activation cache is disabled less memory is used. But in some cases - instances are activated or deactivated multiple times. e.g. in the following scenario: - Bind{A}().ToSelf(); - Bind{IA}().ToMethod(ctx => kernel.Get{IA}(); - - - true if activation cache is disabled; otherwise, false. - - - - - Gets or sets a value indicating whether Null is a valid value for injection. - By defualt this is disabled and whenever a provider returns null an eception is thrown. - - true if null is allowed as injected value otherwise false. - - - - A service that is started when activated, and stopped when deactivated. - - - - - Starts this instance. Called during activation. - - - - - Stops this instance. Called during deactivation. - - - - - The base implementation of an . - - - - - Lock used when adding missing bindings. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The configuration to use. - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The component container to use. - The configuration to use. - The modules to load into the kernel. - - - - Releases resources held by the object. - - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Determines whether a module with the specified name has been loaded in the kernel. - - The name of the module. - True if the specified module has been loaded; otherwise, false. - - - - Gets the modules that have been loaded into the kernel. - - A series of loaded modules. - - - - Loads the module(s) into the kernel. - - The modules to load. - - - - Loads modules from the files that match the specified pattern(s). - - The file patterns (i.e. "*.dll", "modules/*.rb") to match. - - - - Loads modules defined in the specified assemblies. - - The assemblies to search. - - - - Unloads the plugin with the specified name. - - The plugin's name. - - - - Injects the specified existing instance, without managing its lifecycle. - - The instance to inject. - The parameters to pass to the request. - - - - Deactivates and releases the specified instance if it is currently managed by Ninject. - - The instance to release. - if the instance was found and released; otherwise . - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - Begins a new activation block, which can be used to deterministically dispose resolved instances. - - The new activation block. - - - - Gets the bindings registered for the specified service. - - The service in question. - A series of bindings that are registered for the service. - - - - Returns an IComparer that is used to determine resolution precedence. - - An IComparer that is used to determine resolution precedence. - - - - Returns a predicate that can determine if a given IBinding matches the request. - - The request/ - A predicate that can determine if a given IBinding matches the request. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Adds components to the kernel during startup. - - - - - Attempts to handle a missing binding for a service. - - The service. - True if the missing binding can be handled; otherwise false. - - - - Attempts to handle a missing binding for a request. - - The request. - True if the missing binding can be handled; otherwise false. - - - - Returns a value indicating whether the specified service is self-bindable. - - The service. - if the type is self-bindable; otherwise . - - - - Creates a context for the specified request and binding. - - The request. - The binding. - The created context. - - - - Gets the kernel settings. - - - - - Gets the component container, which holds components that contribute to Ninject. - - - - - Contains configuration options for Ninject. - - - - - Gets the value for the specified key. - - The type of value to return. - The setting's key. - The value to return if no setting is available. - The value, or the default value if none was found. - - - - Sets the value for the specified key. - - The setting's key. - The setting's value. - - - - Gets or sets the attribute that indicates that a member should be injected. - - - - - Gets or sets the interval at which the GC should be polled. - - - - - Gets or sets a value indicating whether the kernel should automatically load extensions at startup. - - - - - Gets or sets the path that should be searched for extensions. - - - - - Gets a value indicating whether Ninject should use reflection-based injection instead of - the (usually faster) lightweight code generation system. - - - - - Gets a value indicating whether Ninject should inject non public members. - - - - - Gets a value indicating whether Ninject should inject private properties of base classes. - - - Activating this setting has an impact on the performance. It is recomended not - to use this feature and use constructor injection instead. - - - - - Gets or sets a value indicating whether the activation cache is disabled. - If the activation cache is disabled less memory is used. But in some cases - instances are activated or deactivated multiple times. e.g. in the following scenario: - Bind{A}().ToSelf(); - Bind{IA}().ToMethod(ctx => kernel.Get{IA}(); - - - true if activation cache is disabled; otherwise, false. - - - - - Gets or sets a value indicating whether Null is a valid value for injection. - By defualt this is disabled and whenever a provider returns null an eception is thrown. - - - true if null is allowed as injected value otherwise false. - - - - - The standard implementation of a kernel. - - - - - Initializes a new instance of the class. - - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The configuration to use. - The modules to load into the kernel. - - - - Adds components to the kernel during startup. - - - - diff --git a/packages/Ninject.2.2.1.4/lib/net35-Full/Ninject.dll b/packages/Ninject.2.2.1.4/lib/net35-Full/Ninject.dll deleted file mode 100644 index 7264dc2..0000000 Binary files a/packages/Ninject.2.2.1.4/lib/net35-Full/Ninject.dll and /dev/null differ diff --git a/packages/Ninject.2.2.1.4/lib/net35-Full/Ninject.pdb b/packages/Ninject.2.2.1.4/lib/net35-Full/Ninject.pdb deleted file mode 100644 index abf9111..0000000 Binary files a/packages/Ninject.2.2.1.4/lib/net35-Full/Ninject.pdb and /dev/null differ diff --git a/packages/Ninject.2.2.1.4/lib/net35-Full/Ninject.xml b/packages/Ninject.2.2.1.4/lib/net35-Full/Ninject.xml deleted file mode 100644 index 50f4a9c..0000000 --- a/packages/Ninject.2.2.1.4/lib/net35-Full/Ninject.xml +++ /dev/null @@ -1,4691 +0,0 @@ - - - - Ninject - - - - - A block used for deterministic disposal of activated instances. When the block is - disposed, all instances activated via it will be deactivated. - - - - - An object that notifies when it is disposed. - - - - - An object that can report whether or not it is disposed. - - - - - Gets a value indicating whether this instance is disposed. - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Releases resources held by the object. - - - - - Releases resources before the object is reclaimed by garbage collection. - - - - - Gets a value indicating whether this instance is disposed. - - - - - A block used for deterministic disposal of activated instances. When the block is - disposed, all instances activated via it will be deactivated. - - - - - Provides a path to resolve instances. - - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - An object that fires an event when it is disposed. - - - - - Occurs when the object is disposed. - - - - - Initializes a new instance of the class. - - The parent resolution root. - - - - Releases resources held by the object. - - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - Gets or sets the parent resolution root (usually the kernel). - - - - - Occurs when the object is disposed. - - - - - Stores the objects that were activated - - - - - A component that contributes to the internals of Ninject. - - - - - A component that contributes to the internals of Ninject. - - - - - Gets or sets the settings. - - - - - Gets or sets the settings. - - - - - Stores the objects that were activated - - - - - Clears the cache. - - - - - Adds an activated instance. - - The instance to be added. - - - - Adds an deactivated instance. - - The instance to be added. - - - - Determines whether the specified instance is activated. - - The instance. - - true if the specified instance is activated; otherwise, false. - - - - - Determines whether the specified instance is deactivated. - - The instance. - - true if the specified instance is deactivated; otherwise, false. - - - - - An object that is prunealble. - - - - - Removes instances from the cache which should no longer be re-used. - - - - - The objects that were activated as reference equal weak references. - - - - - The objects that were activated as reference equal weak references. - - - - - Initializes a new instance of the class. - - The cache pruner. - - - - Clears the cache. - - - - - Adds an activated instance. - - The instance to be added. - - - - Adds an deactivated instance. - - The instance to be added. - - - - Determines whether the specified instance is activated. - - The instance. - - true if the specified instance is activated; otherwise, false. - - - - - Determines whether the specified instance is deactivated. - - The instance. - - true if the specified instance is deactivated; otherwise, false. - - - - - Prunes this instance. - - - - - Removes all dead objects. - - The objects collection to be freed of dead objects. - - - - Gets the activated object count. - - The activated object count. - - - - Gets the deactivated object count. - - The deactivated object count. - - - - Tracks instances for re-use in certain scopes. - - - - - Tracks instances for re-use in certain scopes. - - - - - Stores the specified instance in the cache. - - The context to store. - The instance reference. - - - - Tries to retrieve an instance to re-use in the specified context. - - The context that is being activated. - The instance for re-use, or if none has been stored. - - - - Deactivates and releases the specified instance from the cache. - - The instance to release. - if the instance was found and released; otherwise . - - - - Immediately deactivates and removes all instances in the cache that are owned by - the specified scope. - - The scope whose instances should be deactivated. - - - - Immediately deactivates and removes all instances in the cache, regardless of scope. - - - - - Gets the number of entries currently stored in the cache. - - - - - Contains all cached instances. - This is a dictionary of scopes to a multimap for bindings to cache entries. - - - - - Initializes a new instance of the class. - - The pipeline component. - The cache pruner component. - - - - Releases resources held by the object. - - - - - - Stores the specified context in the cache. - - The context to store. - The instance reference. - - - - Tries to retrieve an instance to re-use in the specified context. - - The context that is being activated. - The instance for re-use, or if none has been stored. - - - - Deactivates and releases the specified instance from the cache. - - The instance to release. - if the instance was found and released; otherwise . - - - - Removes instances from the cache which should no longer be re-used. - - - - - Immediately deactivates and removes all instances in the cache that are owned by - the specified scope. - - The scope whose instances should be deactivated. - - - - Immediately deactivates and removes all instances in the cache, regardless of scope. - - - - - Gets all entries for a binding withing the selected scope. - - The bindings. - All bindings of a binding. - - - - Gets all cache entries. - - Returns all cache entries. - - - - Forgets the specified cache entries. - - The cache entries. - - - - Forgets the specified entry. - - The entry. - - - - Gets the pipeline component. - - - - - Gets the number of entries currently stored in the cache. - - - - - An entry in the cache. - - - - - Initializes a new instance of the class. - - The context. - The instance reference. - - - - Gets the context of the instance. - - The context. - - - - Gets the instance reference. - - The instance reference. - - - - Uses a and some magic to poll - the garbage collector to see if it has run. - - - - - Prunes instances from an based on environmental information. - - - - - Starts pruning the specified cache based on the rules of the pruner. - - The cache that will be pruned. - - - - Stops pruning. - - - - - The caches that are being pruned. - - - - - Releases resources held by the object. - - - - - Starts pruning the specified pruneable based on the rules of the pruner. - - The pruneable that will be pruned. - - - - Stops pruning. - - - - - A provider that delegates to a callback method to create instances. - - The type of instances the provider creates. - - - - A simple abstract provider for instances of a specific type. - - The type of instances the provider creates. - - - - Creates instances of services. - - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Initializes a new instance of the CallbackProvider<T> class. - - The callback method that will be called to create instances. - - - - Invokes the callback method to create an instance. - - The context. - The created instance. - - - - Gets the callback method used by the provider. - - - - - A provider that always returns the same constant value. - - The type of value that is returned. - - - - Initializes a new instance of the ConstantProvider<T> class. - - The value that the provider should return. - - - - Creates an instance within the specified context. - - The context. - The constant value this provider returns. - - - - Gets the value that the provider will return. - - - - - The standard provider for types, which activates instances via a . - - - - - Initializes a new instance of the class. - - The type (or prototype) of instances the provider creates. - The planner component. - The selector component. - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the value to inject into the specified target. - - The context. - The target. - The value to inject into the specified target. - - - - Gets the implementation type that the provider will activate an instance of - for the specified service. - - The service in question. - The implementation type that will be activated. - - - - Gets a callback that creates an instance of the - for the specified type. - - The prototype the provider instance will create. - The created callback. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Gets or sets the planner component. - - - - - Gets or sets the selector component. - - - - - Adds all activated instances to the activation cache. - - - - - Contributes to a , and is called during the activation - and deactivation of an instance. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - The activation cache. - - - - - Initializes a new instance of the class. - - The activation cache. - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - Gets or sets the settings. - - The ninject settings. - - - - Contributes to a , and is called during the activation - and deactivation of an instance. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - Executes actions defined on the binding during activation and deactivation. - - - - - Calls the activation actions defined on the binding. - - The context. - A reference to the instance being activated. - - - - Calls the deactivation actions defined on the binding. - - The context. - A reference to the instance being deactivated. - - - - During deactivation, disposes instances that implement . - - - - - Disposes the specified instance. - - The context. - A reference to the instance being deactivated. - - - - During activation, initializes instances that implement . - - - - - Initializes the specified instance. - - The context. - A reference to the instance being activated. - - - - Injects methods on an instance during activation. - - - - - Injects values into the properties as described by s - contained in the plan. - - The context. - A reference to the instance being activated. - - - - Injects properties on an instance during activation. - - - - - Initializes a new instance of the class. - - The injector factory component. - - - - Injects values into the properties as described by s - contained in the plan. - - The context. - A reference to the instance being activated. - - - - Applies user supplied override values to instance properties. - - The context. - A reference to the instance being activated. - The parameter ovverride value accessors. - - - - Gets the value to inject into the specified target. - - The context. - The target. - The value to inject into the specified target. - - - - Gets the injector factory component. - - - - - Starts instances that implement during activation, - and stops them during deactivation. - - - - - Starts the specified instance. - - The context. - A reference to the instance being activated. - - - - Stops the specified instance. - - The context. - A reference to the instance being deactivated. - - - - Contains information about the activation of a single instance. - - - - - Contains information about the activation of a single instance. - - - - - Gets the provider that should be used to create the instance for this context. - - The provider that should be used. - - - - Gets the scope for the context that "owns" the instance activated therein. - - The object that acts as the scope. - - - - Resolves this instance for this context. - - The resolved instance. - - - - Gets the kernel that is driving the activation. - - - - - Gets the request. - - - - - Gets the binding. - - - - - Gets or sets the activation plan. - - - - - Gets the parameters that were passed to manipulate the activation process. - - - - - Gets the generic arguments for the request, if any. - - - - - Gets a value indicating whether the request involves inferred generic arguments. - - - - - Initializes a new instance of the class. - - The kernel managing the resolution. - The context's request. - The context's binding. - The cache component. - The planner component. - The pipeline component. - - - - Gets the scope for the context that "owns" the instance activated therein. - - The object that acts as the scope. - - - - Gets the provider that should be used to create the instance for this context. - - The provider that should be used. - - - - Resolves the instance associated with this hook. - - The resolved instance. - - - - Gets the kernel that is driving the activation. - - - - - Gets the request. - - - - - Gets the binding. - - - - - Gets or sets the activation plan. - - - - - Gets the parameters that were passed to manipulate the activation process. - - - - - Gets the generic arguments for the request, if any. - - - - - Gets a value indicating whether the request involves inferred generic arguments. - - - - - Gets or sets the cache component. - - - - - Gets or sets the planner component. - - - - - Gets or sets the pipeline component. - - - - - Holds an instance during activation or after it has been cached. - - - - - Returns a value indicating whether the instance is of the specified type. - - The type in question. - if the instance is of the specified type, otherwise . - - - - Returns the instance as the specified type. - - The requested type. - The instance. - - - - Executes the specified action if the instance if of the specified type. - - The type in question. - The action to execute. - - - - Gets or sets the instance. - - - - - Drives the activation (injection, etc.) of an instance. - - - - - Activates the instance in the specified context. - - The context. - The instance reference. - - - - Deactivates the instance in the specified context. - - The context. - The instance reference. - - - - Gets the strategies that contribute to the activation and deactivation processes. - - - - - Describes the request for a service resolution. - - - - - Determines whether the specified binding satisfies the constraint defined on this request. - - The binding. - True if the binding satisfies the constraint; otherwise false. - - - - Gets the scope if one was specified in the request. - - The object that acts as the scope. - - - - Creates a child request. - - The service that is being requested. - The context in which the request was made. - The target that will receive the injection. - The child request. - - - - Gets the service that was requested. - - - - - Gets the parent request. - - - - - Gets the parent context. - - - - - Gets the target that will receive the injection, if any. - - - - - Gets the constraint that will be applied to filter the bindings used for the request. - - - - - Gets the parameters that affect the resolution. - - - - - Gets the stack of bindings which have been activated by either this request or its ancestors. - - - - - Gets the recursive depth at which this request occurs. - - - - - Gets or sets value indicating whether the request is optional. - - - - - Gets or sets value indicating whether the request should return a unique result. - - - - - Drives the activation (injection, etc.) of an instance. - - - - - The activation cache. - - - - - Initializes a new instance of the class. - - The strategies to execute during activation and deactivation. - The activation cache. - - - - Activates the instance in the specified context. - - The context. - The instance reference. - - - - Deactivates the instance in the specified context. - - The context. - The instance reference. - - - - Gets the strategies that contribute to the activation and deactivation processes. - - - - - Describes the request for a service resolution. - - - - - Initializes a new instance of the class. - - The service that was requested. - The constraint that will be applied to filter the bindings used for the request. - The parameters that affect the resolution. - The scope callback, if an external scope was specified. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - - - - Initializes a new instance of the class. - - The parent context. - The service that was requested. - The target that will receive the injection. - The scope callback, if an external scope was specified. - - - - Determines whether the specified binding satisfies the constraints defined on this request. - - The binding. - True if the binding satisfies the constraints; otherwise false. - - - - Gets the scope if one was specified in the request. - - The object that acts as the scope. - - - - Creates a child request. - - The service that is being requested. - The context in which the request was made. - The target that will receive the injection. - The child request. - - - - Gets the service that was requested. - - - - - Gets the parent request. - - - - - Gets the parent context. - - - - - Gets the target that will receive the injection, if any. - - - - - Gets the constraint that will be applied to filter the bindings used for the request. - - - - - Gets the parameters that affect the resolution. - - - - - Gets the stack of bindings which have been activated by either this request or its ancestors. - - - - - Gets the recursive depth at which this request occurs. - - - - - Gets or sets value indicating whether the request is optional. - - - - - Gets or sets value indicating whether the request is for a single service. - - - - - Gets the callback that resolves the scope for the request, if an external scope was provided. - - - - - Defines a constraint on the decorated member. - - - - - Determines whether the specified binding metadata matches the constraint. - - The metadata in question. - True if the metadata matches; otherwise false. - - - - Indicates that the decorated member should be injected. - - - - - Indicates that the decorated member should only be injected using binding(s) registered - with the specified name. - - - - - Initializes a new instance of the class. - - The name of the binding(s) to use. - - - - Determines whether the specified binding metadata matches the constraint. - - The metadata in question. - True if the metadata matches; otherwise false. - - - - Gets the binding name. - - - - - Indicates that the decorated member represents an optional dependency. - - - - - An internal container that manages and resolves components that contribute to Ninject. - - - - - An internal container that manages and resolves components that contribute to Ninject. - - - - - Registers a component in the container. - - The component type. - The component's implementation type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Removes all registrations for the specified component. - - The component's type. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets or sets the kernel that owns the component container. - - - - - Releases resources held by the object. - - - - - Registers a component in the container. - - The component type. - The component's implementation type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets or sets the kernel that owns the component container. - - - - - Provides meaningful exception messages. - - - - - Generates a message saying that modules without names are not supported. - - The exception message. - - - - Generates a message saying that a module with the same name is already loaded. - - The new module. - The existing module. - The exception message. - - - - Generates a message saying that no module has been loaded with the specified name. - - The module name. - The exception message. - - - - Generates a message saying that the binding could not be uniquely resolved. - - The request. - The exception message. - - - - Generates a message saying that the binding could not be resolved on the specified request. - - The request. - The exception message. - - - - Generates a message saying that the specified context has cyclic dependencies. - - The context. - The exception message. - - - - Generates a message saying that an invalid attribute type is used in the binding condition. - - The binding. - Name of the method. - The type. - The exception message. - - - - Generates a message saying that no constructors are available on the specified context. - - The context. - The exception message. - - - - Generates a message saying that no constructors are available for the given component. - - The component. - The implementation. - The exception message. - - - - Generates a message saying that the specified component is not registered. - - The component. - The exception message. - - - - Generates a message saying that the specified property could not be resolved on the specified request. - - The request. - The property name. - The exception message. - - - - Generates a message saying that the provider on the specified context returned null. - - The context. - The exception message. - - - - Provides extension methods for string formatting - - - - - Formats the activation path into a meaningful string representation. - - The request to be formatted. - The activation path formatted as string. - - - - Formats the given binding into a meaningful string representation. - - The binding to be formatted. - The context. - The binding formatted as string - - - - Formats the specified request into a meaningful string representation. - - The request to be formatted. - The request formatted as string. - - - - Formats the specified target into a meaningful string representation.. - - The target to be formatted. - The target formatted as string. - - - - Formats the specified type into a meaningful string representation.. - - The type to be formatted. - The type formatted as string. - - - - Extensions for MemberInfo - - - - - Determines whether the specified member has attribute. - - The type of the attribute. - The member. - - true if the specified member has attribute; otherwise, false. - - - - - Determines whether the specified member has attribute. - - The member. - The type of the attribute. - - true if the specified member has attribute; otherwise, false. - - - - - Gets the property info from its declared tpe. - - The member info. - The property definition. - The flags. - The property info from the declared type of the property. - - - - Determines whether the specified property info is private. - - The property info. - - true if the specified property info is private; otherwise, false. - - - - - Gets the custom attributes. - This version is able to get custom attributes for properties from base types even if the property is none public. - - The member. - Type of the attribute. - if set to true [inherited]. - - - - - Represents a future value. - - The type of value. - - - - Initializes a new instance of the Future<T> class. - - The callback that will be triggered to read the value. - - - - Gets the value from the future. - - The future. - The future value. - - - - Gets the value, resolving it if necessary. - - - - - Gets the callback that will be called to resolve the value. - - - - - Indicates the object has a reference to a . - - - - - Gets the binding. - - - - - Indicates that the object has a reference to an . - - - - - Gets the kernel. - - - - - A data structure that contains multiple values for a each key. - - The type of key. - The type of value. - - - - Adds the specified value for the specified key. - - The key. - The value. - - - - Removes the specified value for the specified key. - - The key. - The value. - True if such a value existed and was removed; otherwise false. - - - - Removes all values for the specified key. - - The key. - True if any such values existed; otherwise false. - - - - Removes all values. - - - - - Determines whether the multimap contains any values for the specified key. - - The key. - True if the multimap has one or more values for the specified key; otherwise, false. - - - - Determines whether the multimap contains the specified value for the specified key. - - The key. - The value. - True if the multimap contains such a value; otherwise, false. - - - - Returns an enumerator that iterates through a the multimap. - - An object that can be used to iterate through the multimap. - - - - Gets the collection of values stored under the specified key. - - The key. - - - - Gets the collection of keys. - - - - - Gets the collection of collections of values. - - - - - Weak reference that can be used in collections. It is equal to the - object it references and has the same hash code. - - - - - Initializes a new instance of the class. - - The target. - - - - Initializes a new instance of the class. - - The target. - if set to true [track resurrection]. - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - The parameter is null. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Gets a value indicating whether this instance is alive. - - true if this instance is alive; otherwise, false. - - - - Gets or sets the target of this weak reference. - - The targe of this weak reference. - - - - Defines the style of request (single or multi-injection, whether it is optional, etc.) - - - - - Indicates a request for a single instance of a service. - - - - - Indicates a request for multiple instances of a service. - - - - - Indicates that null should be returned (instead of throwing) if the service cannot be resolved. - - - - - Scope callbacks for standard scopes. - - - - - Gets the callback for transient scope. - - - - - Gets the callback for singleton scope. - - - - - Gets the callback for thread scope. - - - - - Gets the callback for request scope. - - - - - A delegate that can inject values into a constructor. - - - - - Creates injectors for members via s. - - - - - Creates injectors from members. - - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - A delegate that can inject values into a method. - - - - - A delegate that can inject values into a property. - - - - - Creates injectors from members via reflective invocation. - - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - Loads modules from compiled assemblies. - - - - - Loads modules at runtime by searching external files. - - - - - Loads modules from the specified files. - - The names of the files to load modules from. - - - - Gets the file extensions that the plugin understands how to load. - - - - - Initializes a new instance of the class. - - The kernel into which modules will be loaded. - - - - Loads modules from the specified files. - - The names of the files to load modules from. - - - - Gets or sets the kernel into which modules will be loaded. - - - - - Gets the file extensions that the plugin understands how to load. - - - - - Finds modules defined in external files. - - - - - Loads any modules found in the files that match the specified patterns. - - The patterns to search. - - - - A pluggable unit that can be loaded into an . - - - - - Called when the module is loaded into a kernel. - - The kernel that is loading the module. - - - - Called when the module is unloaded from a kernel. - - The kernel that is unloading the module. - - - - Gets the module's name. - - - - - Automatically finds and loads modules from assemblies. - - - - - Initializes a new instance of the class. - - The kernel into which modules will be loaded. - - - - Loads any modules found in the files that match the specified patterns. - - The patterns to search. - - - - Gets or sets the kernel into which modules will be loaded. - - - - - A loadable unit that defines bindings for your application. - - - - - Provides a path to register bindings. - - - - - Provides a path to register bindings. - - - - - Declares a binding for the specified service. - - The service to bind. - - - - Declares a binding from the service to itself. - - The service to bind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Declares a binding for the specified service. - - The service to bind. - - - - Declares a binding for the specified service. - - The service to bind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Initializes a new instance of the class. - - - - - Called when the module is loaded into a kernel. - - The kernel that is loading the module. - - - - Called when the module is unloaded from a kernel. - - The kernel that is unloading the module. - - - - Loads the module into the kernel. - - - - - Unloads the module from the kernel. - - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Gets the kernel that the module is loaded into. - - - - - Gets the module's name. Only a single module with a given name can be loaded at one time. - - - - - Gets the bindings that were registered by the module. - - - - - Overrides the injected value of a constructor argument. - - - - - Modifies an activation process in some way. - - - - - Modifies an activation process in some way. - - - - - Gets the value for the parameter within the specified context. - - The context. - The target. - The value for the parameter. - - - - Gets the name of the parameter. - - - - - Gets a value indicating whether the parameter should be inherited into child requests. - - - - - Initializes a new instance of the class. - - The name of the parameter. - The value of the parameter. - Whether the parameter should be inherited into child requests. - - - - Initializes a new instance of the class. - - The name of the parameter. - The callback that will be triggered to get the parameter's value. - Whether the parameter should be inherited into child requests. - - - - Initializes a new instance of the class. - - The name of the parameter. - The callback that will be triggered to get the parameter's value. - Whether the parameter should be inherited into child requests. - - - - Gets the value for the parameter within the specified context. - - The context. - The target. - The value for the parameter. - - - - Determines whether the object equals the specified object. - - An object to compare with this object. - True if the objects are equal; otherwise false - - - - Serves as a hash function for a particular type. - - A hash code for the object. - - - - Indicates whether the current object is equal to another object of the same type. - - An object to compare with this object. - True if the objects are equal; otherwise false - - - - Gets the name of the parameter. - - - - - Gets a value indicating whether the parameter should be inherited into child requests. - - - - - Gets or sets the callback that will be triggered to get the parameter's value. - - - - - Initializes a new instance of the class. - - The name of the argument to override. - The value to inject into the property. - - - - Initializes a new instance of the class. - - The name of the argument to override. - The callback to invoke to get the value that should be injected. - - - - Initializes a new instance of the class. - - The name of the argument to override. - The callback to invoke to get the value that should be injected. - - - - Overrides the injected value of a property. - - - - - Initializes a new instance of the class. - - The name of the property to override. - The value to inject into the property. - - - - Initializes a new instance of the class. - - The name of the property to override. - The callback to invoke to get the value that should be injected. - - - - Initializes a new instance of the class. - - The name of the property to override. - The callback to invoke to get the value that should be injected. - - - - Contains logic about which bindings to use for a given service request. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Contains logic about which bindings to use for a given service request - when other attempts have failed. - - - - - Returns any bindings from the specified collection that match the specified request. - - The multimap of all registered bindings. - The request in question. - The series of matching bindings. - - - - Resolves bindings for open generic types. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Returns a value indicating whether the specified service is self-bindable. - - The service. - if the type is self-bindable; otherwise . - - - - Resolves bindings that have been registered directly for the service. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Contains information about a service registration. - - - - - Contains information about a service registration. - - - - - Gets the provider for the binding. - - The context. - The provider to use. - - - - Gets the scope for the binding, if any. - - The context. - The object that will act as the scope, or if the service is transient. - - - - Determines whether the specified request satisfies the condition defined on the binding, - if one was defined. - - The request. - True if the request satisfies the condition; otherwise false. - - - - Gets the service type that is controlled by the binding. - - - - - Gets the binding's metadata. - - - - - Gets or sets the type of target for the binding. - - - - - Gets or sets a value indicating whether the binding was implicitly registered. - - - - - Gets a value indicating whether the binding has a condition associated with it. - - - - - Gets or sets the condition defined for the binding. - - - - - Gets or sets the callback that returns the provider that should be used by the binding. - - - - - Gets or sets the callback that returns the object that will act as the binding's scope. - - - - - Gets the parameters defined for the binding. - - - - - Gets the actions that should be called after instances are activated via the binding. - - - - - Gets the actions that should be called before instances are deactivated via the binding. - - - - - Initializes a new instance of the class. - - The service that is controlled by the binding. - - - - Initializes a new instance of the class. - - The service that is controlled by the binding. - The binding's metadata container. - - - - Gets the provider for the binding. - - The context. - The provider to use. - - - - Gets the scope for the binding, if any. - - The context. - The object that will act as the scope, or if the service is transient. - - - - Determines whether the specified request satisfies the conditions defined on this binding. - - The request. - True if the request satisfies the conditions; otherwise false. - - - - Gets the service type that is controlled by the binding. - - - - - Gets the binding's metadata. - - - - - Gets or sets a value indicating whether the binding was implicitly registered. - - - - - Gets a value indicating whether the binding has a condition associated with it. - - - - - Gets or sets the type of target for the binding. - - - - - Gets or sets the condition defined for the binding. - - - - - Gets or sets the callback that returns the provider that should be used by the binding. - - - - - Gets or sets the callback that returns the object that will act as the binding's scope. - - - - - Gets the parameters defined for the binding. - - - - - Gets the actions that should be called after instances are activated via the binding. - - - - - Gets the actions that should be called before instances are deactivated via the binding. - - - - - Provides a root for the fluent syntax associated with an . - - - - - Used to define the target of a binding. - - The service being bound. - - - - Used to define a basic binding syntax builder. - - - - - A hack to hide methods defined on for IntelliSense - on fluent interfaces. Credit to Daniel Cazzulino. - - - - - - - - - - - - - - - - - Indicates that the service should be self-bound. - - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to the specified provider. - - The provider. - - - - Indicates that the service should be bound to the specified callback method. - - The method. - - - - Indicates that the service should be bound to the specified constant value. - - The constant value. - - - - Used to set the condition, scope, name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to define the conditions under which a binding should be used. - - The service being bound. - - - - Indicates that the binding should be used only for requests that support the specified condition. - - The condition. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the service is being requested - by a service bound with the specified name. - - The name to expect. - - - - Used to define the scope in which instances activated via a binding should be re-used. - - The service being bound. - - - - Indicates that only a single instance of the binding should be created, and then - should be re-used for all subsequent requests. - - - - - Indicates that instances activated via the binding should not be re-used, nor have - their lifecycle managed by Ninject. - - - - - Indicates that instances activated via the binding should be re-used within the same thread. - - - - - Indicates that instances activated via the binding should be re-used within the same - HTTP request. - - - - - Indicates that instances activated via the binding should be re-used as long as the object - returned by the provided callback remains alive (that is, has not been garbage collected). - - The callback that returns the scope. - - - - Used to define the name of a binding. - - The service being bound. - - - - Indicates that the binding should be registered with the specified name. Names are not - necessarily unique; multiple bindings for a given service may be registered with the same name. - - The name to give the binding. - - - - Used to add additional information to a binding. - - The service being bound. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Adds a custom parameter to the binding. - - The parameter. - - - - Sets the value of a piece of metadata on the binding. - - The metadata key. - The metadata value. - - - - Used to add additional actions to be performed during activation or deactivation of instances via a binding. - - The service being bound. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Used to set the scope, name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to set the name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to add additional information or actions to a binding. - - The service being bound. - - - - Initializes a new instance of the BindingBuilder<T> class. - - The binding to build. - The kernel. - - - - Indicates that the service should be self-bound. - - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to the specified provider. - - The provider. - - - - Indicates that the service should be bound to the specified callback method. - - The method. - - - - Indicates that the service should be bound to the specified constant value. - - The constant value. - - - - Indicates that the binding should be used only for requests that support the specified condition. - - The condition. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the service is being requested - by a service bound with the specified name. - - The name to expect. - - - - Indicates that the binding should be registered with the specified name. Names are not - necessarily unique; multiple bindings for a given service may be registered with the same name. - - The name to give the binding. - - - - Indicates that only a single instance of the binding should be created, and then - should be re-used for all subsequent requests. - - - - - Indicates that instances activated via the binding should not be re-used, nor have - their lifecycle managed by Ninject. - - - - - Indicates that instances activated via the binding should be re-used within the same thread. - - - - - Indicates that instances activated via the binding should be re-used within the same - HTTP request. - - - - - Indicates that instances activated via the binding should be re-used as long as the object - returned by the provided callback remains alive (that is, has not been garbage collected). - - The callback that returns the scope. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Adds a custom parameter to the binding. - - The parameter. - - - - Sets the value of a piece of metadata on the binding. - - The metadata key. - The metadata value. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Provides a root for the fluent syntax associated with an . - - - - - Gets the binding being built. - - - - - Gets the kernel. - - - - - Additional information available about a binding, which can be used in constraints - to select bindings to use in activation. - - - - - Additional information available about a binding, which can be used in constraints - to select bindings to use in activation. - - - - - Determines whether a piece of metadata with the specified key has been defined. - - The metadata key. - True if such a piece of metadata exists; otherwise, false. - - - - Gets the value of metadata defined with the specified key, cast to the specified type. - - The type of value to expect. - The metadata key. - The metadata value. - - - - Gets the value of metadata defined with the specified key. - - The metadata key. - The value to return if the binding has no metadata set with the specified key. - The metadata value, or the default value if none was set. - - - - Sets the value of a piece of metadata. - - The metadata key. - The metadata value. - - - - Gets or sets the binding's name. - - - - - Determines whether a piece of metadata with the specified key has been defined. - - The metadata key. - True if such a piece of metadata exists; otherwise, false. - - - - Gets the value of metadata defined with the specified key, cast to the specified type. - - The type of value to expect. - The metadata key. - The metadata value. - - - - Gets the value of metadata defined with the specified key. - - The metadata key. - The value to return if the binding has no metadata set with the specified key. - The metadata value, or the default value if none was set. - - - - Sets the value of a piece of metadata. - - The metadata key. - The metadata value. - - - - Gets or sets the binding's name. - - - - - Describes the target of a binding. - - - - - Indicates that the binding is from a type to itself. - - - - - Indicates that the binding is from one type to another. - - - - - Indicates that the binding is from a type to a provider. - - - - - Indicates that the binding is from a type to a callback method. - - - - - Indicates that the binding is from a type to a constant value. - - - - - Describes the injection of a constructor. - - - - - Describes the injection of a method or constructor. - - - - - A piece of information used in an . (Just a marker.) - - - - - Initializes a new instance of the MethodInjectionDirectiveBase<TMethod, TInjector> class. - - The method this directive represents. - The injector that will be triggered. - - - - Creates targets for the parameters of the method. - - The method. - The targets for the method's parameters. - - - - Gets or sets the injector that will be triggered. - - - - - Gets or sets the targets for the directive. - - - - - Initializes a new instance of the class. - - The constructor described by the directive. - The injector that will be triggered. - - - - The base .ctor definition. - - - - - Describes the injection of a method. - - - - - Initializes a new instance of the class. - - The method described by the directive. - The injector that will be triggered. - - - - Describes the injection of a property. - - - - - Initializes a new instance of the class. - - The member the directive describes. - The injector that will be triggered. - - - - Creates a target for the property. - - The property. - The target for the property. - - - - Gets or sets the injector that will be triggered. - - - - - Gets or sets the injection target for the directive. - - - - - Adds a directive to plans indicating which constructor should be injected during activation. - - - - - Contributes to the generation of a . - - - - - Contributes to the specified plan. - - The plan that is being generated. - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for the constructor - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Adds directives to plans indicating which methods should be injected during activation. - - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for each method - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Adds directives to plans indicating which properties should be injected during activation. - - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for each property - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Represents a site on a type where a value will be injected. - - - - - Resolves a value for the target within the specified parent context. - - The parent context. - The resolved value. - - - - Gets the type of the target. - - - - - Gets the name of the target. - - - - - Gets the member that contains the target. - - - - - Gets the constraint defined on the target. - - - - - Gets a value indicating whether the target represents an optional dependency. - - - - - Represents an injection target for a . - - - - - Represents a site on a type where a value can be injected. - - The type of site this represents. - - - - Initializes a new instance of the Target<T> class. - - The member that contains the target. - The site represented by the target. - - - - Returns an array of custom attributes of a specified type defined on the target. - - The type of attribute to search for. - Whether to look up the hierarchy chain for inherited custom attributes. - An array of custom attributes of the specified type. - - - - Returns an array of custom attributes defined on the target. - - Whether to look up the hierarchy chain for inherited custom attributes. - An array of custom attributes. - - - - Returns a value indicating whether an attribute of the specified type is defined on the target. - - The type of attribute to search for. - Whether to look up the hierarchy chain for inherited custom attributes. - True if such an attribute is defined; otherwise false. - - - - Resolves a value for the target within the specified parent context. - - The parent context. - The resolved value. - - - - Gets the value(s) that should be injected into the target. - - The service that the target is requesting. - The parent context in which the target is being injected. - A series of values that are available for injection. - - - - Gets the value that should be injected into the target. - - The service that the target is requesting. - The parent context in which the target is being injected. - The value that is to be injected. - - - - Reads whether the target represents an optional dependency. - - if it is optional; otherwise . - - - - Reads the resolution constraint from target. - - The resolution constraint. - - - - Gets the member that contains the target. - - - - - Gets or sets the site (property, parameter, etc.) represented by the target. - - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Gets the constraint defined on the target. - - - - - Gets a value indicating whether the target represents an optional dependency. - - - - - Initializes a new instance of the class. - - The method that defines the parameter. - The parameter that this target represents. - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Represents an injection target for a . - - - - - Initializes a new instance of the class. - - The property that this target represents. - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Describes the means by which a type should be activated. - - - - - Adds the specified directive to the plan. - - The directive. - - - - Determines whether the plan contains one or more directives of the specified type. - - The type of directive. - True if the plan has one or more directives of the type; otherwise, false. - - - - Gets the first directive of the specified type from the plan. - - The type of directive. - The first directive, or if no matching directives exist. - - - - Gets all directives of the specified type that exist in the plan. - - The type of directive. - A series of directives of the specified type. - - - - Gets the type that the plan describes. - - - - - Generates plans for how to activate instances. - - - - - Gets or creates an activation plan for the specified type. - - The type for which a plan should be created. - The type's activation plan. - - - - Gets the strategies that contribute to the planning process. - - - - - Describes the means by which a type should be activated. - - - - - Initializes a new instance of the class. - - The type the plan describes. - - - - Adds the specified directive to the plan. - - The directive. - - - - Determines whether the plan contains one or more directives of the specified type. - - The type of directive. - True if the plan has one or more directives of the type; otherwise, false. - - - - Gets the first directive of the specified type from the plan. - - The type of directive. - The first directive, or if no matching directives exist. - - - - Gets all directives of the specified type that exist in the plan. - - The type of directive. - A series of directives of the specified type. - - - - Gets the type that the plan describes. - - - - - Gets the directives defined in the plan. - - - - - Generates plans for how to activate instances. - - - - - Initializes a new instance of the class. - - The strategies to execute during planning. - - - - Gets or creates an activation plan for the specified type. - - The type for which a plan should be created. - The type's activation plan. - - - - Creates an empty plan for the specified type. - - The type for which a plan should be created. - The created plan. - - - - Gets the strategies that contribute to the planning process. - - - - - Generates scores for constructors, to determine which is the best one to call during activation. - - - - - Gets the score for the specified constructor. - - The injection context. - The constructor. - The constructor's score. - - - - Determines whether members should be injected during activation. - - - - - Returns a value indicating whether the specified member should be injected. - - The member in question. - True if the member should be injected; otherwise false. - - - - Scores constructors by either looking for the existence of an injection marker - attribute, or by counting the number of parameters. - - - - - Gets the score for the specified constructor. - - The injection context. - The constructor. - The constructor's score. - - - - Determines whether members should be injected during activation by checking - if they are decorated with an injection marker attribute. - - - - - Returns a value indicating whether the specified member should be injected. - - The member in question. - True if the member should be injected; otherwise false. - - - - Selects members for injection. - - - - - Selects the constructor to call on the specified type, by using the constructor scorer. - - The type. - The selected constructor, or if none were available. - - - - Selects properties that should be injected. - - The type. - A series of the selected properties. - - - - Selects methods that should be injected. - - The type. - A series of the selected methods. - - - - Gets or sets the constructor scorer. - - - - - Gets the heuristics used to determine which members should be injected. - - - - - Selects members for injection. - - - - - Initializes a new instance of the class. - - The constructor scorer. - The injection heuristics. - - - - Selects the constructor to call on the specified type, by using the constructor scorer. - - The type. - The selected constructor, or if none were available. - - - - Selects properties that should be injected. - - The type. - A series of the selected properties. - - - - Selects methods that should be injected. - - The type. - A series of the selected methods. - - - - Gets or sets the constructor scorer. - - - - - Gets the property injection heuristics. - - - - - Extension methods that enhance module loading. - - - - - Creates a new instance of the module and loads it into the kernel. - - The type of the module. - The kernel. - - - - Loads the module(s) into the kernel. - - The kernel. - The modules to load. - - - - Loads modules from the files that match the specified pattern(s). - - The kernel. - The file patterns (i.e. "*.dll", "modules/*.rb") to match. - - - - Loads modules defined in the specified assemblies. - - The kernel. - The assemblies to search. - - - - Extensions that enhance resolution of services. - - - - - Gets an instance of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding that matches the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service. - - - - Tries to get an instance of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding that matches the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Gets all available instances of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service using bindings registered with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service by using the bindings that match the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the bindings. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets an instance of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding that matches the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service. - - - - Tries to get an instance of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding that matches the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Gets all available instances of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service using bindings registered with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service by using the bindings that match the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the bindings. - The parameters to pass to the request. - A series of instances of the service. - - - - Indicates that an error occured during activation of an instance. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The exception message. - - - - Initializes a new instance of the class. - - The exception message. - The inner exception. - - - - Initializes a new instance of the class. - - The serialized object data. - The serialization context. - - - - A service that requires initialization after it is activated. - - - - - Initializes the instance. Called during activation. - - - - - A super-factory that can create objects of all kinds, following hints provided by s. - - - - - Gets the modules that have been loaded into the kernel. - - A series of loaded modules. - - - - Determines whether a module with the specified name has been loaded in the kernel. - - The name of the module. - True if the specified module has been loaded; otherwise, false. - - - - Loads the module(s) into the kernel. - - The modules to load. - - - - Loads modules from the files that match the specified pattern(s). - - The file patterns (i.e. "*.dll", "modules/*.rb") to match. - - - - Loads modules defined in the specified assemblies. - - The assemblies to search. - - - - Unloads the plugin with the specified name. - - The plugin's name. - - - - Injects the specified existing instance, without managing its lifecycle. - - The instance to inject. - The parameters to pass to the request. - - - - Deactivates and releases the specified instance if it is currently managed by Ninject. - - The instance to release. - if the instance was found and released; otherwise . - - - - Gets the bindings registered for the specified service. - - The service in question. - A series of bindings that are registered for the service. - - - - Begins a new activation block, which can be used to deterministically dispose resolved instances. - - The new activation block. - - - - Gets the kernel settings. - - - - - Gets the component container, which holds components that contribute to Ninject. - - - - - Contains configuration options for Ninject. - - - - - Gets the value for the specified key. - - The type of value to return. - The setting's key. - The value to return if no setting is available. - The value, or the default value if none was found. - - - - Sets the value for the specified key. - - The setting's key. - The setting's value. - - - - Gets the attribute that indicates that a member should be injected. - - - - - Gets the interval at which the cache should be pruned. - - - - - Gets a value indicating whether the kernel should automatically load extensions at startup. - - - - - Gets the path that should be searched for extensions. - - - - - Gets a value indicating whether Ninject should use reflection-based injection instead of - the (usually faster) lightweight code generation system. - - - - - Gets a value indicating whether Ninject should inject non public members. - - - - - Gets a value indicating whether Ninject should inject private properties of base classes. - - - Activating this setting has an impact on the performance. It is recomended not - to use this feature and use constructor injection instead. - - - - - Gets or sets a value indicating whether the activation cache is disabled. - If the activation cache is disabled less memory is used. But in some cases - instances are activated or deactivated multiple times. e.g. in the following scenario: - Bind{A}().ToSelf(); - Bind{IA}().ToMethod(ctx => kernel.Get{IA}(); - - - true if activation cache is disabled; otherwise, false. - - - - - Gets or sets a value indicating whether Null is a valid value for injection. - By defualt this is disabled and whenever a provider returns null an eception is thrown. - - true if null is allowed as injected value otherwise false. - - - - A service that is started when activated, and stopped when deactivated. - - - - - Starts this instance. Called during activation. - - - - - Stops this instance. Called during deactivation. - - - - - The base implementation of an . - - - - - Lock used when adding missing bindings. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The configuration to use. - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The component container to use. - The configuration to use. - The modules to load into the kernel. - - - - Releases resources held by the object. - - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Determines whether a module with the specified name has been loaded in the kernel. - - The name of the module. - True if the specified module has been loaded; otherwise, false. - - - - Gets the modules that have been loaded into the kernel. - - A series of loaded modules. - - - - Loads the module(s) into the kernel. - - The modules to load. - - - - Loads modules from the files that match the specified pattern(s). - - The file patterns (i.e. "*.dll", "modules/*.rb") to match. - - - - Loads modules defined in the specified assemblies. - - The assemblies to search. - - - - Unloads the plugin with the specified name. - - The plugin's name. - - - - Injects the specified existing instance, without managing its lifecycle. - - The instance to inject. - The parameters to pass to the request. - - - - Deactivates and releases the specified instance if it is currently managed by Ninject. - - The instance to release. - if the instance was found and released; otherwise . - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - Begins a new activation block, which can be used to deterministically dispose resolved instances. - - The new activation block. - - - - Gets the bindings registered for the specified service. - - The service in question. - A series of bindings that are registered for the service. - - - - Returns an IComparer that is used to determine resolution precedence. - - An IComparer that is used to determine resolution precedence. - - - - Returns a predicate that can determine if a given IBinding matches the request. - - The request/ - A predicate that can determine if a given IBinding matches the request. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Adds components to the kernel during startup. - - - - - Attempts to handle a missing binding for a service. - - The service. - True if the missing binding can be handled; otherwise false. - - - - Attempts to handle a missing binding for a request. - - The request. - True if the missing binding can be handled; otherwise false. - - - - Returns a value indicating whether the specified service is self-bindable. - - The service. - if the type is self-bindable; otherwise . - - - - Creates a context for the specified request and binding. - - The request. - The binding. - The created context. - - - - Gets the kernel settings. - - - - - Gets the component container, which holds components that contribute to Ninject. - - - - - Contains configuration options for Ninject. - - - - - Gets the value for the specified key. - - The type of value to return. - The setting's key. - The value to return if no setting is available. - The value, or the default value if none was found. - - - - Sets the value for the specified key. - - The setting's key. - The setting's value. - - - - Gets or sets the attribute that indicates that a member should be injected. - - - - - Gets or sets the interval at which the GC should be polled. - - - - - Gets or sets a value indicating whether the kernel should automatically load extensions at startup. - - - - - Gets or sets the path that should be searched for extensions. - - - - - Gets a value indicating whether Ninject should use reflection-based injection instead of - the (usually faster) lightweight code generation system. - - - - - Gets a value indicating whether Ninject should inject non public members. - - - - - Gets a value indicating whether Ninject should inject private properties of base classes. - - - Activating this setting has an impact on the performance. It is recomended not - to use this feature and use constructor injection instead. - - - - - Gets or sets a value indicating whether the activation cache is disabled. - If the activation cache is disabled less memory is used. But in some cases - instances are activated or deactivated multiple times. e.g. in the following scenario: - Bind{A}().ToSelf(); - Bind{IA}().ToMethod(ctx => kernel.Get{IA}(); - - - true if activation cache is disabled; otherwise, false. - - - - - Gets or sets a value indicating whether Null is a valid value for injection. - By defualt this is disabled and whenever a provider returns null an eception is thrown. - - - true if null is allowed as injected value otherwise false. - - - - - Provides callbacks to more aggressively collect objects scoped to HTTP requests. - - - - - Initializes the module. - - The whose instances will be managed. - - - - Start managing instances for the specified kernel. - - The kernel. - - - - Stops managing instances for the specified kernel. - - The kernel. - - - - Deactivates instances owned by the current . - - - - - The standard implementation of a kernel. - - - - - Initializes a new instance of the class. - - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The configuration to use. - The modules to load into the kernel. - - - - Adds components to the kernel during startup. - - - - diff --git a/packages/Ninject.2.2.1.4/lib/net40-Client/Ninject.dll b/packages/Ninject.2.2.1.4/lib/net40-Client/Ninject.dll deleted file mode 100644 index 083528c..0000000 Binary files a/packages/Ninject.2.2.1.4/lib/net40-Client/Ninject.dll and /dev/null differ diff --git a/packages/Ninject.2.2.1.4/lib/net40-Client/Ninject.pdb b/packages/Ninject.2.2.1.4/lib/net40-Client/Ninject.pdb deleted file mode 100644 index 46d08cc..0000000 Binary files a/packages/Ninject.2.2.1.4/lib/net40-Client/Ninject.pdb and /dev/null differ diff --git a/packages/Ninject.2.2.1.4/lib/net40-Client/Ninject.xml b/packages/Ninject.2.2.1.4/lib/net40-Client/Ninject.xml deleted file mode 100644 index 2a7ad16..0000000 --- a/packages/Ninject.2.2.1.4/lib/net40-Client/Ninject.xml +++ /dev/null @@ -1,4641 +0,0 @@ - - - - Ninject - - - - - A block used for deterministic disposal of activated instances. When the block is - disposed, all instances activated via it will be deactivated. - - - - - An object that notifies when it is disposed. - - - - - An object that can report whether or not it is disposed. - - - - - Gets a value indicating whether this instance is disposed. - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Releases resources held by the object. - - - - - Releases resources before the object is reclaimed by garbage collection. - - - - - Gets a value indicating whether this instance is disposed. - - - - - A block used for deterministic disposal of activated instances. When the block is - disposed, all instances activated via it will be deactivated. - - - - - Provides a path to resolve instances. - - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - An object that fires an event when it is disposed. - - - - - Occurs when the object is disposed. - - - - - Initializes a new instance of the class. - - The parent resolution root. - - - - Releases resources held by the object. - - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - Gets or sets the parent resolution root (usually the kernel). - - - - - Occurs when the object is disposed. - - - - - Stores the objects that were activated - - - - - A component that contributes to the internals of Ninject. - - - - - A component that contributes to the internals of Ninject. - - - - - Gets or sets the settings. - - - - - Gets or sets the settings. - - - - - Stores the objects that were activated - - - - - Clears the cache. - - - - - Adds an activated instance. - - The instance to be added. - - - - Adds an deactivated instance. - - The instance to be added. - - - - Determines whether the specified instance is activated. - - The instance. - - true if the specified instance is activated; otherwise, false. - - - - - Determines whether the specified instance is deactivated. - - The instance. - - true if the specified instance is deactivated; otherwise, false. - - - - - An object that is prunealble. - - - - - Removes instances from the cache which should no longer be re-used. - - - - - The objects that were activated as reference equal weak references. - - - - - The objects that were activated as reference equal weak references. - - - - - Initializes a new instance of the class. - - The cache pruner. - - - - Clears the cache. - - - - - Adds an activated instance. - - The instance to be added. - - - - Adds an deactivated instance. - - The instance to be added. - - - - Determines whether the specified instance is activated. - - The instance. - - true if the specified instance is activated; otherwise, false. - - - - - Determines whether the specified instance is deactivated. - - The instance. - - true if the specified instance is deactivated; otherwise, false. - - - - - Prunes this instance. - - - - - Removes all dead objects. - - The objects collection to be freed of dead objects. - - - - Gets the activated object count. - - The activated object count. - - - - Gets the deactivated object count. - - The deactivated object count. - - - - Tracks instances for re-use in certain scopes. - - - - - Tracks instances for re-use in certain scopes. - - - - - Stores the specified instance in the cache. - - The context to store. - The instance reference. - - - - Tries to retrieve an instance to re-use in the specified context. - - The context that is being activated. - The instance for re-use, or if none has been stored. - - - - Deactivates and releases the specified instance from the cache. - - The instance to release. - if the instance was found and released; otherwise . - - - - Immediately deactivates and removes all instances in the cache that are owned by - the specified scope. - - The scope whose instances should be deactivated. - - - - Immediately deactivates and removes all instances in the cache, regardless of scope. - - - - - Gets the number of entries currently stored in the cache. - - - - - Contains all cached instances. - This is a dictionary of scopes to a multimap for bindings to cache entries. - - - - - Initializes a new instance of the class. - - The pipeline component. - The cache pruner component. - - - - Releases resources held by the object. - - - - - - Stores the specified context in the cache. - - The context to store. - The instance reference. - - - - Tries to retrieve an instance to re-use in the specified context. - - The context that is being activated. - The instance for re-use, or if none has been stored. - - - - Deactivates and releases the specified instance from the cache. - - The instance to release. - if the instance was found and released; otherwise . - - - - Removes instances from the cache which should no longer be re-used. - - - - - Immediately deactivates and removes all instances in the cache that are owned by - the specified scope. - - The scope whose instances should be deactivated. - - - - Immediately deactivates and removes all instances in the cache, regardless of scope. - - - - - Gets all entries for a binding withing the selected scope. - - The bindings. - All bindings of a binding. - - - - Gets all cache entries. - - Returns all cache entries. - - - - Forgets the specified cache entries. - - The cache entries. - - - - Forgets the specified entry. - - The entry. - - - - Gets the pipeline component. - - - - - Gets the number of entries currently stored in the cache. - - - - - An entry in the cache. - - - - - Initializes a new instance of the class. - - The context. - The instance reference. - - - - Gets the context of the instance. - - The context. - - - - Gets the instance reference. - - The instance reference. - - - - Uses a and some magic to poll - the garbage collector to see if it has run. - - - - - Prunes instances from an based on environmental information. - - - - - Starts pruning the specified cache based on the rules of the pruner. - - The cache that will be pruned. - - - - Stops pruning. - - - - - The caches that are being pruned. - - - - - Releases resources held by the object. - - - - - Starts pruning the specified pruneable based on the rules of the pruner. - - The pruneable that will be pruned. - - - - Stops pruning. - - - - - A provider that delegates to a callback method to create instances. - - The type of instances the provider creates. - - - - A simple abstract provider for instances of a specific type. - - The type of instances the provider creates. - - - - Creates instances of services. - - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Initializes a new instance of the CallbackProvider<T> class. - - The callback method that will be called to create instances. - - - - Invokes the callback method to create an instance. - - The context. - The created instance. - - - - Gets the callback method used by the provider. - - - - - A provider that always returns the same constant value. - - The type of value that is returned. - - - - Initializes a new instance of the ConstantProvider<T> class. - - The value that the provider should return. - - - - Creates an instance within the specified context. - - The context. - The constant value this provider returns. - - - - Gets the value that the provider will return. - - - - - The standard provider for types, which activates instances via a . - - - - - Initializes a new instance of the class. - - The type (or prototype) of instances the provider creates. - The planner component. - The selector component. - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the value to inject into the specified target. - - The context. - The target. - The value to inject into the specified target. - - - - Gets the implementation type that the provider will activate an instance of - for the specified service. - - The service in question. - The implementation type that will be activated. - - - - Gets a callback that creates an instance of the - for the specified type. - - The prototype the provider instance will create. - The created callback. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Gets or sets the planner component. - - - - - Gets or sets the selector component. - - - - - Adds all activated instances to the activation cache. - - - - - Contributes to a , and is called during the activation - and deactivation of an instance. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - The activation cache. - - - - - Initializes a new instance of the class. - - The activation cache. - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - Gets or sets the settings. - - The ninject settings. - - - - Contributes to a , and is called during the activation - and deactivation of an instance. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - Executes actions defined on the binding during activation and deactivation. - - - - - Calls the activation actions defined on the binding. - - The context. - A reference to the instance being activated. - - - - Calls the deactivation actions defined on the binding. - - The context. - A reference to the instance being deactivated. - - - - During deactivation, disposes instances that implement . - - - - - Disposes the specified instance. - - The context. - A reference to the instance being deactivated. - - - - During activation, initializes instances that implement . - - - - - Initializes the specified instance. - - The context. - A reference to the instance being activated. - - - - Injects methods on an instance during activation. - - - - - Injects values into the properties as described by s - contained in the plan. - - The context. - A reference to the instance being activated. - - - - Injects properties on an instance during activation. - - - - - Initializes a new instance of the class. - - The injector factory component. - - - - Injects values into the properties as described by s - contained in the plan. - - The context. - A reference to the instance being activated. - - - - Applies user supplied override values to instance properties. - - The context. - A reference to the instance being activated. - The parameter ovverride value accessors. - - - - Gets the value to inject into the specified target. - - The context. - The target. - The value to inject into the specified target. - - - - Gets the injector factory component. - - - - - Starts instances that implement during activation, - and stops them during deactivation. - - - - - Starts the specified instance. - - The context. - A reference to the instance being activated. - - - - Stops the specified instance. - - The context. - A reference to the instance being deactivated. - - - - Contains information about the activation of a single instance. - - - - - Contains information about the activation of a single instance. - - - - - Gets the provider that should be used to create the instance for this context. - - The provider that should be used. - - - - Gets the scope for the context that "owns" the instance activated therein. - - The object that acts as the scope. - - - - Resolves this instance for this context. - - The resolved instance. - - - - Gets the kernel that is driving the activation. - - - - - Gets the request. - - - - - Gets the binding. - - - - - Gets or sets the activation plan. - - - - - Gets the parameters that were passed to manipulate the activation process. - - - - - Gets the generic arguments for the request, if any. - - - - - Gets a value indicating whether the request involves inferred generic arguments. - - - - - Initializes a new instance of the class. - - The kernel managing the resolution. - The context's request. - The context's binding. - The cache component. - The planner component. - The pipeline component. - - - - Gets the scope for the context that "owns" the instance activated therein. - - The object that acts as the scope. - - - - Gets the provider that should be used to create the instance for this context. - - The provider that should be used. - - - - Resolves the instance associated with this hook. - - The resolved instance. - - - - Gets the kernel that is driving the activation. - - - - - Gets the request. - - - - - Gets the binding. - - - - - Gets or sets the activation plan. - - - - - Gets the parameters that were passed to manipulate the activation process. - - - - - Gets the generic arguments for the request, if any. - - - - - Gets a value indicating whether the request involves inferred generic arguments. - - - - - Gets or sets the cache component. - - - - - Gets or sets the planner component. - - - - - Gets or sets the pipeline component. - - - - - Holds an instance during activation or after it has been cached. - - - - - Returns a value indicating whether the instance is of the specified type. - - The type in question. - if the instance is of the specified type, otherwise . - - - - Returns the instance as the specified type. - - The requested type. - The instance. - - - - Executes the specified action if the instance if of the specified type. - - The type in question. - The action to execute. - - - - Gets or sets the instance. - - - - - Drives the activation (injection, etc.) of an instance. - - - - - Activates the instance in the specified context. - - The context. - The instance reference. - - - - Deactivates the instance in the specified context. - - The context. - The instance reference. - - - - Gets the strategies that contribute to the activation and deactivation processes. - - - - - Describes the request for a service resolution. - - - - - Determines whether the specified binding satisfies the constraint defined on this request. - - The binding. - True if the binding satisfies the constraint; otherwise false. - - - - Gets the scope if one was specified in the request. - - The object that acts as the scope. - - - - Creates a child request. - - The service that is being requested. - The context in which the request was made. - The target that will receive the injection. - The child request. - - - - Gets the service that was requested. - - - - - Gets the parent request. - - - - - Gets the parent context. - - - - - Gets the target that will receive the injection, if any. - - - - - Gets the constraint that will be applied to filter the bindings used for the request. - - - - - Gets the parameters that affect the resolution. - - - - - Gets the stack of bindings which have been activated by either this request or its ancestors. - - - - - Gets the recursive depth at which this request occurs. - - - - - Gets or sets value indicating whether the request is optional. - - - - - Gets or sets value indicating whether the request should return a unique result. - - - - - Drives the activation (injection, etc.) of an instance. - - - - - The activation cache. - - - - - Initializes a new instance of the class. - - The strategies to execute during activation and deactivation. - The activation cache. - - - - Activates the instance in the specified context. - - The context. - The instance reference. - - - - Deactivates the instance in the specified context. - - The context. - The instance reference. - - - - Gets the strategies that contribute to the activation and deactivation processes. - - - - - Describes the request for a service resolution. - - - - - Initializes a new instance of the class. - - The service that was requested. - The constraint that will be applied to filter the bindings used for the request. - The parameters that affect the resolution. - The scope callback, if an external scope was specified. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - - - - Initializes a new instance of the class. - - The parent context. - The service that was requested. - The target that will receive the injection. - The scope callback, if an external scope was specified. - - - - Determines whether the specified binding satisfies the constraints defined on this request. - - The binding. - True if the binding satisfies the constraints; otherwise false. - - - - Gets the scope if one was specified in the request. - - The object that acts as the scope. - - - - Creates a child request. - - The service that is being requested. - The context in which the request was made. - The target that will receive the injection. - The child request. - - - - Gets the service that was requested. - - - - - Gets the parent request. - - - - - Gets the parent context. - - - - - Gets the target that will receive the injection, if any. - - - - - Gets the constraint that will be applied to filter the bindings used for the request. - - - - - Gets the parameters that affect the resolution. - - - - - Gets the stack of bindings which have been activated by either this request or its ancestors. - - - - - Gets the recursive depth at which this request occurs. - - - - - Gets or sets value indicating whether the request is optional. - - - - - Gets or sets value indicating whether the request is for a single service. - - - - - Gets the callback that resolves the scope for the request, if an external scope was provided. - - - - - Defines a constraint on the decorated member. - - - - - Determines whether the specified binding metadata matches the constraint. - - The metadata in question. - True if the metadata matches; otherwise false. - - - - Indicates that the decorated member should be injected. - - - - - Indicates that the decorated member should only be injected using binding(s) registered - with the specified name. - - - - - Initializes a new instance of the class. - - The name of the binding(s) to use. - - - - Determines whether the specified binding metadata matches the constraint. - - The metadata in question. - True if the metadata matches; otherwise false. - - - - Gets the binding name. - - - - - Indicates that the decorated member represents an optional dependency. - - - - - An internal container that manages and resolves components that contribute to Ninject. - - - - - An internal container that manages and resolves components that contribute to Ninject. - - - - - Registers a component in the container. - - The component type. - The component's implementation type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Removes all registrations for the specified component. - - The component's type. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets or sets the kernel that owns the component container. - - - - - Releases resources held by the object. - - - - - Registers a component in the container. - - The component type. - The component's implementation type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets or sets the kernel that owns the component container. - - - - - Provides meaningful exception messages. - - - - - Generates a message saying that modules without names are not supported. - - The exception message. - - - - Generates a message saying that a module with the same name is already loaded. - - The new module. - The existing module. - The exception message. - - - - Generates a message saying that no module has been loaded with the specified name. - - The module name. - The exception message. - - - - Generates a message saying that the binding could not be uniquely resolved. - - The request. - The exception message. - - - - Generates a message saying that the binding could not be resolved on the specified request. - - The request. - The exception message. - - - - Generates a message saying that the specified context has cyclic dependencies. - - The context. - The exception message. - - - - Generates a message saying that an invalid attribute type is used in the binding condition. - - The binding. - Name of the method. - The type. - The exception message. - - - - Generates a message saying that no constructors are available on the specified context. - - The context. - The exception message. - - - - Generates a message saying that no constructors are available for the given component. - - The component. - The implementation. - The exception message. - - - - Generates a message saying that the specified component is not registered. - - The component. - The exception message. - - - - Generates a message saying that the specified property could not be resolved on the specified request. - - The request. - The property name. - The exception message. - - - - Generates a message saying that the provider on the specified context returned null. - - The context. - The exception message. - - - - Provides extension methods for string formatting - - - - - Formats the activation path into a meaningful string representation. - - The request to be formatted. - The activation path formatted as string. - - - - Formats the given binding into a meaningful string representation. - - The binding to be formatted. - The context. - The binding formatted as string - - - - Formats the specified request into a meaningful string representation. - - The request to be formatted. - The request formatted as string. - - - - Formats the specified target into a meaningful string representation.. - - The target to be formatted. - The target formatted as string. - - - - Formats the specified type into a meaningful string representation.. - - The type to be formatted. - The type formatted as string. - - - - Extensions for MemberInfo - - - - - Determines whether the specified member has attribute. - - The type of the attribute. - The member. - - true if the specified member has attribute; otherwise, false. - - - - - Determines whether the specified member has attribute. - - The member. - The type of the attribute. - - true if the specified member has attribute; otherwise, false. - - - - - Gets the property info from its declared tpe. - - The member info. - The property definition. - The flags. - The property info from the declared type of the property. - - - - Determines whether the specified property info is private. - - The property info. - - true if the specified property info is private; otherwise, false. - - - - - Gets the custom attributes. - This version is able to get custom attributes for properties from base types even if the property is none public. - - The member. - Type of the attribute. - if set to true [inherited]. - - - - - Represents a future value. - - The type of value. - - - - Initializes a new instance of the Future<T> class. - - The callback that will be triggered to read the value. - - - - Gets the value from the future. - - The future. - The future value. - - - - Gets the value, resolving it if necessary. - - - - - Gets the callback that will be called to resolve the value. - - - - - Indicates the object has a reference to a . - - - - - Gets the binding. - - - - - Indicates that the object has a reference to an . - - - - - Gets the kernel. - - - - - A data structure that contains multiple values for a each key. - - The type of key. - The type of value. - - - - Adds the specified value for the specified key. - - The key. - The value. - - - - Removes the specified value for the specified key. - - The key. - The value. - True if such a value existed and was removed; otherwise false. - - - - Removes all values for the specified key. - - The key. - True if any such values existed; otherwise false. - - - - Removes all values. - - - - - Determines whether the multimap contains any values for the specified key. - - The key. - True if the multimap has one or more values for the specified key; otherwise, false. - - - - Determines whether the multimap contains the specified value for the specified key. - - The key. - The value. - True if the multimap contains such a value; otherwise, false. - - - - Returns an enumerator that iterates through a the multimap. - - An object that can be used to iterate through the multimap. - - - - Gets the collection of values stored under the specified key. - - The key. - - - - Gets the collection of keys. - - - - - Gets the collection of collections of values. - - - - - Weak reference that can be used in collections. It is equal to the - object it references and has the same hash code. - - - - - Initializes a new instance of the class. - - The target. - - - - Initializes a new instance of the class. - - The target. - if set to true [track resurrection]. - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - The parameter is null. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Gets a value indicating whether this instance is alive. - - true if this instance is alive; otherwise, false. - - - - Gets or sets the target of this weak reference. - - The targe of this weak reference. - - - - Defines the style of request (single or multi-injection, whether it is optional, etc.) - - - - - Indicates a request for a single instance of a service. - - - - - Indicates a request for multiple instances of a service. - - - - - Indicates that null should be returned (instead of throwing) if the service cannot be resolved. - - - - - Scope callbacks for standard scopes. - - - - - Gets the callback for transient scope. - - - - - Gets the callback for singleton scope. - - - - - Gets the callback for thread scope. - - - - - A delegate that can inject values into a constructor. - - - - - Creates injectors for members via s. - - - - - Creates injectors from members. - - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - A delegate that can inject values into a method. - - - - - A delegate that can inject values into a property. - - - - - Creates injectors from members via reflective invocation. - - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - Loads modules from compiled assemblies. - - - - - Loads modules at runtime by searching external files. - - - - - Loads modules from the specified files. - - The names of the files to load modules from. - - - - Gets the file extensions that the plugin understands how to load. - - - - - Initializes a new instance of the class. - - The kernel into which modules will be loaded. - - - - Loads modules from the specified files. - - The names of the files to load modules from. - - - - Gets or sets the kernel into which modules will be loaded. - - - - - Gets the file extensions that the plugin understands how to load. - - - - - Finds modules defined in external files. - - - - - Loads any modules found in the files that match the specified patterns. - - The patterns to search. - - - - A pluggable unit that can be loaded into an . - - - - - Called when the module is loaded into a kernel. - - The kernel that is loading the module. - - - - Called when the module is unloaded from a kernel. - - The kernel that is unloading the module. - - - - Gets the module's name. - - - - - Automatically finds and loads modules from assemblies. - - - - - Initializes a new instance of the class. - - The kernel into which modules will be loaded. - - - - Loads any modules found in the files that match the specified patterns. - - The patterns to search. - - - - Gets or sets the kernel into which modules will be loaded. - - - - - A loadable unit that defines bindings for your application. - - - - - Provides a path to register bindings. - - - - - Provides a path to register bindings. - - - - - Declares a binding for the specified service. - - The service to bind. - - - - Declares a binding from the service to itself. - - The service to bind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Declares a binding for the specified service. - - The service to bind. - - - - Declares a binding for the specified service. - - The service to bind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Initializes a new instance of the class. - - - - - Called when the module is loaded into a kernel. - - The kernel that is loading the module. - - - - Called when the module is unloaded from a kernel. - - The kernel that is unloading the module. - - - - Loads the module into the kernel. - - - - - Unloads the module from the kernel. - - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Gets the kernel that the module is loaded into. - - - - - Gets the module's name. Only a single module with a given name can be loaded at one time. - - - - - Gets the bindings that were registered by the module. - - - - - Overrides the injected value of a constructor argument. - - - - - Modifies an activation process in some way. - - - - - Modifies an activation process in some way. - - - - - Gets the value for the parameter within the specified context. - - The context. - The target. - The value for the parameter. - - - - Gets the name of the parameter. - - - - - Gets a value indicating whether the parameter should be inherited into child requests. - - - - - Initializes a new instance of the class. - - The name of the parameter. - The value of the parameter. - Whether the parameter should be inherited into child requests. - - - - Initializes a new instance of the class. - - The name of the parameter. - The callback that will be triggered to get the parameter's value. - Whether the parameter should be inherited into child requests. - - - - Initializes a new instance of the class. - - The name of the parameter. - The callback that will be triggered to get the parameter's value. - Whether the parameter should be inherited into child requests. - - - - Gets the value for the parameter within the specified context. - - The context. - The target. - The value for the parameter. - - - - Determines whether the object equals the specified object. - - An object to compare with this object. - True if the objects are equal; otherwise false - - - - Serves as a hash function for a particular type. - - A hash code for the object. - - - - Indicates whether the current object is equal to another object of the same type. - - An object to compare with this object. - True if the objects are equal; otherwise false - - - - Gets the name of the parameter. - - - - - Gets a value indicating whether the parameter should be inherited into child requests. - - - - - Gets or sets the callback that will be triggered to get the parameter's value. - - - - - Initializes a new instance of the class. - - The name of the argument to override. - The value to inject into the property. - - - - Initializes a new instance of the class. - - The name of the argument to override. - The callback to invoke to get the value that should be injected. - - - - Initializes a new instance of the class. - - The name of the argument to override. - The callback to invoke to get the value that should be injected. - - - - Overrides the injected value of a property. - - - - - Initializes a new instance of the class. - - The name of the property to override. - The value to inject into the property. - - - - Initializes a new instance of the class. - - The name of the property to override. - The callback to invoke to get the value that should be injected. - - - - Initializes a new instance of the class. - - The name of the property to override. - The callback to invoke to get the value that should be injected. - - - - Contains logic about which bindings to use for a given service request. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Contains logic about which bindings to use for a given service request - when other attempts have failed. - - - - - Returns any bindings from the specified collection that match the specified request. - - The multimap of all registered bindings. - The request in question. - The series of matching bindings. - - - - Resolves bindings for open generic types. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Returns a value indicating whether the specified service is self-bindable. - - The service. - if the type is self-bindable; otherwise . - - - - Resolves bindings that have been registered directly for the service. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Contains information about a service registration. - - - - - Contains information about a service registration. - - - - - Gets the provider for the binding. - - The context. - The provider to use. - - - - Gets the scope for the binding, if any. - - The context. - The object that will act as the scope, or if the service is transient. - - - - Determines whether the specified request satisfies the condition defined on the binding, - if one was defined. - - The request. - True if the request satisfies the condition; otherwise false. - - - - Gets the service type that is controlled by the binding. - - - - - Gets the binding's metadata. - - - - - Gets or sets the type of target for the binding. - - - - - Gets or sets a value indicating whether the binding was implicitly registered. - - - - - Gets a value indicating whether the binding has a condition associated with it. - - - - - Gets or sets the condition defined for the binding. - - - - - Gets or sets the callback that returns the provider that should be used by the binding. - - - - - Gets or sets the callback that returns the object that will act as the binding's scope. - - - - - Gets the parameters defined for the binding. - - - - - Gets the actions that should be called after instances are activated via the binding. - - - - - Gets the actions that should be called before instances are deactivated via the binding. - - - - - Initializes a new instance of the class. - - The service that is controlled by the binding. - - - - Initializes a new instance of the class. - - The service that is controlled by the binding. - The binding's metadata container. - - - - Gets the provider for the binding. - - The context. - The provider to use. - - - - Gets the scope for the binding, if any. - - The context. - The object that will act as the scope, or if the service is transient. - - - - Determines whether the specified request satisfies the conditions defined on this binding. - - The request. - True if the request satisfies the conditions; otherwise false. - - - - Gets the service type that is controlled by the binding. - - - - - Gets the binding's metadata. - - - - - Gets or sets a value indicating whether the binding was implicitly registered. - - - - - Gets a value indicating whether the binding has a condition associated with it. - - - - - Gets or sets the type of target for the binding. - - - - - Gets or sets the condition defined for the binding. - - - - - Gets or sets the callback that returns the provider that should be used by the binding. - - - - - Gets or sets the callback that returns the object that will act as the binding's scope. - - - - - Gets the parameters defined for the binding. - - - - - Gets the actions that should be called after instances are activated via the binding. - - - - - Gets the actions that should be called before instances are deactivated via the binding. - - - - - Provides a root for the fluent syntax associated with an . - - - - - Used to define the target of a binding. - - The service being bound. - - - - Used to define a basic binding syntax builder. - - - - - A hack to hide methods defined on for IntelliSense - on fluent interfaces. Credit to Daniel Cazzulino. - - - - - - - - - - - - - - - - - Indicates that the service should be self-bound. - - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to the specified provider. - - The provider. - - - - Indicates that the service should be bound to the specified callback method. - - The method. - - - - Indicates that the service should be bound to the specified constant value. - - The constant value. - - - - Used to set the condition, scope, name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to define the conditions under which a binding should be used. - - The service being bound. - - - - Indicates that the binding should be used only for requests that support the specified condition. - - The condition. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the service is being requested - by a service bound with the specified name. - - The name to expect. - - - - Used to define the scope in which instances activated via a binding should be re-used. - - The service being bound. - - - - Indicates that only a single instance of the binding should be created, and then - should be re-used for all subsequent requests. - - - - - Indicates that instances activated via the binding should not be re-used, nor have - their lifecycle managed by Ninject. - - - - - Indicates that instances activated via the binding should be re-used within the same thread. - - - - - Indicates that instances activated via the binding should be re-used as long as the object - returned by the provided callback remains alive (that is, has not been garbage collected). - - The callback that returns the scope. - - - - Used to define the name of a binding. - - The service being bound. - - - - Indicates that the binding should be registered with the specified name. Names are not - necessarily unique; multiple bindings for a given service may be registered with the same name. - - The name to give the binding. - - - - Used to add additional information to a binding. - - The service being bound. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Adds a custom parameter to the binding. - - The parameter. - - - - Sets the value of a piece of metadata on the binding. - - The metadata key. - The metadata value. - - - - Used to add additional actions to be performed during activation or deactivation of instances via a binding. - - The service being bound. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Used to set the scope, name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to set the name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to add additional information or actions to a binding. - - The service being bound. - - - - Initializes a new instance of the BindingBuilder<T> class. - - The binding to build. - The kernel. - - - - Indicates that the service should be self-bound. - - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to the specified provider. - - The provider. - - - - Indicates that the service should be bound to the specified callback method. - - The method. - - - - Indicates that the service should be bound to the specified constant value. - - The constant value. - - - - Indicates that the binding should be used only for requests that support the specified condition. - - The condition. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the service is being requested - by a service bound with the specified name. - - The name to expect. - - - - Indicates that the binding should be registered with the specified name. Names are not - necessarily unique; multiple bindings for a given service may be registered with the same name. - - The name to give the binding. - - - - Indicates that only a single instance of the binding should be created, and then - should be re-used for all subsequent requests. - - - - - Indicates that instances activated via the binding should not be re-used, nor have - their lifecycle managed by Ninject. - - - - - Indicates that instances activated via the binding should be re-used within the same thread. - - - - - Indicates that instances activated via the binding should be re-used as long as the object - returned by the provided callback remains alive (that is, has not been garbage collected). - - The callback that returns the scope. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Adds a custom parameter to the binding. - - The parameter. - - - - Sets the value of a piece of metadata on the binding. - - The metadata key. - The metadata value. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Gets the binding being built. - - - - - Gets the kernel. - - - - - Additional information available about a binding, which can be used in constraints - to select bindings to use in activation. - - - - - Additional information available about a binding, which can be used in constraints - to select bindings to use in activation. - - - - - Determines whether a piece of metadata with the specified key has been defined. - - The metadata key. - True if such a piece of metadata exists; otherwise, false. - - - - Gets the value of metadata defined with the specified key, cast to the specified type. - - The type of value to expect. - The metadata key. - The metadata value. - - - - Gets the value of metadata defined with the specified key. - - The metadata key. - The value to return if the binding has no metadata set with the specified key. - The metadata value, or the default value if none was set. - - - - Sets the value of a piece of metadata. - - The metadata key. - The metadata value. - - - - Gets or sets the binding's name. - - - - - Determines whether a piece of metadata with the specified key has been defined. - - The metadata key. - True if such a piece of metadata exists; otherwise, false. - - - - Gets the value of metadata defined with the specified key, cast to the specified type. - - The type of value to expect. - The metadata key. - The metadata value. - - - - Gets the value of metadata defined with the specified key. - - The metadata key. - The value to return if the binding has no metadata set with the specified key. - The metadata value, or the default value if none was set. - - - - Sets the value of a piece of metadata. - - The metadata key. - The metadata value. - - - - Gets or sets the binding's name. - - - - - Describes the target of a binding. - - - - - Indicates that the binding is from a type to itself. - - - - - Indicates that the binding is from one type to another. - - - - - Indicates that the binding is from a type to a provider. - - - - - Indicates that the binding is from a type to a callback method. - - - - - Indicates that the binding is from a type to a constant value. - - - - - Describes the injection of a constructor. - - - - - Describes the injection of a method or constructor. - - - - - A piece of information used in an . (Just a marker.) - - - - - Initializes a new instance of the MethodInjectionDirectiveBase<TMethod, TInjector> class. - - The method this directive represents. - The injector that will be triggered. - - - - Creates targets for the parameters of the method. - - The method. - The targets for the method's parameters. - - - - Gets or sets the injector that will be triggered. - - - - - Gets or sets the targets for the directive. - - - - - Initializes a new instance of the class. - - The constructor described by the directive. - The injector that will be triggered. - - - - The base .ctor definition. - - - - - Describes the injection of a method. - - - - - Initializes a new instance of the class. - - The method described by the directive. - The injector that will be triggered. - - - - Describes the injection of a property. - - - - - Initializes a new instance of the class. - - The member the directive describes. - The injector that will be triggered. - - - - Creates a target for the property. - - The property. - The target for the property. - - - - Gets or sets the injector that will be triggered. - - - - - Gets or sets the injection target for the directive. - - - - - Adds a directive to plans indicating which constructor should be injected during activation. - - - - - Contributes to the generation of a . - - - - - Contributes to the specified plan. - - The plan that is being generated. - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for the constructor - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Adds directives to plans indicating which methods should be injected during activation. - - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for each method - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Adds directives to plans indicating which properties should be injected during activation. - - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for each property - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Represents a site on a type where a value will be injected. - - - - - Resolves a value for the target within the specified parent context. - - The parent context. - The resolved value. - - - - Gets the type of the target. - - - - - Gets the name of the target. - - - - - Gets the member that contains the target. - - - - - Gets the constraint defined on the target. - - - - - Gets a value indicating whether the target represents an optional dependency. - - - - - Represents an injection target for a . - - - - - Represents a site on a type where a value can be injected. - - The type of site this represents. - - - - Initializes a new instance of the Target<T> class. - - The member that contains the target. - The site represented by the target. - - - - Returns an array of custom attributes of a specified type defined on the target. - - The type of attribute to search for. - Whether to look up the hierarchy chain for inherited custom attributes. - An array of custom attributes of the specified type. - - - - Returns an array of custom attributes defined on the target. - - Whether to look up the hierarchy chain for inherited custom attributes. - An array of custom attributes. - - - - Returns a value indicating whether an attribute of the specified type is defined on the target. - - The type of attribute to search for. - Whether to look up the hierarchy chain for inherited custom attributes. - True if such an attribute is defined; otherwise false. - - - - Resolves a value for the target within the specified parent context. - - The parent context. - The resolved value. - - - - Gets the value(s) that should be injected into the target. - - The service that the target is requesting. - The parent context in which the target is being injected. - A series of values that are available for injection. - - - - Gets the value that should be injected into the target. - - The service that the target is requesting. - The parent context in which the target is being injected. - The value that is to be injected. - - - - Reads whether the target represents an optional dependency. - - if it is optional; otherwise . - - - - Reads the resolution constraint from target. - - The resolution constraint. - - - - Gets the member that contains the target. - - - - - Gets or sets the site (property, parameter, etc.) represented by the target. - - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Gets the constraint defined on the target. - - - - - Gets a value indicating whether the target represents an optional dependency. - - - - - Initializes a new instance of the class. - - The method that defines the parameter. - The parameter that this target represents. - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Represents an injection target for a . - - - - - Initializes a new instance of the class. - - The property that this target represents. - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Describes the means by which a type should be activated. - - - - - Adds the specified directive to the plan. - - The directive. - - - - Determines whether the plan contains one or more directives of the specified type. - - The type of directive. - True if the plan has one or more directives of the type; otherwise, false. - - - - Gets the first directive of the specified type from the plan. - - The type of directive. - The first directive, or if no matching directives exist. - - - - Gets all directives of the specified type that exist in the plan. - - The type of directive. - A series of directives of the specified type. - - - - Gets the type that the plan describes. - - - - - Generates plans for how to activate instances. - - - - - Gets or creates an activation plan for the specified type. - - The type for which a plan should be created. - The type's activation plan. - - - - Gets the strategies that contribute to the planning process. - - - - - Describes the means by which a type should be activated. - - - - - Initializes a new instance of the class. - - The type the plan describes. - - - - Adds the specified directive to the plan. - - The directive. - - - - Determines whether the plan contains one or more directives of the specified type. - - The type of directive. - True if the plan has one or more directives of the type; otherwise, false. - - - - Gets the first directive of the specified type from the plan. - - The type of directive. - The first directive, or if no matching directives exist. - - - - Gets all directives of the specified type that exist in the plan. - - The type of directive. - A series of directives of the specified type. - - - - Gets the type that the plan describes. - - - - - Gets the directives defined in the plan. - - - - - Generates plans for how to activate instances. - - - - - Initializes a new instance of the class. - - The strategies to execute during planning. - - - - Gets or creates an activation plan for the specified type. - - The type for which a plan should be created. - The type's activation plan. - - - - Creates an empty plan for the specified type. - - The type for which a plan should be created. - The created plan. - - - - Gets the strategies that contribute to the planning process. - - - - - Generates scores for constructors, to determine which is the best one to call during activation. - - - - - Gets the score for the specified constructor. - - The injection context. - The constructor. - The constructor's score. - - - - Determines whether members should be injected during activation. - - - - - Returns a value indicating whether the specified member should be injected. - - The member in question. - True if the member should be injected; otherwise false. - - - - Scores constructors by either looking for the existence of an injection marker - attribute, or by counting the number of parameters. - - - - - Gets the score for the specified constructor. - - The injection context. - The constructor. - The constructor's score. - - - - Determines whether members should be injected during activation by checking - if they are decorated with an injection marker attribute. - - - - - Returns a value indicating whether the specified member should be injected. - - The member in question. - True if the member should be injected; otherwise false. - - - - Selects members for injection. - - - - - Selects the constructor to call on the specified type, by using the constructor scorer. - - The type. - The selected constructor, or if none were available. - - - - Selects properties that should be injected. - - The type. - A series of the selected properties. - - - - Selects methods that should be injected. - - The type. - A series of the selected methods. - - - - Gets or sets the constructor scorer. - - - - - Gets the heuristics used to determine which members should be injected. - - - - - Selects members for injection. - - - - - Initializes a new instance of the class. - - The constructor scorer. - The injection heuristics. - - - - Selects the constructor to call on the specified type, by using the constructor scorer. - - The type. - The selected constructor, or if none were available. - - - - Selects properties that should be injected. - - The type. - A series of the selected properties. - - - - Selects methods that should be injected. - - The type. - A series of the selected methods. - - - - Gets or sets the constructor scorer. - - - - - Gets the property injection heuristics. - - - - - Extension methods that enhance module loading. - - - - - Creates a new instance of the module and loads it into the kernel. - - The type of the module. - The kernel. - - - - Loads the module(s) into the kernel. - - The kernel. - The modules to load. - - - - Loads modules from the files that match the specified pattern(s). - - The kernel. - The file patterns (i.e. "*.dll", "modules/*.rb") to match. - - - - Loads modules defined in the specified assemblies. - - The kernel. - The assemblies to search. - - - - Extensions that enhance resolution of services. - - - - - Gets an instance of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding that matches the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service. - - - - Tries to get an instance of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding that matches the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Gets all available instances of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service using bindings registered with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service by using the bindings that match the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the bindings. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets an instance of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding that matches the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service. - - - - Tries to get an instance of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding that matches the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Gets all available instances of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service using bindings registered with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service by using the bindings that match the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the bindings. - The parameters to pass to the request. - A series of instances of the service. - - - - Indicates that an error occured during activation of an instance. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The exception message. - - - - Initializes a new instance of the class. - - The exception message. - The inner exception. - - - - Initializes a new instance of the class. - - The serialized object data. - The serialization context. - - - - A service that requires initialization after it is activated. - - - - - Initializes the instance. Called during activation. - - - - - A super-factory that can create objects of all kinds, following hints provided by s. - - - - - Gets the modules that have been loaded into the kernel. - - A series of loaded modules. - - - - Determines whether a module with the specified name has been loaded in the kernel. - - The name of the module. - True if the specified module has been loaded; otherwise, false. - - - - Loads the module(s) into the kernel. - - The modules to load. - - - - Loads modules from the files that match the specified pattern(s). - - The file patterns (i.e. "*.dll", "modules/*.rb") to match. - - - - Loads modules defined in the specified assemblies. - - The assemblies to search. - - - - Unloads the plugin with the specified name. - - The plugin's name. - - - - Injects the specified existing instance, without managing its lifecycle. - - The instance to inject. - The parameters to pass to the request. - - - - Deactivates and releases the specified instance if it is currently managed by Ninject. - - The instance to release. - if the instance was found and released; otherwise . - - - - Gets the bindings registered for the specified service. - - The service in question. - A series of bindings that are registered for the service. - - - - Begins a new activation block, which can be used to deterministically dispose resolved instances. - - The new activation block. - - - - Gets the kernel settings. - - - - - Gets the component container, which holds components that contribute to Ninject. - - - - - Contains configuration options for Ninject. - - - - - Gets the value for the specified key. - - The type of value to return. - The setting's key. - The value to return if no setting is available. - The value, or the default value if none was found. - - - - Sets the value for the specified key. - - The setting's key. - The setting's value. - - - - Gets the attribute that indicates that a member should be injected. - - - - - Gets the interval at which the cache should be pruned. - - - - - Gets a value indicating whether the kernel should automatically load extensions at startup. - - - - - Gets the path that should be searched for extensions. - - - - - Gets a value indicating whether Ninject should use reflection-based injection instead of - the (usually faster) lightweight code generation system. - - - - - Gets a value indicating whether Ninject should inject non public members. - - - - - Gets a value indicating whether Ninject should inject private properties of base classes. - - - Activating this setting has an impact on the performance. It is recomended not - to use this feature and use constructor injection instead. - - - - - Gets or sets a value indicating whether the activation cache is disabled. - If the activation cache is disabled less memory is used. But in some cases - instances are activated or deactivated multiple times. e.g. in the following scenario: - Bind{A}().ToSelf(); - Bind{IA}().ToMethod(ctx => kernel.Get{IA}(); - - - true if activation cache is disabled; otherwise, false. - - - - - Gets or sets a value indicating whether Null is a valid value for injection. - By defualt this is disabled and whenever a provider returns null an eception is thrown. - - true if null is allowed as injected value otherwise false. - - - - A service that is started when activated, and stopped when deactivated. - - - - - Starts this instance. Called during activation. - - - - - Stops this instance. Called during deactivation. - - - - - The base implementation of an . - - - - - Lock used when adding missing bindings. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The configuration to use. - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The component container to use. - The configuration to use. - The modules to load into the kernel. - - - - Releases resources held by the object. - - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Determines whether a module with the specified name has been loaded in the kernel. - - The name of the module. - True if the specified module has been loaded; otherwise, false. - - - - Gets the modules that have been loaded into the kernel. - - A series of loaded modules. - - - - Loads the module(s) into the kernel. - - The modules to load. - - - - Loads modules from the files that match the specified pattern(s). - - The file patterns (i.e. "*.dll", "modules/*.rb") to match. - - - - Loads modules defined in the specified assemblies. - - The assemblies to search. - - - - Unloads the plugin with the specified name. - - The plugin's name. - - - - Injects the specified existing instance, without managing its lifecycle. - - The instance to inject. - The parameters to pass to the request. - - - - Deactivates and releases the specified instance if it is currently managed by Ninject. - - The instance to release. - if the instance was found and released; otherwise . - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - Begins a new activation block, which can be used to deterministically dispose resolved instances. - - The new activation block. - - - - Gets the bindings registered for the specified service. - - The service in question. - A series of bindings that are registered for the service. - - - - Returns an IComparer that is used to determine resolution precedence. - - An IComparer that is used to determine resolution precedence. - - - - Returns a predicate that can determine if a given IBinding matches the request. - - The request/ - A predicate that can determine if a given IBinding matches the request. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Adds components to the kernel during startup. - - - - - Attempts to handle a missing binding for a service. - - The service. - True if the missing binding can be handled; otherwise false. - - - - Attempts to handle a missing binding for a request. - - The request. - True if the missing binding can be handled; otherwise false. - - - - Returns a value indicating whether the specified service is self-bindable. - - The service. - if the type is self-bindable; otherwise . - - - - Creates a context for the specified request and binding. - - The request. - The binding. - The created context. - - - - Gets the kernel settings. - - - - - Gets the component container, which holds components that contribute to Ninject. - - - - - Contains configuration options for Ninject. - - - - - Gets the value for the specified key. - - The type of value to return. - The setting's key. - The value to return if no setting is available. - The value, or the default value if none was found. - - - - Sets the value for the specified key. - - The setting's key. - The setting's value. - - - - Gets or sets the attribute that indicates that a member should be injected. - - - - - Gets or sets the interval at which the GC should be polled. - - - - - Gets or sets a value indicating whether the kernel should automatically load extensions at startup. - - - - - Gets or sets the path that should be searched for extensions. - - - - - Gets a value indicating whether Ninject should use reflection-based injection instead of - the (usually faster) lightweight code generation system. - - - - - Gets a value indicating whether Ninject should inject non public members. - - - - - Gets a value indicating whether Ninject should inject private properties of base classes. - - - Activating this setting has an impact on the performance. It is recomended not - to use this feature and use constructor injection instead. - - - - - Gets or sets a value indicating whether the activation cache is disabled. - If the activation cache is disabled less memory is used. But in some cases - instances are activated or deactivated multiple times. e.g. in the following scenario: - Bind{A}().ToSelf(); - Bind{IA}().ToMethod(ctx => kernel.Get{IA}(); - - - true if activation cache is disabled; otherwise, false. - - - - - Gets or sets a value indicating whether Null is a valid value for injection. - By defualt this is disabled and whenever a provider returns null an eception is thrown. - - - true if null is allowed as injected value otherwise false. - - - - - The standard implementation of a kernel. - - - - - Initializes a new instance of the class. - - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The configuration to use. - The modules to load into the kernel. - - - - Adds components to the kernel during startup. - - - - diff --git a/packages/Ninject.2.2.1.4/lib/net40-Full/Ninject.dll b/packages/Ninject.2.2.1.4/lib/net40-Full/Ninject.dll deleted file mode 100644 index 147bac0..0000000 Binary files a/packages/Ninject.2.2.1.4/lib/net40-Full/Ninject.dll and /dev/null differ diff --git a/packages/Ninject.2.2.1.4/lib/net40-Full/Ninject.pdb b/packages/Ninject.2.2.1.4/lib/net40-Full/Ninject.pdb deleted file mode 100644 index 688f7f4..0000000 Binary files a/packages/Ninject.2.2.1.4/lib/net40-Full/Ninject.pdb and /dev/null differ diff --git a/packages/Ninject.2.2.1.4/lib/net40-Full/Ninject.xml b/packages/Ninject.2.2.1.4/lib/net40-Full/Ninject.xml deleted file mode 100644 index 338b1a5..0000000 --- a/packages/Ninject.2.2.1.4/lib/net40-Full/Ninject.xml +++ /dev/null @@ -1,4686 +0,0 @@ - - - - Ninject - - - - - A block used for deterministic disposal of activated instances. When the block is - disposed, all instances activated via it will be deactivated. - - - - - An object that notifies when it is disposed. - - - - - An object that can report whether or not it is disposed. - - - - - Gets a value indicating whether this instance is disposed. - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Releases resources held by the object. - - - - - Releases resources before the object is reclaimed by garbage collection. - - - - - Gets a value indicating whether this instance is disposed. - - - - - A block used for deterministic disposal of activated instances. When the block is - disposed, all instances activated via it will be deactivated. - - - - - Provides a path to resolve instances. - - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - An object that fires an event when it is disposed. - - - - - Occurs when the object is disposed. - - - - - Initializes a new instance of the class. - - The parent resolution root. - - - - Releases resources held by the object. - - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - Gets or sets the parent resolution root (usually the kernel). - - - - - Occurs when the object is disposed. - - - - - Stores the objects that were activated - - - - - A component that contributes to the internals of Ninject. - - - - - A component that contributes to the internals of Ninject. - - - - - Gets or sets the settings. - - - - - Gets or sets the settings. - - - - - Stores the objects that were activated - - - - - Clears the cache. - - - - - Adds an activated instance. - - The instance to be added. - - - - Adds an deactivated instance. - - The instance to be added. - - - - Determines whether the specified instance is activated. - - The instance. - - true if the specified instance is activated; otherwise, false. - - - - - Determines whether the specified instance is deactivated. - - The instance. - - true if the specified instance is deactivated; otherwise, false. - - - - - An object that is prunealble. - - - - - Removes instances from the cache which should no longer be re-used. - - - - - The objects that were activated as reference equal weak references. - - - - - The objects that were activated as reference equal weak references. - - - - - Initializes a new instance of the class. - - The cache pruner. - - - - Clears the cache. - - - - - Adds an activated instance. - - The instance to be added. - - - - Adds an deactivated instance. - - The instance to be added. - - - - Determines whether the specified instance is activated. - - The instance. - - true if the specified instance is activated; otherwise, false. - - - - - Determines whether the specified instance is deactivated. - - The instance. - - true if the specified instance is deactivated; otherwise, false. - - - - - Prunes this instance. - - - - - Removes all dead objects. - - The objects collection to be freed of dead objects. - - - - Gets the activated object count. - - The activated object count. - - - - Gets the deactivated object count. - - The deactivated object count. - - - - Tracks instances for re-use in certain scopes. - - - - - Tracks instances for re-use in certain scopes. - - - - - Stores the specified instance in the cache. - - The context to store. - The instance reference. - - - - Tries to retrieve an instance to re-use in the specified context. - - The context that is being activated. - The instance for re-use, or if none has been stored. - - - - Deactivates and releases the specified instance from the cache. - - The instance to release. - if the instance was found and released; otherwise . - - - - Immediately deactivates and removes all instances in the cache that are owned by - the specified scope. - - The scope whose instances should be deactivated. - - - - Immediately deactivates and removes all instances in the cache, regardless of scope. - - - - - Gets the number of entries currently stored in the cache. - - - - - Contains all cached instances. - This is a dictionary of scopes to a multimap for bindings to cache entries. - - - - - Initializes a new instance of the class. - - The pipeline component. - The cache pruner component. - - - - Releases resources held by the object. - - - - - - Stores the specified context in the cache. - - The context to store. - The instance reference. - - - - Tries to retrieve an instance to re-use in the specified context. - - The context that is being activated. - The instance for re-use, or if none has been stored. - - - - Deactivates and releases the specified instance from the cache. - - The instance to release. - if the instance was found and released; otherwise . - - - - Removes instances from the cache which should no longer be re-used. - - - - - Immediately deactivates and removes all instances in the cache that are owned by - the specified scope. - - The scope whose instances should be deactivated. - - - - Immediately deactivates and removes all instances in the cache, regardless of scope. - - - - - Gets all entries for a binding withing the selected scope. - - The bindings. - All bindings of a binding. - - - - Gets all cache entries. - - Returns all cache entries. - - - - Forgets the specified cache entries. - - The cache entries. - - - - Forgets the specified entry. - - The entry. - - - - Gets the pipeline component. - - - - - Gets the number of entries currently stored in the cache. - - - - - An entry in the cache. - - - - - Initializes a new instance of the class. - - The context. - The instance reference. - - - - Gets the context of the instance. - - The context. - - - - Gets the instance reference. - - The instance reference. - - - - Uses a and some magic to poll - the garbage collector to see if it has run. - - - - - Prunes instances from an based on environmental information. - - - - - Starts pruning the specified cache based on the rules of the pruner. - - The cache that will be pruned. - - - - Stops pruning. - - - - - The caches that are being pruned. - - - - - Releases resources held by the object. - - - - - Starts pruning the specified pruneable based on the rules of the pruner. - - The pruneable that will be pruned. - - - - Stops pruning. - - - - - A provider that delegates to a callback method to create instances. - - The type of instances the provider creates. - - - - A simple abstract provider for instances of a specific type. - - The type of instances the provider creates. - - - - Creates instances of services. - - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Initializes a new instance of the CallbackProvider<T> class. - - The callback method that will be called to create instances. - - - - Invokes the callback method to create an instance. - - The context. - The created instance. - - - - Gets the callback method used by the provider. - - - - - A provider that always returns the same constant value. - - The type of value that is returned. - - - - Initializes a new instance of the ConstantProvider<T> class. - - The value that the provider should return. - - - - Creates an instance within the specified context. - - The context. - The constant value this provider returns. - - - - Gets the value that the provider will return. - - - - - The standard provider for types, which activates instances via a . - - - - - Initializes a new instance of the class. - - The type (or prototype) of instances the provider creates. - The planner component. - The selector component. - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the value to inject into the specified target. - - The context. - The target. - The value to inject into the specified target. - - - - Gets the implementation type that the provider will activate an instance of - for the specified service. - - The service in question. - The implementation type that will be activated. - - - - Gets a callback that creates an instance of the - for the specified type. - - The prototype the provider instance will create. - The created callback. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Gets or sets the planner component. - - - - - Gets or sets the selector component. - - - - - Adds all activated instances to the activation cache. - - - - - Contributes to a , and is called during the activation - and deactivation of an instance. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - The activation cache. - - - - - Initializes a new instance of the class. - - The activation cache. - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - Gets or sets the settings. - - The ninject settings. - - - - Contributes to a , and is called during the activation - and deactivation of an instance. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - Executes actions defined on the binding during activation and deactivation. - - - - - Calls the activation actions defined on the binding. - - The context. - A reference to the instance being activated. - - - - Calls the deactivation actions defined on the binding. - - The context. - A reference to the instance being deactivated. - - - - During deactivation, disposes instances that implement . - - - - - Disposes the specified instance. - - The context. - A reference to the instance being deactivated. - - - - During activation, initializes instances that implement . - - - - - Initializes the specified instance. - - The context. - A reference to the instance being activated. - - - - Injects methods on an instance during activation. - - - - - Injects values into the properties as described by s - contained in the plan. - - The context. - A reference to the instance being activated. - - - - Injects properties on an instance during activation. - - - - - Initializes a new instance of the class. - - The injector factory component. - - - - Injects values into the properties as described by s - contained in the plan. - - The context. - A reference to the instance being activated. - - - - Applies user supplied override values to instance properties. - - The context. - A reference to the instance being activated. - The parameter ovverride value accessors. - - - - Gets the value to inject into the specified target. - - The context. - The target. - The value to inject into the specified target. - - - - Gets the injector factory component. - - - - - Starts instances that implement during activation, - and stops them during deactivation. - - - - - Starts the specified instance. - - The context. - A reference to the instance being activated. - - - - Stops the specified instance. - - The context. - A reference to the instance being deactivated. - - - - Contains information about the activation of a single instance. - - - - - Contains information about the activation of a single instance. - - - - - Gets the provider that should be used to create the instance for this context. - - The provider that should be used. - - - - Gets the scope for the context that "owns" the instance activated therein. - - The object that acts as the scope. - - - - Resolves this instance for this context. - - The resolved instance. - - - - Gets the kernel that is driving the activation. - - - - - Gets the request. - - - - - Gets the binding. - - - - - Gets or sets the activation plan. - - - - - Gets the parameters that were passed to manipulate the activation process. - - - - - Gets the generic arguments for the request, if any. - - - - - Gets a value indicating whether the request involves inferred generic arguments. - - - - - Initializes a new instance of the class. - - The kernel managing the resolution. - The context's request. - The context's binding. - The cache component. - The planner component. - The pipeline component. - - - - Gets the scope for the context that "owns" the instance activated therein. - - The object that acts as the scope. - - - - Gets the provider that should be used to create the instance for this context. - - The provider that should be used. - - - - Resolves the instance associated with this hook. - - The resolved instance. - - - - Gets the kernel that is driving the activation. - - - - - Gets the request. - - - - - Gets the binding. - - - - - Gets or sets the activation plan. - - - - - Gets the parameters that were passed to manipulate the activation process. - - - - - Gets the generic arguments for the request, if any. - - - - - Gets a value indicating whether the request involves inferred generic arguments. - - - - - Gets or sets the cache component. - - - - - Gets or sets the planner component. - - - - - Gets or sets the pipeline component. - - - - - Holds an instance during activation or after it has been cached. - - - - - Returns a value indicating whether the instance is of the specified type. - - The type in question. - if the instance is of the specified type, otherwise . - - - - Returns the instance as the specified type. - - The requested type. - The instance. - - - - Executes the specified action if the instance if of the specified type. - - The type in question. - The action to execute. - - - - Gets or sets the instance. - - - - - Drives the activation (injection, etc.) of an instance. - - - - - Activates the instance in the specified context. - - The context. - The instance reference. - - - - Deactivates the instance in the specified context. - - The context. - The instance reference. - - - - Gets the strategies that contribute to the activation and deactivation processes. - - - - - Describes the request for a service resolution. - - - - - Determines whether the specified binding satisfies the constraint defined on this request. - - The binding. - True if the binding satisfies the constraint; otherwise false. - - - - Gets the scope if one was specified in the request. - - The object that acts as the scope. - - - - Creates a child request. - - The service that is being requested. - The context in which the request was made. - The target that will receive the injection. - The child request. - - - - Gets the service that was requested. - - - - - Gets the parent request. - - - - - Gets the parent context. - - - - - Gets the target that will receive the injection, if any. - - - - - Gets the constraint that will be applied to filter the bindings used for the request. - - - - - Gets the parameters that affect the resolution. - - - - - Gets the stack of bindings which have been activated by either this request or its ancestors. - - - - - Gets the recursive depth at which this request occurs. - - - - - Gets or sets value indicating whether the request is optional. - - - - - Gets or sets value indicating whether the request should return a unique result. - - - - - Drives the activation (injection, etc.) of an instance. - - - - - The activation cache. - - - - - Initializes a new instance of the class. - - The strategies to execute during activation and deactivation. - The activation cache. - - - - Activates the instance in the specified context. - - The context. - The instance reference. - - - - Deactivates the instance in the specified context. - - The context. - The instance reference. - - - - Gets the strategies that contribute to the activation and deactivation processes. - - - - - Describes the request for a service resolution. - - - - - Initializes a new instance of the class. - - The service that was requested. - The constraint that will be applied to filter the bindings used for the request. - The parameters that affect the resolution. - The scope callback, if an external scope was specified. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - - - - Initializes a new instance of the class. - - The parent context. - The service that was requested. - The target that will receive the injection. - The scope callback, if an external scope was specified. - - - - Determines whether the specified binding satisfies the constraints defined on this request. - - The binding. - True if the binding satisfies the constraints; otherwise false. - - - - Gets the scope if one was specified in the request. - - The object that acts as the scope. - - - - Creates a child request. - - The service that is being requested. - The context in which the request was made. - The target that will receive the injection. - The child request. - - - - Gets the service that was requested. - - - - - Gets the parent request. - - - - - Gets the parent context. - - - - - Gets the target that will receive the injection, if any. - - - - - Gets the constraint that will be applied to filter the bindings used for the request. - - - - - Gets the parameters that affect the resolution. - - - - - Gets the stack of bindings which have been activated by either this request or its ancestors. - - - - - Gets the recursive depth at which this request occurs. - - - - - Gets or sets value indicating whether the request is optional. - - - - - Gets or sets value indicating whether the request is for a single service. - - - - - Gets the callback that resolves the scope for the request, if an external scope was provided. - - - - - Defines a constraint on the decorated member. - - - - - Determines whether the specified binding metadata matches the constraint. - - The metadata in question. - True if the metadata matches; otherwise false. - - - - Indicates that the decorated member should be injected. - - - - - Indicates that the decorated member should only be injected using binding(s) registered - with the specified name. - - - - - Initializes a new instance of the class. - - The name of the binding(s) to use. - - - - Determines whether the specified binding metadata matches the constraint. - - The metadata in question. - True if the metadata matches; otherwise false. - - - - Gets the binding name. - - - - - Indicates that the decorated member represents an optional dependency. - - - - - An internal container that manages and resolves components that contribute to Ninject. - - - - - An internal container that manages and resolves components that contribute to Ninject. - - - - - Registers a component in the container. - - The component type. - The component's implementation type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Removes all registrations for the specified component. - - The component's type. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets or sets the kernel that owns the component container. - - - - - Releases resources held by the object. - - - - - Registers a component in the container. - - The component type. - The component's implementation type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets or sets the kernel that owns the component container. - - - - - Provides meaningful exception messages. - - - - - Generates a message saying that modules without names are not supported. - - The exception message. - - - - Generates a message saying that a module with the same name is already loaded. - - The new module. - The existing module. - The exception message. - - - - Generates a message saying that no module has been loaded with the specified name. - - The module name. - The exception message. - - - - Generates a message saying that the binding could not be uniquely resolved. - - The request. - The exception message. - - - - Generates a message saying that the binding could not be resolved on the specified request. - - The request. - The exception message. - - - - Generates a message saying that the specified context has cyclic dependencies. - - The context. - The exception message. - - - - Generates a message saying that an invalid attribute type is used in the binding condition. - - The binding. - Name of the method. - The type. - The exception message. - - - - Generates a message saying that no constructors are available on the specified context. - - The context. - The exception message. - - - - Generates a message saying that no constructors are available for the given component. - - The component. - The implementation. - The exception message. - - - - Generates a message saying that the specified component is not registered. - - The component. - The exception message. - - - - Generates a message saying that the specified property could not be resolved on the specified request. - - The request. - The property name. - The exception message. - - - - Generates a message saying that the provider on the specified context returned null. - - The context. - The exception message. - - - - Provides extension methods for string formatting - - - - - Formats the activation path into a meaningful string representation. - - The request to be formatted. - The activation path formatted as string. - - - - Formats the given binding into a meaningful string representation. - - The binding to be formatted. - The context. - The binding formatted as string - - - - Formats the specified request into a meaningful string representation. - - The request to be formatted. - The request formatted as string. - - - - Formats the specified target into a meaningful string representation.. - - The target to be formatted. - The target formatted as string. - - - - Formats the specified type into a meaningful string representation.. - - The type to be formatted. - The type formatted as string. - - - - Extensions for MemberInfo - - - - - Determines whether the specified member has attribute. - - The type of the attribute. - The member. - - true if the specified member has attribute; otherwise, false. - - - - - Determines whether the specified member has attribute. - - The member. - The type of the attribute. - - true if the specified member has attribute; otherwise, false. - - - - - Gets the property info from its declared tpe. - - The member info. - The property definition. - The flags. - The property info from the declared type of the property. - - - - Determines whether the specified property info is private. - - The property info. - - true if the specified property info is private; otherwise, false. - - - - - Gets the custom attributes. - This version is able to get custom attributes for properties from base types even if the property is none public. - - The member. - Type of the attribute. - if set to true [inherited]. - - - - - Represents a future value. - - The type of value. - - - - Initializes a new instance of the Future<T> class. - - The callback that will be triggered to read the value. - - - - Gets the value from the future. - - The future. - The future value. - - - - Gets the value, resolving it if necessary. - - - - - Gets the callback that will be called to resolve the value. - - - - - Indicates the object has a reference to a . - - - - - Gets the binding. - - - - - Indicates that the object has a reference to an . - - - - - Gets the kernel. - - - - - A data structure that contains multiple values for a each key. - - The type of key. - The type of value. - - - - Adds the specified value for the specified key. - - The key. - The value. - - - - Removes the specified value for the specified key. - - The key. - The value. - True if such a value existed and was removed; otherwise false. - - - - Removes all values for the specified key. - - The key. - True if any such values existed; otherwise false. - - - - Removes all values. - - - - - Determines whether the multimap contains any values for the specified key. - - The key. - True if the multimap has one or more values for the specified key; otherwise, false. - - - - Determines whether the multimap contains the specified value for the specified key. - - The key. - The value. - True if the multimap contains such a value; otherwise, false. - - - - Returns an enumerator that iterates through a the multimap. - - An object that can be used to iterate through the multimap. - - - - Gets the collection of values stored under the specified key. - - The key. - - - - Gets the collection of keys. - - - - - Gets the collection of collections of values. - - - - - Weak reference that can be used in collections. It is equal to the - object it references and has the same hash code. - - - - - Initializes a new instance of the class. - - The target. - - - - Initializes a new instance of the class. - - The target. - if set to true [track resurrection]. - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - The parameter is null. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Gets a value indicating whether this instance is alive. - - true if this instance is alive; otherwise, false. - - - - Gets or sets the target of this weak reference. - - The targe of this weak reference. - - - - Defines the style of request (single or multi-injection, whether it is optional, etc.) - - - - - Indicates a request for a single instance of a service. - - - - - Indicates a request for multiple instances of a service. - - - - - Indicates that null should be returned (instead of throwing) if the service cannot be resolved. - - - - - Scope callbacks for standard scopes. - - - - - Gets the callback for transient scope. - - - - - Gets the callback for singleton scope. - - - - - Gets the callback for thread scope. - - - - - Gets the callback for request scope. - - - - - A delegate that can inject values into a constructor. - - - - - Creates injectors for members via s. - - - - - Creates injectors from members. - - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - A delegate that can inject values into a method. - - - - - A delegate that can inject values into a property. - - - - - Creates injectors from members via reflective invocation. - - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - Loads modules from compiled assemblies. - - - - - Loads modules at runtime by searching external files. - - - - - Loads modules from the specified files. - - The names of the files to load modules from. - - - - Gets the file extensions that the plugin understands how to load. - - - - - Initializes a new instance of the class. - - The kernel into which modules will be loaded. - - - - Loads modules from the specified files. - - The names of the files to load modules from. - - - - Gets or sets the kernel into which modules will be loaded. - - - - - Gets the file extensions that the plugin understands how to load. - - - - - Finds modules defined in external files. - - - - - Loads any modules found in the files that match the specified patterns. - - The patterns to search. - - - - A pluggable unit that can be loaded into an . - - - - - Called when the module is loaded into a kernel. - - The kernel that is loading the module. - - - - Called when the module is unloaded from a kernel. - - The kernel that is unloading the module. - - - - Gets the module's name. - - - - - Automatically finds and loads modules from assemblies. - - - - - Initializes a new instance of the class. - - The kernel into which modules will be loaded. - - - - Loads any modules found in the files that match the specified patterns. - - The patterns to search. - - - - Gets or sets the kernel into which modules will be loaded. - - - - - A loadable unit that defines bindings for your application. - - - - - Provides a path to register bindings. - - - - - Provides a path to register bindings. - - - - - Declares a binding for the specified service. - - The service to bind. - - - - Declares a binding from the service to itself. - - The service to bind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Declares a binding for the specified service. - - The service to bind. - - - - Declares a binding for the specified service. - - The service to bind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Initializes a new instance of the class. - - - - - Called when the module is loaded into a kernel. - - The kernel that is loading the module. - - - - Called when the module is unloaded from a kernel. - - The kernel that is unloading the module. - - - - Loads the module into the kernel. - - - - - Unloads the module from the kernel. - - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Gets the kernel that the module is loaded into. - - - - - Gets the module's name. Only a single module with a given name can be loaded at one time. - - - - - Gets the bindings that were registered by the module. - - - - - Overrides the injected value of a constructor argument. - - - - - Modifies an activation process in some way. - - - - - Modifies an activation process in some way. - - - - - Gets the value for the parameter within the specified context. - - The context. - The target. - The value for the parameter. - - - - Gets the name of the parameter. - - - - - Gets a value indicating whether the parameter should be inherited into child requests. - - - - - Initializes a new instance of the class. - - The name of the parameter. - The value of the parameter. - Whether the parameter should be inherited into child requests. - - - - Initializes a new instance of the class. - - The name of the parameter. - The callback that will be triggered to get the parameter's value. - Whether the parameter should be inherited into child requests. - - - - Initializes a new instance of the class. - - The name of the parameter. - The callback that will be triggered to get the parameter's value. - Whether the parameter should be inherited into child requests. - - - - Gets the value for the parameter within the specified context. - - The context. - The target. - The value for the parameter. - - - - Determines whether the object equals the specified object. - - An object to compare with this object. - True if the objects are equal; otherwise false - - - - Serves as a hash function for a particular type. - - A hash code for the object. - - - - Indicates whether the current object is equal to another object of the same type. - - An object to compare with this object. - True if the objects are equal; otherwise false - - - - Gets the name of the parameter. - - - - - Gets a value indicating whether the parameter should be inherited into child requests. - - - - - Gets or sets the callback that will be triggered to get the parameter's value. - - - - - Initializes a new instance of the class. - - The name of the argument to override. - The value to inject into the property. - - - - Initializes a new instance of the class. - - The name of the argument to override. - The callback to invoke to get the value that should be injected. - - - - Initializes a new instance of the class. - - The name of the argument to override. - The callback to invoke to get the value that should be injected. - - - - Overrides the injected value of a property. - - - - - Initializes a new instance of the class. - - The name of the property to override. - The value to inject into the property. - - - - Initializes a new instance of the class. - - The name of the property to override. - The callback to invoke to get the value that should be injected. - - - - Initializes a new instance of the class. - - The name of the property to override. - The callback to invoke to get the value that should be injected. - - - - Contains logic about which bindings to use for a given service request. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Contains logic about which bindings to use for a given service request - when other attempts have failed. - - - - - Returns any bindings from the specified collection that match the specified request. - - The multimap of all registered bindings. - The request in question. - The series of matching bindings. - - - - Resolves bindings for open generic types. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Returns a value indicating whether the specified service is self-bindable. - - The service. - if the type is self-bindable; otherwise . - - - - Resolves bindings that have been registered directly for the service. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Contains information about a service registration. - - - - - Contains information about a service registration. - - - - - Gets the provider for the binding. - - The context. - The provider to use. - - - - Gets the scope for the binding, if any. - - The context. - The object that will act as the scope, or if the service is transient. - - - - Determines whether the specified request satisfies the condition defined on the binding, - if one was defined. - - The request. - True if the request satisfies the condition; otherwise false. - - - - Gets the service type that is controlled by the binding. - - - - - Gets the binding's metadata. - - - - - Gets or sets the type of target for the binding. - - - - - Gets or sets a value indicating whether the binding was implicitly registered. - - - - - Gets a value indicating whether the binding has a condition associated with it. - - - - - Gets or sets the condition defined for the binding. - - - - - Gets or sets the callback that returns the provider that should be used by the binding. - - - - - Gets or sets the callback that returns the object that will act as the binding's scope. - - - - - Gets the parameters defined for the binding. - - - - - Gets the actions that should be called after instances are activated via the binding. - - - - - Gets the actions that should be called before instances are deactivated via the binding. - - - - - Initializes a new instance of the class. - - The service that is controlled by the binding. - - - - Initializes a new instance of the class. - - The service that is controlled by the binding. - The binding's metadata container. - - - - Gets the provider for the binding. - - The context. - The provider to use. - - - - Gets the scope for the binding, if any. - - The context. - The object that will act as the scope, or if the service is transient. - - - - Determines whether the specified request satisfies the conditions defined on this binding. - - The request. - True if the request satisfies the conditions; otherwise false. - - - - Gets the service type that is controlled by the binding. - - - - - Gets the binding's metadata. - - - - - Gets or sets a value indicating whether the binding was implicitly registered. - - - - - Gets a value indicating whether the binding has a condition associated with it. - - - - - Gets or sets the type of target for the binding. - - - - - Gets or sets the condition defined for the binding. - - - - - Gets or sets the callback that returns the provider that should be used by the binding. - - - - - Gets or sets the callback that returns the object that will act as the binding's scope. - - - - - Gets the parameters defined for the binding. - - - - - Gets the actions that should be called after instances are activated via the binding. - - - - - Gets the actions that should be called before instances are deactivated via the binding. - - - - - Provides a root for the fluent syntax associated with an . - - - - - Used to define the target of a binding. - - The service being bound. - - - - Used to define a basic binding syntax builder. - - - - - A hack to hide methods defined on for IntelliSense - on fluent interfaces. Credit to Daniel Cazzulino. - - - - - - - - - - - - - - - - - Indicates that the service should be self-bound. - - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to the specified provider. - - The provider. - - - - Indicates that the service should be bound to the specified callback method. - - The method. - - - - Indicates that the service should be bound to the specified constant value. - - The constant value. - - - - Used to set the condition, scope, name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to define the conditions under which a binding should be used. - - The service being bound. - - - - Indicates that the binding should be used only for requests that support the specified condition. - - The condition. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the service is being requested - by a service bound with the specified name. - - The name to expect. - - - - Used to define the scope in which instances activated via a binding should be re-used. - - The service being bound. - - - - Indicates that only a single instance of the binding should be created, and then - should be re-used for all subsequent requests. - - - - - Indicates that instances activated via the binding should not be re-used, nor have - their lifecycle managed by Ninject. - - - - - Indicates that instances activated via the binding should be re-used within the same thread. - - - - - Indicates that instances activated via the binding should be re-used within the same - HTTP request. - - - - - Indicates that instances activated via the binding should be re-used as long as the object - returned by the provided callback remains alive (that is, has not been garbage collected). - - The callback that returns the scope. - - - - Used to define the name of a binding. - - The service being bound. - - - - Indicates that the binding should be registered with the specified name. Names are not - necessarily unique; multiple bindings for a given service may be registered with the same name. - - The name to give the binding. - - - - Used to add additional information to a binding. - - The service being bound. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Adds a custom parameter to the binding. - - The parameter. - - - - Sets the value of a piece of metadata on the binding. - - The metadata key. - The metadata value. - - - - Used to add additional actions to be performed during activation or deactivation of instances via a binding. - - The service being bound. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Used to set the scope, name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to set the name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to add additional information or actions to a binding. - - The service being bound. - - - - Initializes a new instance of the BindingBuilder<T> class. - - The binding to build. - The kernel. - - - - Indicates that the service should be self-bound. - - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to the specified provider. - - The provider. - - - - Indicates that the service should be bound to the specified callback method. - - The method. - - - - Indicates that the service should be bound to the specified constant value. - - The constant value. - - - - Indicates that the binding should be used only for requests that support the specified condition. - - The condition. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the service is being requested - by a service bound with the specified name. - - The name to expect. - - - - Indicates that the binding should be registered with the specified name. Names are not - necessarily unique; multiple bindings for a given service may be registered with the same name. - - The name to give the binding. - - - - Indicates that only a single instance of the binding should be created, and then - should be re-used for all subsequent requests. - - - - - Indicates that instances activated via the binding should not be re-used, nor have - their lifecycle managed by Ninject. - - - - - Indicates that instances activated via the binding should be re-used within the same thread. - - - - - Indicates that instances activated via the binding should be re-used within the same - HTTP request. - - - - - Indicates that instances activated via the binding should be re-used as long as the object - returned by the provided callback remains alive (that is, has not been garbage collected). - - The callback that returns the scope. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Adds a custom parameter to the binding. - - The parameter. - - - - Sets the value of a piece of metadata on the binding. - - The metadata key. - The metadata value. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Gets the binding being built. - - - - - Gets the kernel. - - - - - Additional information available about a binding, which can be used in constraints - to select bindings to use in activation. - - - - - Additional information available about a binding, which can be used in constraints - to select bindings to use in activation. - - - - - Determines whether a piece of metadata with the specified key has been defined. - - The metadata key. - True if such a piece of metadata exists; otherwise, false. - - - - Gets the value of metadata defined with the specified key, cast to the specified type. - - The type of value to expect. - The metadata key. - The metadata value. - - - - Gets the value of metadata defined with the specified key. - - The metadata key. - The value to return if the binding has no metadata set with the specified key. - The metadata value, or the default value if none was set. - - - - Sets the value of a piece of metadata. - - The metadata key. - The metadata value. - - - - Gets or sets the binding's name. - - - - - Determines whether a piece of metadata with the specified key has been defined. - - The metadata key. - True if such a piece of metadata exists; otherwise, false. - - - - Gets the value of metadata defined with the specified key, cast to the specified type. - - The type of value to expect. - The metadata key. - The metadata value. - - - - Gets the value of metadata defined with the specified key. - - The metadata key. - The value to return if the binding has no metadata set with the specified key. - The metadata value, or the default value if none was set. - - - - Sets the value of a piece of metadata. - - The metadata key. - The metadata value. - - - - Gets or sets the binding's name. - - - - - Describes the target of a binding. - - - - - Indicates that the binding is from a type to itself. - - - - - Indicates that the binding is from one type to another. - - - - - Indicates that the binding is from a type to a provider. - - - - - Indicates that the binding is from a type to a callback method. - - - - - Indicates that the binding is from a type to a constant value. - - - - - Describes the injection of a constructor. - - - - - Describes the injection of a method or constructor. - - - - - A piece of information used in an . (Just a marker.) - - - - - Initializes a new instance of the MethodInjectionDirectiveBase<TMethod, TInjector> class. - - The method this directive represents. - The injector that will be triggered. - - - - Creates targets for the parameters of the method. - - The method. - The targets for the method's parameters. - - - - Gets or sets the injector that will be triggered. - - - - - Gets or sets the targets for the directive. - - - - - Initializes a new instance of the class. - - The constructor described by the directive. - The injector that will be triggered. - - - - The base .ctor definition. - - - - - Describes the injection of a method. - - - - - Initializes a new instance of the class. - - The method described by the directive. - The injector that will be triggered. - - - - Describes the injection of a property. - - - - - Initializes a new instance of the class. - - The member the directive describes. - The injector that will be triggered. - - - - Creates a target for the property. - - The property. - The target for the property. - - - - Gets or sets the injector that will be triggered. - - - - - Gets or sets the injection target for the directive. - - - - - Adds a directive to plans indicating which constructor should be injected during activation. - - - - - Contributes to the generation of a . - - - - - Contributes to the specified plan. - - The plan that is being generated. - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for the constructor - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Adds directives to plans indicating which methods should be injected during activation. - - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for each method - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Adds directives to plans indicating which properties should be injected during activation. - - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for each property - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Represents a site on a type where a value will be injected. - - - - - Resolves a value for the target within the specified parent context. - - The parent context. - The resolved value. - - - - Gets the type of the target. - - - - - Gets the name of the target. - - - - - Gets the member that contains the target. - - - - - Gets the constraint defined on the target. - - - - - Gets a value indicating whether the target represents an optional dependency. - - - - - Represents an injection target for a . - - - - - Represents a site on a type where a value can be injected. - - The type of site this represents. - - - - Initializes a new instance of the Target<T> class. - - The member that contains the target. - The site represented by the target. - - - - Returns an array of custom attributes of a specified type defined on the target. - - The type of attribute to search for. - Whether to look up the hierarchy chain for inherited custom attributes. - An array of custom attributes of the specified type. - - - - Returns an array of custom attributes defined on the target. - - Whether to look up the hierarchy chain for inherited custom attributes. - An array of custom attributes. - - - - Returns a value indicating whether an attribute of the specified type is defined on the target. - - The type of attribute to search for. - Whether to look up the hierarchy chain for inherited custom attributes. - True if such an attribute is defined; otherwise false. - - - - Resolves a value for the target within the specified parent context. - - The parent context. - The resolved value. - - - - Gets the value(s) that should be injected into the target. - - The service that the target is requesting. - The parent context in which the target is being injected. - A series of values that are available for injection. - - - - Gets the value that should be injected into the target. - - The service that the target is requesting. - The parent context in which the target is being injected. - The value that is to be injected. - - - - Reads whether the target represents an optional dependency. - - if it is optional; otherwise . - - - - Reads the resolution constraint from target. - - The resolution constraint. - - - - Gets the member that contains the target. - - - - - Gets or sets the site (property, parameter, etc.) represented by the target. - - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Gets the constraint defined on the target. - - - - - Gets a value indicating whether the target represents an optional dependency. - - - - - Initializes a new instance of the class. - - The method that defines the parameter. - The parameter that this target represents. - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Represents an injection target for a . - - - - - Initializes a new instance of the class. - - The property that this target represents. - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Describes the means by which a type should be activated. - - - - - Adds the specified directive to the plan. - - The directive. - - - - Determines whether the plan contains one or more directives of the specified type. - - The type of directive. - True if the plan has one or more directives of the type; otherwise, false. - - - - Gets the first directive of the specified type from the plan. - - The type of directive. - The first directive, or if no matching directives exist. - - - - Gets all directives of the specified type that exist in the plan. - - The type of directive. - A series of directives of the specified type. - - - - Gets the type that the plan describes. - - - - - Generates plans for how to activate instances. - - - - - Gets or creates an activation plan for the specified type. - - The type for which a plan should be created. - The type's activation plan. - - - - Gets the strategies that contribute to the planning process. - - - - - Describes the means by which a type should be activated. - - - - - Initializes a new instance of the class. - - The type the plan describes. - - - - Adds the specified directive to the plan. - - The directive. - - - - Determines whether the plan contains one or more directives of the specified type. - - The type of directive. - True if the plan has one or more directives of the type; otherwise, false. - - - - Gets the first directive of the specified type from the plan. - - The type of directive. - The first directive, or if no matching directives exist. - - - - Gets all directives of the specified type that exist in the plan. - - The type of directive. - A series of directives of the specified type. - - - - Gets the type that the plan describes. - - - - - Gets the directives defined in the plan. - - - - - Generates plans for how to activate instances. - - - - - Initializes a new instance of the class. - - The strategies to execute during planning. - - - - Gets or creates an activation plan for the specified type. - - The type for which a plan should be created. - The type's activation plan. - - - - Creates an empty plan for the specified type. - - The type for which a plan should be created. - The created plan. - - - - Gets the strategies that contribute to the planning process. - - - - - Generates scores for constructors, to determine which is the best one to call during activation. - - - - - Gets the score for the specified constructor. - - The injection context. - The constructor. - The constructor's score. - - - - Determines whether members should be injected during activation. - - - - - Returns a value indicating whether the specified member should be injected. - - The member in question. - True if the member should be injected; otherwise false. - - - - Scores constructors by either looking for the existence of an injection marker - attribute, or by counting the number of parameters. - - - - - Gets the score for the specified constructor. - - The injection context. - The constructor. - The constructor's score. - - - - Determines whether members should be injected during activation by checking - if they are decorated with an injection marker attribute. - - - - - Returns a value indicating whether the specified member should be injected. - - The member in question. - True if the member should be injected; otherwise false. - - - - Selects members for injection. - - - - - Selects the constructor to call on the specified type, by using the constructor scorer. - - The type. - The selected constructor, or if none were available. - - - - Selects properties that should be injected. - - The type. - A series of the selected properties. - - - - Selects methods that should be injected. - - The type. - A series of the selected methods. - - - - Gets or sets the constructor scorer. - - - - - Gets the heuristics used to determine which members should be injected. - - - - - Selects members for injection. - - - - - Initializes a new instance of the class. - - The constructor scorer. - The injection heuristics. - - - - Selects the constructor to call on the specified type, by using the constructor scorer. - - The type. - The selected constructor, or if none were available. - - - - Selects properties that should be injected. - - The type. - A series of the selected properties. - - - - Selects methods that should be injected. - - The type. - A series of the selected methods. - - - - Gets or sets the constructor scorer. - - - - - Gets the property injection heuristics. - - - - - Extension methods that enhance module loading. - - - - - Creates a new instance of the module and loads it into the kernel. - - The type of the module. - The kernel. - - - - Loads the module(s) into the kernel. - - The kernel. - The modules to load. - - - - Loads modules from the files that match the specified pattern(s). - - The kernel. - The file patterns (i.e. "*.dll", "modules/*.rb") to match. - - - - Loads modules defined in the specified assemblies. - - The kernel. - The assemblies to search. - - - - Extensions that enhance resolution of services. - - - - - Gets an instance of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding that matches the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service. - - - - Tries to get an instance of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding that matches the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Gets all available instances of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service using bindings registered with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service by using the bindings that match the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the bindings. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets an instance of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding that matches the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service. - - - - Tries to get an instance of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding that matches the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Gets all available instances of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service using bindings registered with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service by using the bindings that match the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the bindings. - The parameters to pass to the request. - A series of instances of the service. - - - - Indicates that an error occured during activation of an instance. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The exception message. - - - - Initializes a new instance of the class. - - The exception message. - The inner exception. - - - - Initializes a new instance of the class. - - The serialized object data. - The serialization context. - - - - A service that requires initialization after it is activated. - - - - - Initializes the instance. Called during activation. - - - - - A super-factory that can create objects of all kinds, following hints provided by s. - - - - - Gets the modules that have been loaded into the kernel. - - A series of loaded modules. - - - - Determines whether a module with the specified name has been loaded in the kernel. - - The name of the module. - True if the specified module has been loaded; otherwise, false. - - - - Loads the module(s) into the kernel. - - The modules to load. - - - - Loads modules from the files that match the specified pattern(s). - - The file patterns (i.e. "*.dll", "modules/*.rb") to match. - - - - Loads modules defined in the specified assemblies. - - The assemblies to search. - - - - Unloads the plugin with the specified name. - - The plugin's name. - - - - Injects the specified existing instance, without managing its lifecycle. - - The instance to inject. - The parameters to pass to the request. - - - - Deactivates and releases the specified instance if it is currently managed by Ninject. - - The instance to release. - if the instance was found and released; otherwise . - - - - Gets the bindings registered for the specified service. - - The service in question. - A series of bindings that are registered for the service. - - - - Begins a new activation block, which can be used to deterministically dispose resolved instances. - - The new activation block. - - - - Gets the kernel settings. - - - - - Gets the component container, which holds components that contribute to Ninject. - - - - - Contains configuration options for Ninject. - - - - - Gets the value for the specified key. - - The type of value to return. - The setting's key. - The value to return if no setting is available. - The value, or the default value if none was found. - - - - Sets the value for the specified key. - - The setting's key. - The setting's value. - - - - Gets the attribute that indicates that a member should be injected. - - - - - Gets the interval at which the cache should be pruned. - - - - - Gets a value indicating whether the kernel should automatically load extensions at startup. - - - - - Gets the path that should be searched for extensions. - - - - - Gets a value indicating whether Ninject should use reflection-based injection instead of - the (usually faster) lightweight code generation system. - - - - - Gets a value indicating whether Ninject should inject non public members. - - - - - Gets a value indicating whether Ninject should inject private properties of base classes. - - - Activating this setting has an impact on the performance. It is recomended not - to use this feature and use constructor injection instead. - - - - - Gets or sets a value indicating whether the activation cache is disabled. - If the activation cache is disabled less memory is used. But in some cases - instances are activated or deactivated multiple times. e.g. in the following scenario: - Bind{A}().ToSelf(); - Bind{IA}().ToMethod(ctx => kernel.Get{IA}(); - - - true if activation cache is disabled; otherwise, false. - - - - - Gets or sets a value indicating whether Null is a valid value for injection. - By defualt this is disabled and whenever a provider returns null an eception is thrown. - - true if null is allowed as injected value otherwise false. - - - - A service that is started when activated, and stopped when deactivated. - - - - - Starts this instance. Called during activation. - - - - - Stops this instance. Called during deactivation. - - - - - The base implementation of an . - - - - - Lock used when adding missing bindings. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The configuration to use. - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The component container to use. - The configuration to use. - The modules to load into the kernel. - - - - Releases resources held by the object. - - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Determines whether a module with the specified name has been loaded in the kernel. - - The name of the module. - True if the specified module has been loaded; otherwise, false. - - - - Gets the modules that have been loaded into the kernel. - - A series of loaded modules. - - - - Loads the module(s) into the kernel. - - The modules to load. - - - - Loads modules from the files that match the specified pattern(s). - - The file patterns (i.e. "*.dll", "modules/*.rb") to match. - - - - Loads modules defined in the specified assemblies. - - The assemblies to search. - - - - Unloads the plugin with the specified name. - - The plugin's name. - - - - Injects the specified existing instance, without managing its lifecycle. - - The instance to inject. - The parameters to pass to the request. - - - - Deactivates and releases the specified instance if it is currently managed by Ninject. - - The instance to release. - if the instance was found and released; otherwise . - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - Begins a new activation block, which can be used to deterministically dispose resolved instances. - - The new activation block. - - - - Gets the bindings registered for the specified service. - - The service in question. - A series of bindings that are registered for the service. - - - - Returns an IComparer that is used to determine resolution precedence. - - An IComparer that is used to determine resolution precedence. - - - - Returns a predicate that can determine if a given IBinding matches the request. - - The request/ - A predicate that can determine if a given IBinding matches the request. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Adds components to the kernel during startup. - - - - - Attempts to handle a missing binding for a service. - - The service. - True if the missing binding can be handled; otherwise false. - - - - Attempts to handle a missing binding for a request. - - The request. - True if the missing binding can be handled; otherwise false. - - - - Returns a value indicating whether the specified service is self-bindable. - - The service. - if the type is self-bindable; otherwise . - - - - Creates a context for the specified request and binding. - - The request. - The binding. - The created context. - - - - Gets the kernel settings. - - - - - Gets the component container, which holds components that contribute to Ninject. - - - - - Contains configuration options for Ninject. - - - - - Gets the value for the specified key. - - The type of value to return. - The setting's key. - The value to return if no setting is available. - The value, or the default value if none was found. - - - - Sets the value for the specified key. - - The setting's key. - The setting's value. - - - - Gets or sets the attribute that indicates that a member should be injected. - - - - - Gets or sets the interval at which the GC should be polled. - - - - - Gets or sets a value indicating whether the kernel should automatically load extensions at startup. - - - - - Gets or sets the path that should be searched for extensions. - - - - - Gets a value indicating whether Ninject should use reflection-based injection instead of - the (usually faster) lightweight code generation system. - - - - - Gets a value indicating whether Ninject should inject non public members. - - - - - Gets a value indicating whether Ninject should inject private properties of base classes. - - - Activating this setting has an impact on the performance. It is recomended not - to use this feature and use constructor injection instead. - - - - - Gets or sets a value indicating whether the activation cache is disabled. - If the activation cache is disabled less memory is used. But in some cases - instances are activated or deactivated multiple times. e.g. in the following scenario: - Bind{A}().ToSelf(); - Bind{IA}().ToMethod(ctx => kernel.Get{IA}(); - - - true if activation cache is disabled; otherwise, false. - - - - - Gets or sets a value indicating whether Null is a valid value for injection. - By defualt this is disabled and whenever a provider returns null an eception is thrown. - - - true if null is allowed as injected value otherwise false. - - - - - Provides callbacks to more aggressively collect objects scoped to HTTP requests. - - - - - Initializes the module. - - The whose instances will be managed. - - - - Start managing instances for the specified kernel. - - The kernel. - - - - Stops managing instances for the specified kernel. - - The kernel. - - - - Deactivates instances owned by the current . - - - - - The standard implementation of a kernel. - - - - - Initializes a new instance of the class. - - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The configuration to use. - The modules to load into the kernel. - - - - Adds components to the kernel during startup. - - - - diff --git a/packages/Ninject.2.2.1.4/lib/sl2/Ninject.dll b/packages/Ninject.2.2.1.4/lib/sl2/Ninject.dll deleted file mode 100644 index b976a6e..0000000 Binary files a/packages/Ninject.2.2.1.4/lib/sl2/Ninject.dll and /dev/null differ diff --git a/packages/Ninject.2.2.1.4/lib/sl2/Ninject.pdb b/packages/Ninject.2.2.1.4/lib/sl2/Ninject.pdb deleted file mode 100644 index 7be7cfc..0000000 Binary files a/packages/Ninject.2.2.1.4/lib/sl2/Ninject.pdb and /dev/null differ diff --git a/packages/Ninject.2.2.1.4/lib/sl2/Ninject.xml b/packages/Ninject.2.2.1.4/lib/sl2/Ninject.xml deleted file mode 100644 index 72c0882..0000000 --- a/packages/Ninject.2.2.1.4/lib/sl2/Ninject.xml +++ /dev/null @@ -1,4477 +0,0 @@ - - - - Ninject - - - - - A block used for deterministic disposal of activated instances. When the block is - disposed, all instances activated via it will be deactivated. - - - - - An object that notifies when it is disposed. - - - - - An object that can report whether or not it is disposed. - - - - - Gets a value indicating whether this instance is disposed. - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Releases resources held by the object. - - - - - Releases resources before the object is reclaimed by garbage collection. - - - - - Gets a value indicating whether this instance is disposed. - - - - - A block used for deterministic disposal of activated instances. When the block is - disposed, all instances activated via it will be deactivated. - - - - - Provides a path to resolve instances. - - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - An object that fires an event when it is disposed. - - - - - Occurs when the object is disposed. - - - - - Initializes a new instance of the class. - - The parent resolution root. - - - - Releases resources held by the object. - - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - Gets or sets the parent resolution root (usually the kernel). - - - - - Occurs when the object is disposed. - - - - - Stores the objects that were activated - - - - - A component that contributes to the internals of Ninject. - - - - - A component that contributes to the internals of Ninject. - - - - - Gets or sets the settings. - - - - - Gets or sets the settings. - - - - - Stores the objects that were activated - - - - - Clears the cache. - - - - - Adds an activated instance. - - The instance to be added. - - - - Adds an deactivated instance. - - The instance to be added. - - - - Determines whether the specified instance is activated. - - The instance. - - true if the specified instance is activated; otherwise, false. - - - - - Determines whether the specified instance is deactivated. - - The instance. - - true if the specified instance is deactivated; otherwise, false. - - - - - An object that is prunealble. - - - - - Removes instances from the cache which should no longer be re-used. - - - - - The objects that were activated as reference equal weak references. - - - - - The objects that were activated as reference equal weak references. - - - - - Initializes a new instance of the class. - - The cache pruner. - - - - Clears the cache. - - - - - Adds an activated instance. - - The instance to be added. - - - - Adds an deactivated instance. - - The instance to be added. - - - - Determines whether the specified instance is activated. - - The instance. - - true if the specified instance is activated; otherwise, false. - - - - - Determines whether the specified instance is deactivated. - - The instance. - - true if the specified instance is deactivated; otherwise, false. - - - - - Prunes this instance. - - - - - Removes all dead objects. - - The objects collection to be freed of dead objects. - - - - Gets the activated object count. - - The activated object count. - - - - Gets the deactivated object count. - - The deactivated object count. - - - - Tracks instances for re-use in certain scopes. - - - - - Tracks instances for re-use in certain scopes. - - - - - Stores the specified instance in the cache. - - The context to store. - The instance reference. - - - - Tries to retrieve an instance to re-use in the specified context. - - The context that is being activated. - The instance for re-use, or if none has been stored. - - - - Deactivates and releases the specified instance from the cache. - - The instance to release. - if the instance was found and released; otherwise . - - - - Immediately deactivates and removes all instances in the cache that are owned by - the specified scope. - - The scope whose instances should be deactivated. - - - - Immediately deactivates and removes all instances in the cache, regardless of scope. - - - - - Gets the number of entries currently stored in the cache. - - - - - Contains all cached instances. - This is a dictionary of scopes to a multimap for bindings to cache entries. - - - - - Initializes a new instance of the class. - - The pipeline component. - The cache pruner component. - - - - Releases resources held by the object. - - - - - - Stores the specified context in the cache. - - The context to store. - The instance reference. - - - - Tries to retrieve an instance to re-use in the specified context. - - The context that is being activated. - The instance for re-use, or if none has been stored. - - - - Deactivates and releases the specified instance from the cache. - - The instance to release. - if the instance was found and released; otherwise . - - - - Removes instances from the cache which should no longer be re-used. - - - - - Immediately deactivates and removes all instances in the cache that are owned by - the specified scope. - - The scope whose instances should be deactivated. - - - - Immediately deactivates and removes all instances in the cache, regardless of scope. - - - - - Gets all entries for a binding withing the selected scope. - - The bindings. - All bindings of a binding. - - - - Gets all cache entries. - - Returns all cache entries. - - - - Forgets the specified cache entries. - - The cache entries. - - - - Forgets the specified entry. - - The entry. - - - - Gets the pipeline component. - - - - - Gets the number of entries currently stored in the cache. - - - - - An entry in the cache. - - - - - Initializes a new instance of the class. - - The context. - The instance reference. - - - - Gets the context of the instance. - - The context. - - - - Gets the instance reference. - - The instance reference. - - - - Uses a and some magic to poll - the garbage collector to see if it has run. - - - - - Prunes instances from an based on environmental information. - - - - - Starts pruning the specified cache based on the rules of the pruner. - - The cache that will be pruned. - - - - Stops pruning. - - - - - The caches that are being pruned. - - - - - Releases resources held by the object. - - - - - Starts pruning the specified pruneable based on the rules of the pruner. - - The pruneable that will be pruned. - - - - Stops pruning. - - - - - A provider that delegates to a callback method to create instances. - - The type of instances the provider creates. - - - - A simple abstract provider for instances of a specific type. - - The type of instances the provider creates. - - - - Creates instances of services. - - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Initializes a new instance of the CallbackProvider<T> class. - - The callback method that will be called to create instances. - - - - Invokes the callback method to create an instance. - - The context. - The created instance. - - - - Gets the callback method used by the provider. - - - - - A provider that always returns the same constant value. - - The type of value that is returned. - - - - Initializes a new instance of the ConstantProvider<T> class. - - The value that the provider should return. - - - - Creates an instance within the specified context. - - The context. - The constant value this provider returns. - - - - Gets the value that the provider will return. - - - - - The standard provider for types, which activates instances via a . - - - - - Initializes a new instance of the class. - - The type (or prototype) of instances the provider creates. - The planner component. - The selector component. - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the value to inject into the specified target. - - The context. - The target. - The value to inject into the specified target. - - - - Gets the implementation type that the provider will activate an instance of - for the specified service. - - The service in question. - The implementation type that will be activated. - - - - Gets a callback that creates an instance of the - for the specified type. - - The prototype the provider instance will create. - The created callback. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Gets or sets the planner component. - - - - - Gets or sets the selector component. - - - - - Adds all activated instances to the activation cache. - - - - - Contributes to a , and is called during the activation - and deactivation of an instance. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - The activation cache. - - - - - Initializes a new instance of the class. - - The activation cache. - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - Gets or sets the settings. - - The ninject settings. - - - - Contributes to a , and is called during the activation - and deactivation of an instance. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - Executes actions defined on the binding during activation and deactivation. - - - - - Calls the activation actions defined on the binding. - - The context. - A reference to the instance being activated. - - - - Calls the deactivation actions defined on the binding. - - The context. - A reference to the instance being deactivated. - - - - During deactivation, disposes instances that implement . - - - - - Disposes the specified instance. - - The context. - A reference to the instance being deactivated. - - - - During activation, initializes instances that implement . - - - - - Initializes the specified instance. - - The context. - A reference to the instance being activated. - - - - Injects methods on an instance during activation. - - - - - Injects values into the properties as described by s - contained in the plan. - - The context. - A reference to the instance being activated. - - - - Injects properties on an instance during activation. - - - - - Initializes a new instance of the class. - - The injector factory component. - - - - Injects values into the properties as described by s - contained in the plan. - - The context. - A reference to the instance being activated. - - - - Applies user supplied override values to instance properties. - - The context. - A reference to the instance being activated. - The parameter ovverride value accessors. - - - - Gets the value to inject into the specified target. - - The context. - The target. - The value to inject into the specified target. - - - - Gets the injector factory component. - - - - - Starts instances that implement during activation, - and stops them during deactivation. - - - - - Starts the specified instance. - - The context. - A reference to the instance being activated. - - - - Stops the specified instance. - - The context. - A reference to the instance being deactivated. - - - - Contains information about the activation of a single instance. - - - - - Contains information about the activation of a single instance. - - - - - Gets the provider that should be used to create the instance for this context. - - The provider that should be used. - - - - Gets the scope for the context that "owns" the instance activated therein. - - The object that acts as the scope. - - - - Resolves this instance for this context. - - The resolved instance. - - - - Gets the kernel that is driving the activation. - - - - - Gets the request. - - - - - Gets the binding. - - - - - Gets or sets the activation plan. - - - - - Gets the parameters that were passed to manipulate the activation process. - - - - - Gets the generic arguments for the request, if any. - - - - - Gets a value indicating whether the request involves inferred generic arguments. - - - - - Initializes a new instance of the class. - - The kernel managing the resolution. - The context's request. - The context's binding. - The cache component. - The planner component. - The pipeline component. - - - - Gets the scope for the context that "owns" the instance activated therein. - - The object that acts as the scope. - - - - Gets the provider that should be used to create the instance for this context. - - The provider that should be used. - - - - Resolves the instance associated with this hook. - - The resolved instance. - - - - Gets the kernel that is driving the activation. - - - - - Gets the request. - - - - - Gets the binding. - - - - - Gets or sets the activation plan. - - - - - Gets the parameters that were passed to manipulate the activation process. - - - - - Gets the generic arguments for the request, if any. - - - - - Gets a value indicating whether the request involves inferred generic arguments. - - - - - Gets or sets the cache component. - - - - - Gets or sets the planner component. - - - - - Gets or sets the pipeline component. - - - - - Holds an instance during activation or after it has been cached. - - - - - Returns a value indicating whether the instance is of the specified type. - - The type in question. - if the instance is of the specified type, otherwise . - - - - Returns the instance as the specified type. - - The requested type. - The instance. - - - - Executes the specified action if the instance if of the specified type. - - The type in question. - The action to execute. - - - - Gets or sets the instance. - - - - - Drives the activation (injection, etc.) of an instance. - - - - - Activates the instance in the specified context. - - The context. - The instance reference. - - - - Deactivates the instance in the specified context. - - The context. - The instance reference. - - - - Gets the strategies that contribute to the activation and deactivation processes. - - - - - Describes the request for a service resolution. - - - - - Determines whether the specified binding satisfies the constraint defined on this request. - - The binding. - True if the binding satisfies the constraint; otherwise false. - - - - Gets the scope if one was specified in the request. - - The object that acts as the scope. - - - - Creates a child request. - - The service that is being requested. - The context in which the request was made. - The target that will receive the injection. - The child request. - - - - Gets the service that was requested. - - - - - Gets the parent request. - - - - - Gets the parent context. - - - - - Gets the target that will receive the injection, if any. - - - - - Gets the constraint that will be applied to filter the bindings used for the request. - - - - - Gets the parameters that affect the resolution. - - - - - Gets the stack of bindings which have been activated by either this request or its ancestors. - - - - - Gets the recursive depth at which this request occurs. - - - - - Gets or sets value indicating whether the request is optional. - - - - - Gets or sets value indicating whether the request should return a unique result. - - - - - Drives the activation (injection, etc.) of an instance. - - - - - The activation cache. - - - - - Initializes a new instance of the class. - - The strategies to execute during activation and deactivation. - The activation cache. - - - - Activates the instance in the specified context. - - The context. - The instance reference. - - - - Deactivates the instance in the specified context. - - The context. - The instance reference. - - - - Gets the strategies that contribute to the activation and deactivation processes. - - - - - Describes the request for a service resolution. - - - - - Initializes a new instance of the class. - - The service that was requested. - The constraint that will be applied to filter the bindings used for the request. - The parameters that affect the resolution. - The scope callback, if an external scope was specified. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - - - - Initializes a new instance of the class. - - The parent context. - The service that was requested. - The target that will receive the injection. - The scope callback, if an external scope was specified. - - - - Determines whether the specified binding satisfies the constraints defined on this request. - - The binding. - True if the binding satisfies the constraints; otherwise false. - - - - Gets the scope if one was specified in the request. - - The object that acts as the scope. - - - - Creates a child request. - - The service that is being requested. - The context in which the request was made. - The target that will receive the injection. - The child request. - - - - Gets the service that was requested. - - - - - Gets the parent request. - - - - - Gets the parent context. - - - - - Gets the target that will receive the injection, if any. - - - - - Gets the constraint that will be applied to filter the bindings used for the request. - - - - - Gets the parameters that affect the resolution. - - - - - Gets the stack of bindings which have been activated by either this request or its ancestors. - - - - - Gets the recursive depth at which this request occurs. - - - - - Gets or sets value indicating whether the request is optional. - - - - - Gets or sets value indicating whether the request is for a single service. - - - - - Gets the callback that resolves the scope for the request, if an external scope was provided. - - - - - Defines a constraint on the decorated member. - - - - - Determines whether the specified binding metadata matches the constraint. - - The metadata in question. - True if the metadata matches; otherwise false. - - - - Indicates that the decorated member should be injected. - - - - - Indicates that the decorated member should only be injected using binding(s) registered - with the specified name. - - - - - Initializes a new instance of the class. - - The name of the binding(s) to use. - - - - Determines whether the specified binding metadata matches the constraint. - - The metadata in question. - True if the metadata matches; otherwise false. - - - - Gets the binding name. - - - - - Indicates that the decorated member represents an optional dependency. - - - - - An internal container that manages and resolves components that contribute to Ninject. - - - - - An internal container that manages and resolves components that contribute to Ninject. - - - - - Registers a component in the container. - - The component type. - The component's implementation type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Removes all registrations for the specified component. - - The component's type. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets or sets the kernel that owns the component container. - - - - - Releases resources held by the object. - - - - - Registers a component in the container. - - The component type. - The component's implementation type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets or sets the kernel that owns the component container. - - - - - Provides meaningful exception messages. - - - - - Generates a message saying that modules without names are not supported. - - The exception message. - - - - Generates a message saying that a module with the same name is already loaded. - - The new module. - The existing module. - The exception message. - - - - Generates a message saying that no module has been loaded with the specified name. - - The module name. - The exception message. - - - - Generates a message saying that the binding could not be uniquely resolved. - - The request. - The exception message. - - - - Generates a message saying that the binding could not be resolved on the specified request. - - The request. - The exception message. - - - - Generates a message saying that the specified context has cyclic dependencies. - - The context. - The exception message. - - - - Generates a message saying that an invalid attribute type is used in the binding condition. - - The binding. - Name of the method. - The type. - The exception message. - - - - Generates a message saying that no constructors are available on the specified context. - - The context. - The exception message. - - - - Generates a message saying that no constructors are available for the given component. - - The component. - The implementation. - The exception message. - - - - Generates a message saying that the specified component is not registered. - - The component. - The exception message. - - - - Generates a message saying that the specified property could not be resolved on the specified request. - - The request. - The property name. - The exception message. - - - - Generates a message saying that the provider on the specified context returned null. - - The context. - The exception message. - - - - Provides extension methods for string formatting - - - - - Formats the activation path into a meaningful string representation. - - The request to be formatted. - The activation path formatted as string. - - - - Formats the given binding into a meaningful string representation. - - The binding to be formatted. - The context. - The binding formatted as string - - - - Formats the specified request into a meaningful string representation. - - The request to be formatted. - The request formatted as string. - - - - Formats the specified target into a meaningful string representation.. - - The target to be formatted. - The target formatted as string. - - - - Formats the specified type into a meaningful string representation.. - - The type to be formatted. - The type formatted as string. - - - - Extensions for MemberInfo - - - - - Determines whether the specified member has attribute. - - The type of the attribute. - The member. - - true if the specified member has attribute; otherwise, false. - - - - - Determines whether the specified member has attribute. - - The member. - The type of the attribute. - - true if the specified member has attribute; otherwise, false. - - - - - Gets the property info from its declared tpe. - - The member info. - The property definition. - The flags. - The property info from the declared type of the property. - - - - Determines whether the specified property info is private. - - The property info. - - true if the specified property info is private; otherwise, false. - - - - - Gets the custom attributes. - This version is able to get custom attributes for properties from base types even if the property is none public. - - The member. - Type of the attribute. - if set to true [inherited]. - - - - - Represents a future value. - - The type of value. - - - - Initializes a new instance of the Future<T> class. - - The callback that will be triggered to read the value. - - - - Gets the value from the future. - - The future. - The future value. - - - - Gets the value, resolving it if necessary. - - - - - Gets the callback that will be called to resolve the value. - - - - - Indicates the object has a reference to a . - - - - - Gets the binding. - - - - - Indicates that the object has a reference to an . - - - - - Gets the kernel. - - - - - A data structure that contains multiple values for a each key. - - The type of key. - The type of value. - - - - Adds the specified value for the specified key. - - The key. - The value. - - - - Removes the specified value for the specified key. - - The key. - The value. - True if such a value existed and was removed; otherwise false. - - - - Removes all values for the specified key. - - The key. - True if any such values existed; otherwise false. - - - - Removes all values. - - - - - Determines whether the multimap contains any values for the specified key. - - The key. - True if the multimap has one or more values for the specified key; otherwise, false. - - - - Determines whether the multimap contains the specified value for the specified key. - - The key. - The value. - True if the multimap contains such a value; otherwise, false. - - - - Returns an enumerator that iterates through a the multimap. - - An object that can be used to iterate through the multimap. - - - - Gets the collection of values stored under the specified key. - - The key. - - - - Gets the collection of keys. - - - - - Gets the collection of collections of values. - - - - - Weak reference that can be used in collections. It is equal to the - object it references and has the same hash code. - - - - - Initializes a new instance of the class. - - The target. - - - - Initializes a new instance of the class. - - The target. - if set to true [track resurrection]. - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - The parameter is null. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Gets a value indicating whether this instance is alive. - - true if this instance is alive; otherwise, false. - - - - Gets or sets the target of this weak reference. - - The targe of this weak reference. - - - - Defines the style of request (single or multi-injection, whether it is optional, etc.) - - - - - Indicates a request for a single instance of a service. - - - - - Indicates a request for multiple instances of a service. - - - - - Indicates that null should be returned (instead of throwing) if the service cannot be resolved. - - - - - Scope callbacks for standard scopes. - - - - - Gets the callback for transient scope. - - - - - Gets the callback for singleton scope. - - - - - Gets the callback for thread scope. - - - - - A delegate that can inject values into a constructor. - - - - - Creates injectors for members via s. - - - - - Creates injectors from members. - - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - A delegate that can inject values into a method. - - - - - A delegate that can inject values into a property. - - - - - Creates injectors from members via reflective invocation. - - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - A pluggable unit that can be loaded into an . - - - - - Called when the module is loaded into a kernel. - - The kernel that is loading the module. - - - - Called when the module is unloaded from a kernel. - - The kernel that is unloading the module. - - - - Gets the module's name. - - - - - A loadable unit that defines bindings for your application. - - - - - Provides a path to register bindings. - - - - - Provides a path to register bindings. - - - - - Declares a binding for the specified service. - - The service to bind. - - - - Declares a binding from the service to itself. - - The service to bind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Declares a binding for the specified service. - - The service to bind. - - - - Declares a binding for the specified service. - - The service to bind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Initializes a new instance of the class. - - - - - Called when the module is loaded into a kernel. - - The kernel that is loading the module. - - - - Called when the module is unloaded from a kernel. - - The kernel that is unloading the module. - - - - Loads the module into the kernel. - - - - - Unloads the module from the kernel. - - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Gets the kernel that the module is loaded into. - - - - - Gets the module's name. Only a single module with a given name can be loaded at one time. - - - - - Gets the bindings that were registered by the module. - - - - - Overrides the injected value of a constructor argument. - - - - - Modifies an activation process in some way. - - - - - Modifies an activation process in some way. - - - - - Gets the value for the parameter within the specified context. - - The context. - The target. - The value for the parameter. - - - - Gets the name of the parameter. - - - - - Gets a value indicating whether the parameter should be inherited into child requests. - - - - - Initializes a new instance of the class. - - The name of the parameter. - The value of the parameter. - Whether the parameter should be inherited into child requests. - - - - Initializes a new instance of the class. - - The name of the parameter. - The callback that will be triggered to get the parameter's value. - Whether the parameter should be inherited into child requests. - - - - Initializes a new instance of the class. - - The name of the parameter. - The callback that will be triggered to get the parameter's value. - Whether the parameter should be inherited into child requests. - - - - Gets the value for the parameter within the specified context. - - The context. - The target. - The value for the parameter. - - - - Determines whether the object equals the specified object. - - An object to compare with this object. - True if the objects are equal; otherwise false - - - - Serves as a hash function for a particular type. - - A hash code for the object. - - - - Indicates whether the current object is equal to another object of the same type. - - An object to compare with this object. - True if the objects are equal; otherwise false - - - - Gets the name of the parameter. - - - - - Gets a value indicating whether the parameter should be inherited into child requests. - - - - - Gets or sets the callback that will be triggered to get the parameter's value. - - - - - Initializes a new instance of the class. - - The name of the argument to override. - The value to inject into the property. - - - - Initializes a new instance of the class. - - The name of the argument to override. - The callback to invoke to get the value that should be injected. - - - - Initializes a new instance of the class. - - The name of the argument to override. - The callback to invoke to get the value that should be injected. - - - - Overrides the injected value of a property. - - - - - Initializes a new instance of the class. - - The name of the property to override. - The value to inject into the property. - - - - Initializes a new instance of the class. - - The name of the property to override. - The callback to invoke to get the value that should be injected. - - - - Initializes a new instance of the class. - - The name of the property to override. - The callback to invoke to get the value that should be injected. - - - - Contains logic about which bindings to use for a given service request. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Contains logic about which bindings to use for a given service request - when other attempts have failed. - - - - - Returns any bindings from the specified collection that match the specified request. - - The multimap of all registered bindings. - The request in question. - The series of matching bindings. - - - - Resolves bindings for open generic types. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Returns a value indicating whether the specified service is self-bindable. - - The service. - if the type is self-bindable; otherwise . - - - - Resolves bindings that have been registered directly for the service. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Contains information about a service registration. - - - - - Contains information about a service registration. - - - - - Gets the provider for the binding. - - The context. - The provider to use. - - - - Gets the scope for the binding, if any. - - The context. - The object that will act as the scope, or if the service is transient. - - - - Determines whether the specified request satisfies the condition defined on the binding, - if one was defined. - - The request. - True if the request satisfies the condition; otherwise false. - - - - Gets the service type that is controlled by the binding. - - - - - Gets the binding's metadata. - - - - - Gets or sets the type of target for the binding. - - - - - Gets or sets a value indicating whether the binding was implicitly registered. - - - - - Gets a value indicating whether the binding has a condition associated with it. - - - - - Gets or sets the condition defined for the binding. - - - - - Gets or sets the callback that returns the provider that should be used by the binding. - - - - - Gets or sets the callback that returns the object that will act as the binding's scope. - - - - - Gets the parameters defined for the binding. - - - - - Gets the actions that should be called after instances are activated via the binding. - - - - - Gets the actions that should be called before instances are deactivated via the binding. - - - - - Initializes a new instance of the class. - - The service that is controlled by the binding. - - - - Initializes a new instance of the class. - - The service that is controlled by the binding. - The binding's metadata container. - - - - Gets the provider for the binding. - - The context. - The provider to use. - - - - Gets the scope for the binding, if any. - - The context. - The object that will act as the scope, or if the service is transient. - - - - Determines whether the specified request satisfies the conditions defined on this binding. - - The request. - True if the request satisfies the conditions; otherwise false. - - - - Gets the service type that is controlled by the binding. - - - - - Gets the binding's metadata. - - - - - Gets or sets a value indicating whether the binding was implicitly registered. - - - - - Gets a value indicating whether the binding has a condition associated with it. - - - - - Gets or sets the type of target for the binding. - - - - - Gets or sets the condition defined for the binding. - - - - - Gets or sets the callback that returns the provider that should be used by the binding. - - - - - Gets or sets the callback that returns the object that will act as the binding's scope. - - - - - Gets the parameters defined for the binding. - - - - - Gets the actions that should be called after instances are activated via the binding. - - - - - Gets the actions that should be called before instances are deactivated via the binding. - - - - - Provides a root for the fluent syntax associated with an . - - - - - Used to define the target of a binding. - - The service being bound. - - - - Used to define a basic binding syntax builder. - - - - - A hack to hide methods defined on for IntelliSense - on fluent interfaces. Credit to Daniel Cazzulino. - - - - - - - - - - - - - - - - - Indicates that the service should be self-bound. - - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to the specified provider. - - The provider. - - - - Indicates that the service should be bound to the specified callback method. - - The method. - - - - Indicates that the service should be bound to the specified constant value. - - The constant value. - - - - Used to set the condition, scope, name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to define the conditions under which a binding should be used. - - The service being bound. - - - - Indicates that the binding should be used only for requests that support the specified condition. - - The condition. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the service is being requested - by a service bound with the specified name. - - The name to expect. - - - - Used to define the scope in which instances activated via a binding should be re-used. - - The service being bound. - - - - Indicates that only a single instance of the binding should be created, and then - should be re-used for all subsequent requests. - - - - - Indicates that instances activated via the binding should not be re-used, nor have - their lifecycle managed by Ninject. - - - - - Indicates that instances activated via the binding should be re-used within the same thread. - - - - - Indicates that instances activated via the binding should be re-used as long as the object - returned by the provided callback remains alive (that is, has not been garbage collected). - - The callback that returns the scope. - - - - Used to define the name of a binding. - - The service being bound. - - - - Indicates that the binding should be registered with the specified name. Names are not - necessarily unique; multiple bindings for a given service may be registered with the same name. - - The name to give the binding. - - - - Used to add additional information to a binding. - - The service being bound. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Adds a custom parameter to the binding. - - The parameter. - - - - Sets the value of a piece of metadata on the binding. - - The metadata key. - The metadata value. - - - - Used to add additional actions to be performed during activation or deactivation of instances via a binding. - - The service being bound. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Used to set the scope, name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to set the name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to add additional information or actions to a binding. - - The service being bound. - - - - Initializes a new instance of the BindingBuilder<T> class. - - The binding to build. - The kernel. - - - - Indicates that the service should be self-bound. - - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to the specified provider. - - The provider. - - - - Indicates that the service should be bound to the specified callback method. - - The method. - - - - Indicates that the service should be bound to the specified constant value. - - The constant value. - - - - Indicates that the binding should be used only for requests that support the specified condition. - - The condition. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the service is being requested - by a service bound with the specified name. - - The name to expect. - - - - Indicates that the binding should be registered with the specified name. Names are not - necessarily unique; multiple bindings for a given service may be registered with the same name. - - The name to give the binding. - - - - Indicates that only a single instance of the binding should be created, and then - should be re-used for all subsequent requests. - - - - - Indicates that instances activated via the binding should not be re-used, nor have - their lifecycle managed by Ninject. - - - - - Indicates that instances activated via the binding should be re-used within the same thread. - - - - - Indicates that instances activated via the binding should be re-used as long as the object - returned by the provided callback remains alive (that is, has not been garbage collected). - - The callback that returns the scope. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Adds a custom parameter to the binding. - - The parameter. - - - - Sets the value of a piece of metadata on the binding. - - The metadata key. - The metadata value. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Provides a root for the fluent syntax associated with an . - - - - - Gets the binding being built. - - - - - Gets the kernel. - - - - - Additional information available about a binding, which can be used in constraints - to select bindings to use in activation. - - - - - Additional information available about a binding, which can be used in constraints - to select bindings to use in activation. - - - - - Determines whether a piece of metadata with the specified key has been defined. - - The metadata key. - True if such a piece of metadata exists; otherwise, false. - - - - Gets the value of metadata defined with the specified key, cast to the specified type. - - The type of value to expect. - The metadata key. - The metadata value. - - - - Gets the value of metadata defined with the specified key. - - The metadata key. - The value to return if the binding has no metadata set with the specified key. - The metadata value, or the default value if none was set. - - - - Sets the value of a piece of metadata. - - The metadata key. - The metadata value. - - - - Gets or sets the binding's name. - - - - - Determines whether a piece of metadata with the specified key has been defined. - - The metadata key. - True if such a piece of metadata exists; otherwise, false. - - - - Gets the value of metadata defined with the specified key, cast to the specified type. - - The type of value to expect. - The metadata key. - The metadata value. - - - - Gets the value of metadata defined with the specified key. - - The metadata key. - The value to return if the binding has no metadata set with the specified key. - The metadata value, or the default value if none was set. - - - - Sets the value of a piece of metadata. - - The metadata key. - The metadata value. - - - - Gets or sets the binding's name. - - - - - Describes the target of a binding. - - - - - Indicates that the binding is from a type to itself. - - - - - Indicates that the binding is from one type to another. - - - - - Indicates that the binding is from a type to a provider. - - - - - Indicates that the binding is from a type to a callback method. - - - - - Indicates that the binding is from a type to a constant value. - - - - - Describes the injection of a constructor. - - - - - Describes the injection of a method or constructor. - - - - - A piece of information used in an . (Just a marker.) - - - - - Initializes a new instance of the MethodInjectionDirectiveBase<TMethod, TInjector> class. - - The method this directive represents. - The injector that will be triggered. - - - - Creates targets for the parameters of the method. - - The method. - The targets for the method's parameters. - - - - Gets or sets the injector that will be triggered. - - - - - Gets or sets the targets for the directive. - - - - - Initializes a new instance of the class. - - The constructor described by the directive. - The injector that will be triggered. - - - - The base .ctor definition. - - - - - Describes the injection of a method. - - - - - Initializes a new instance of the class. - - The method described by the directive. - The injector that will be triggered. - - - - Describes the injection of a property. - - - - - Initializes a new instance of the class. - - The member the directive describes. - The injector that will be triggered. - - - - Creates a target for the property. - - The property. - The target for the property. - - - - Gets or sets the injector that will be triggered. - - - - - Gets or sets the injection target for the directive. - - - - - Adds a directive to plans indicating which constructor should be injected during activation. - - - - - Contributes to the generation of a . - - - - - Contributes to the specified plan. - - The plan that is being generated. - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for the constructor - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Adds directives to plans indicating which methods should be injected during activation. - - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for each method - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Adds directives to plans indicating which properties should be injected during activation. - - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for each property - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Represents a site on a type where a value will be injected. - - - - - Resolves a value for the target within the specified parent context. - - The parent context. - The resolved value. - - - - Gets the type of the target. - - - - - Gets the name of the target. - - - - - Gets the member that contains the target. - - - - - Gets the constraint defined on the target. - - - - - Gets a value indicating whether the target represents an optional dependency. - - - - - Represents an injection target for a . - - - - - Represents a site on a type where a value can be injected. - - The type of site this represents. - - - - Initializes a new instance of the Target<T> class. - - The member that contains the target. - The site represented by the target. - - - - Returns an array of custom attributes of a specified type defined on the target. - - The type of attribute to search for. - Whether to look up the hierarchy chain for inherited custom attributes. - An array of custom attributes of the specified type. - - - - Returns an array of custom attributes defined on the target. - - Whether to look up the hierarchy chain for inherited custom attributes. - An array of custom attributes. - - - - Returns a value indicating whether an attribute of the specified type is defined on the target. - - The type of attribute to search for. - Whether to look up the hierarchy chain for inherited custom attributes. - True if such an attribute is defined; otherwise false. - - - - Resolves a value for the target within the specified parent context. - - The parent context. - The resolved value. - - - - Gets the value(s) that should be injected into the target. - - The service that the target is requesting. - The parent context in which the target is being injected. - A series of values that are available for injection. - - - - Gets the value that should be injected into the target. - - The service that the target is requesting. - The parent context in which the target is being injected. - The value that is to be injected. - - - - Reads whether the target represents an optional dependency. - - if it is optional; otherwise . - - - - Reads the resolution constraint from target. - - The resolution constraint. - - - - Gets the member that contains the target. - - - - - Gets or sets the site (property, parameter, etc.) represented by the target. - - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Gets the constraint defined on the target. - - - - - Gets a value indicating whether the target represents an optional dependency. - - - - - Initializes a new instance of the class. - - The method that defines the parameter. - The parameter that this target represents. - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Represents an injection target for a . - - - - - Initializes a new instance of the class. - - The property that this target represents. - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Describes the means by which a type should be activated. - - - - - Adds the specified directive to the plan. - - The directive. - - - - Determines whether the plan contains one or more directives of the specified type. - - The type of directive. - True if the plan has one or more directives of the type; otherwise, false. - - - - Gets the first directive of the specified type from the plan. - - The type of directive. - The first directive, or if no matching directives exist. - - - - Gets all directives of the specified type that exist in the plan. - - The type of directive. - A series of directives of the specified type. - - - - Gets the type that the plan describes. - - - - - Generates plans for how to activate instances. - - - - - Gets or creates an activation plan for the specified type. - - The type for which a plan should be created. - The type's activation plan. - - - - Gets the strategies that contribute to the planning process. - - - - - Describes the means by which a type should be activated. - - - - - Initializes a new instance of the class. - - The type the plan describes. - - - - Adds the specified directive to the plan. - - The directive. - - - - Determines whether the plan contains one or more directives of the specified type. - - The type of directive. - True if the plan has one or more directives of the type; otherwise, false. - - - - Gets the first directive of the specified type from the plan. - - The type of directive. - The first directive, or if no matching directives exist. - - - - Gets all directives of the specified type that exist in the plan. - - The type of directive. - A series of directives of the specified type. - - - - Gets the type that the plan describes. - - - - - Gets the directives defined in the plan. - - - - - Generates plans for how to activate instances. - - - - - Initializes a new instance of the class. - - The strategies to execute during planning. - - - - Gets or creates an activation plan for the specified type. - - The type for which a plan should be created. - The type's activation plan. - - - - Creates an empty plan for the specified type. - - The type for which a plan should be created. - The created plan. - - - - Gets the strategies that contribute to the planning process. - - - - - Generates scores for constructors, to determine which is the best one to call during activation. - - - - - Gets the score for the specified constructor. - - The injection context. - The constructor. - The constructor's score. - - - - Determines whether members should be injected during activation. - - - - - Returns a value indicating whether the specified member should be injected. - - The member in question. - True if the member should be injected; otherwise false. - - - - Scores constructors by either looking for the existence of an injection marker - attribute, or by counting the number of parameters. - - - - - Gets the score for the specified constructor. - - The injection context. - The constructor. - The constructor's score. - - - - Determines whether members should be injected during activation by checking - if they are decorated with an injection marker attribute. - - - - - Returns a value indicating whether the specified member should be injected. - - The member in question. - True if the member should be injected; otherwise false. - - - - Selects members for injection. - - - - - Selects the constructor to call on the specified type, by using the constructor scorer. - - The type. - The selected constructor, or if none were available. - - - - Selects properties that should be injected. - - The type. - A series of the selected properties. - - - - Selects methods that should be injected. - - The type. - A series of the selected methods. - - - - Gets or sets the constructor scorer. - - - - - Gets the heuristics used to determine which members should be injected. - - - - - Selects members for injection. - - - - - Initializes a new instance of the class. - - The constructor scorer. - The injection heuristics. - - - - Selects the constructor to call on the specified type, by using the constructor scorer. - - The type. - The selected constructor, or if none were available. - - - - Selects properties that should be injected. - - The type. - A series of the selected properties. - - - - Selects methods that should be injected. - - The type. - A series of the selected methods. - - - - Gets or sets the constructor scorer. - - - - - Gets the property injection heuristics. - - - - - Extension methods that enhance module loading. - - - - - Creates a new instance of the module and loads it into the kernel. - - The type of the module. - The kernel. - - - - Loads the module(s) into the kernel. - - The kernel. - The modules to load. - - - - Extensions that enhance resolution of services. - - - - - Gets an instance of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding that matches the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service. - - - - Tries to get an instance of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding that matches the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Gets all available instances of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service using bindings registered with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service by using the bindings that match the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the bindings. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets an instance of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding that matches the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service. - - - - Tries to get an instance of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding that matches the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Gets all available instances of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service using bindings registered with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service by using the bindings that match the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the bindings. - The parameters to pass to the request. - A series of instances of the service. - - - - Indicates that an error occured during activation of an instance. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The exception message. - - - - Initializes a new instance of the class. - - The exception message. - The inner exception. - - - - A service that requires initialization after it is activated. - - - - - Initializes the instance. Called during activation. - - - - - A super-factory that can create objects of all kinds, following hints provided by s. - - - - - Gets the modules that have been loaded into the kernel. - - A series of loaded modules. - - - - Determines whether a module with the specified name has been loaded in the kernel. - - The name of the module. - True if the specified module has been loaded; otherwise, false. - - - - Loads the module(s) into the kernel. - - The modules to load. - - - - Unloads the plugin with the specified name. - - The plugin's name. - - - - Injects the specified existing instance, without managing its lifecycle. - - The instance to inject. - The parameters to pass to the request. - - - - Deactivates and releases the specified instance if it is currently managed by Ninject. - - The instance to release. - if the instance was found and released; otherwise . - - - - Gets the bindings registered for the specified service. - - The service in question. - A series of bindings that are registered for the service. - - - - Begins a new activation block, which can be used to deterministically dispose resolved instances. - - The new activation block. - - - - Gets the kernel settings. - - - - - Gets the component container, which holds components that contribute to Ninject. - - - - - Contains configuration options for Ninject. - - - - - Gets the value for the specified key. - - The type of value to return. - The setting's key. - The value to return if no setting is available. - The value, or the default value if none was found. - - - - Sets the value for the specified key. - - The setting's key. - The setting's value. - - - - Gets the attribute that indicates that a member should be injected. - - - - - Gets the interval at which the cache should be pruned. - - - - - Gets a value indicating whether Ninject should use reflection-based injection instead of - the (usually faster) lightweight code generation system. - - - - - Gets or sets a value indicating whether the activation cache is disabled. - If the activation cache is disabled less memory is used. But in some cases - instances are activated or deactivated multiple times. e.g. in the following scenario: - Bind{A}().ToSelf(); - Bind{IA}().ToMethod(ctx => kernel.Get{IA}(); - - - true if activation cache is disabled; otherwise, false. - - - - - Gets or sets a value indicating whether Null is a valid value for injection. - By defualt this is disabled and whenever a provider returns null an eception is thrown. - - true if null is allowed as injected value otherwise false. - - - - A service that is started when activated, and stopped when deactivated. - - - - - Starts this instance. Called during activation. - - - - - Stops this instance. Called during deactivation. - - - - - The base implementation of an . - - - - - Lock used when adding missing bindings. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The configuration to use. - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The component container to use. - The configuration to use. - The modules to load into the kernel. - - - - Releases resources held by the object. - - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Determines whether a module with the specified name has been loaded in the kernel. - - The name of the module. - True if the specified module has been loaded; otherwise, false. - - - - Gets the modules that have been loaded into the kernel. - - A series of loaded modules. - - - - Loads the module(s) into the kernel. - - The modules to load. - - - - Unloads the plugin with the specified name. - - The plugin's name. - - - - Injects the specified existing instance, without managing its lifecycle. - - The instance to inject. - The parameters to pass to the request. - - - - Deactivates and releases the specified instance if it is currently managed by Ninject. - - The instance to release. - if the instance was found and released; otherwise . - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - Begins a new activation block, which can be used to deterministically dispose resolved instances. - - The new activation block. - - - - Gets the bindings registered for the specified service. - - The service in question. - A series of bindings that are registered for the service. - - - - Returns an IComparer that is used to determine resolution precedence. - - An IComparer that is used to determine resolution precedence. - - - - Returns a predicate that can determine if a given IBinding matches the request. - - The request/ - A predicate that can determine if a given IBinding matches the request. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Adds components to the kernel during startup. - - - - - Attempts to handle a missing binding for a service. - - The service. - True if the missing binding can be handled; otherwise false. - - - - Attempts to handle a missing binding for a request. - - The request. - True if the missing binding can be handled; otherwise false. - - - - Returns a value indicating whether the specified service is self-bindable. - - The service. - if the type is self-bindable; otherwise . - - - - Creates a context for the specified request and binding. - - The request. - The binding. - The created context. - - - - Gets the kernel settings. - - - - - Gets the component container, which holds components that contribute to Ninject. - - - - - Contains configuration options for Ninject. - - - - - Gets the value for the specified key. - - The type of value to return. - The setting's key. - The value to return if no setting is available. - The value, or the default value if none was found. - - - - Sets the value for the specified key. - - The setting's key. - The setting's value. - - - - Gets or sets the attribute that indicates that a member should be injected. - - - - - Gets or sets the interval at which the GC should be polled. - - - - - Gets a value indicating whether Ninject should use reflection-based injection instead of - the (usually faster) lightweight code generation system. - - - - - Gets or sets a value indicating whether the activation cache is disabled. - If the activation cache is disabled less memory is used. But in some cases - instances are activated or deactivated multiple times. e.g. in the following scenario: - Bind{A}().ToSelf(); - Bind{IA}().ToMethod(ctx => kernel.Get{IA}(); - - - true if activation cache is disabled; otherwise, false. - - - - - Gets or sets a value indicating whether Null is a valid value for injection. - By defualt this is disabled and whenever a provider returns null an eception is thrown. - - - true if null is allowed as injected value otherwise false. - - - - - The standard implementation of a kernel. - - - - - Initializes a new instance of the class. - - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The configuration to use. - The modules to load into the kernel. - - - - Adds components to the kernel during startup. - - - - diff --git a/packages/Ninject.2.2.1.4/lib/sl3-wp/Ninject.dll b/packages/Ninject.2.2.1.4/lib/sl3-wp/Ninject.dll deleted file mode 100644 index ad7cde2..0000000 Binary files a/packages/Ninject.2.2.1.4/lib/sl3-wp/Ninject.dll and /dev/null differ diff --git a/packages/Ninject.2.2.1.4/lib/sl3-wp/Ninject.pdb b/packages/Ninject.2.2.1.4/lib/sl3-wp/Ninject.pdb deleted file mode 100644 index 1b8d8e1..0000000 Binary files a/packages/Ninject.2.2.1.4/lib/sl3-wp/Ninject.pdb and /dev/null differ diff --git a/packages/Ninject.2.2.1.4/lib/sl3-wp/Ninject.xml b/packages/Ninject.2.2.1.4/lib/sl3-wp/Ninject.xml deleted file mode 100644 index 37e8563..0000000 --- a/packages/Ninject.2.2.1.4/lib/sl3-wp/Ninject.xml +++ /dev/null @@ -1,4439 +0,0 @@ - - - - Ninject - - - - - A block used for deterministic disposal of activated instances. When the block is - disposed, all instances activated via it will be deactivated. - - - - - An object that notifies when it is disposed. - - - - - An object that can report whether or not it is disposed. - - - - - Gets a value indicating whether this instance is disposed. - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Releases resources held by the object. - - - - - Releases resources before the object is reclaimed by garbage collection. - - - - - Gets a value indicating whether this instance is disposed. - - - - - A block used for deterministic disposal of activated instances. When the block is - disposed, all instances activated via it will be deactivated. - - - - - Provides a path to resolve instances. - - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - An object that fires an event when it is disposed. - - - - - Occurs when the object is disposed. - - - - - Initializes a new instance of the class. - - The parent resolution root. - - - - Releases resources held by the object. - - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - Gets or sets the parent resolution root (usually the kernel). - - - - - Occurs when the object is disposed. - - - - - Stores the objects that were activated - - - - - A component that contributes to the internals of Ninject. - - - - - A component that contributes to the internals of Ninject. - - - - - Gets or sets the settings. - - - - - Gets or sets the settings. - - - - - Stores the objects that were activated - - - - - Clears the cache. - - - - - Adds an activated instance. - - The instance to be added. - - - - Adds an deactivated instance. - - The instance to be added. - - - - Determines whether the specified instance is activated. - - The instance. - - true if the specified instance is activated; otherwise, false. - - - - - Determines whether the specified instance is deactivated. - - The instance. - - true if the specified instance is deactivated; otherwise, false. - - - - - An object that is prunealble. - - - - - Removes instances from the cache which should no longer be re-used. - - - - - The objects that were activated as reference equal weak references. - - - - - The objects that were activated as reference equal weak references. - - - - - Initializes a new instance of the class. - - The cache pruner. - - - - Clears the cache. - - - - - Adds an activated instance. - - The instance to be added. - - - - Adds an deactivated instance. - - The instance to be added. - - - - Determines whether the specified instance is activated. - - The instance. - - true if the specified instance is activated; otherwise, false. - - - - - Determines whether the specified instance is deactivated. - - The instance. - - true if the specified instance is deactivated; otherwise, false. - - - - - Prunes this instance. - - - - - Removes all dead objects. - - The objects collection to be freed of dead objects. - - - - Gets the activated object count. - - The activated object count. - - - - Gets the deactivated object count. - - The deactivated object count. - - - - Tracks instances for re-use in certain scopes. - - - - - Tracks instances for re-use in certain scopes. - - - - - Stores the specified instance in the cache. - - The context to store. - The instance reference. - - - - Tries to retrieve an instance to re-use in the specified context. - - The context that is being activated. - The instance for re-use, or if none has been stored. - - - - Deactivates and releases the specified instance from the cache. - - The instance to release. - if the instance was found and released; otherwise . - - - - Immediately deactivates and removes all instances in the cache that are owned by - the specified scope. - - The scope whose instances should be deactivated. - - - - Immediately deactivates and removes all instances in the cache, regardless of scope. - - - - - Gets the number of entries currently stored in the cache. - - - - - Contains all cached instances. - This is a dictionary of scopes to a multimap for bindings to cache entries. - - - - - Initializes a new instance of the class. - - The pipeline component. - The cache pruner component. - - - - Releases resources held by the object. - - - - - - Stores the specified context in the cache. - - The context to store. - The instance reference. - - - - Tries to retrieve an instance to re-use in the specified context. - - The context that is being activated. - The instance for re-use, or if none has been stored. - - - - Deactivates and releases the specified instance from the cache. - - The instance to release. - if the instance was found and released; otherwise . - - - - Removes instances from the cache which should no longer be re-used. - - - - - Immediately deactivates and removes all instances in the cache that are owned by - the specified scope. - - The scope whose instances should be deactivated. - - - - Immediately deactivates and removes all instances in the cache, regardless of scope. - - - - - Gets all entries for a binding withing the selected scope. - - The bindings. - All bindings of a binding. - - - - Gets all cache entries. - - Returns all cache entries. - - - - Forgets the specified cache entries. - - The cache entries. - - - - Forgets the specified entry. - - The entry. - - - - Gets the pipeline component. - - - - - Gets the number of entries currently stored in the cache. - - - - - An entry in the cache. - - - - - Initializes a new instance of the class. - - The context. - The instance reference. - - - - Gets the context of the instance. - - The context. - - - - Gets the instance reference. - - The instance reference. - - - - Uses a and some magic to poll - the garbage collector to see if it has run. - - - - - Prunes instances from an based on environmental information. - - - - - Starts pruning the specified cache based on the rules of the pruner. - - The cache that will be pruned. - - - - Stops pruning. - - - - - The caches that are being pruned. - - - - - Releases resources held by the object. - - - - - Starts pruning the specified pruneable based on the rules of the pruner. - - The pruneable that will be pruned. - - - - Stops pruning. - - - - - A provider that delegates to a callback method to create instances. - - The type of instances the provider creates. - - - - A simple abstract provider for instances of a specific type. - - The type of instances the provider creates. - - - - Creates instances of services. - - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Initializes a new instance of the CallbackProvider<T> class. - - The callback method that will be called to create instances. - - - - Invokes the callback method to create an instance. - - The context. - The created instance. - - - - Gets the callback method used by the provider. - - - - - A provider that always returns the same constant value. - - The type of value that is returned. - - - - Initializes a new instance of the ConstantProvider<T> class. - - The value that the provider should return. - - - - Creates an instance within the specified context. - - The context. - The constant value this provider returns. - - - - Gets the value that the provider will return. - - - - - The standard provider for types, which activates instances via a . - - - - - Initializes a new instance of the class. - - The type (or prototype) of instances the provider creates. - The planner component. - The selector component. - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the value to inject into the specified target. - - The context. - The target. - The value to inject into the specified target. - - - - Gets the implementation type that the provider will activate an instance of - for the specified service. - - The service in question. - The implementation type that will be activated. - - - - Gets a callback that creates an instance of the - for the specified type. - - The prototype the provider instance will create. - The created callback. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Gets or sets the planner component. - - - - - Gets or sets the selector component. - - - - - Adds all activated instances to the activation cache. - - - - - Contributes to a , and is called during the activation - and deactivation of an instance. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - The activation cache. - - - - - Initializes a new instance of the class. - - The activation cache. - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - Gets or sets the settings. - - The ninject settings. - - - - Contributes to a , and is called during the activation - and deactivation of an instance. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - Executes actions defined on the binding during activation and deactivation. - - - - - Calls the activation actions defined on the binding. - - The context. - A reference to the instance being activated. - - - - Calls the deactivation actions defined on the binding. - - The context. - A reference to the instance being deactivated. - - - - During deactivation, disposes instances that implement . - - - - - Disposes the specified instance. - - The context. - A reference to the instance being deactivated. - - - - During activation, initializes instances that implement . - - - - - Initializes the specified instance. - - The context. - A reference to the instance being activated. - - - - Injects methods on an instance during activation. - - - - - Injects values into the properties as described by s - contained in the plan. - - The context. - A reference to the instance being activated. - - - - Injects properties on an instance during activation. - - - - - Initializes a new instance of the class. - - The injector factory component. - - - - Injects values into the properties as described by s - contained in the plan. - - The context. - A reference to the instance being activated. - - - - Applies user supplied override values to instance properties. - - The context. - A reference to the instance being activated. - The parameter ovverride value accessors. - - - - Gets the value to inject into the specified target. - - The context. - The target. - The value to inject into the specified target. - - - - Gets the injector factory component. - - - - - Starts instances that implement during activation, - and stops them during deactivation. - - - - - Starts the specified instance. - - The context. - A reference to the instance being activated. - - - - Stops the specified instance. - - The context. - A reference to the instance being deactivated. - - - - Contains information about the activation of a single instance. - - - - - Contains information about the activation of a single instance. - - - - - Gets the provider that should be used to create the instance for this context. - - The provider that should be used. - - - - Gets the scope for the context that "owns" the instance activated therein. - - The object that acts as the scope. - - - - Resolves this instance for this context. - - The resolved instance. - - - - Gets the kernel that is driving the activation. - - - - - Gets the request. - - - - - Gets the binding. - - - - - Gets or sets the activation plan. - - - - - Gets the parameters that were passed to manipulate the activation process. - - - - - Gets the generic arguments for the request, if any. - - - - - Gets a value indicating whether the request involves inferred generic arguments. - - - - - Initializes a new instance of the class. - - The kernel managing the resolution. - The context's request. - The context's binding. - The cache component. - The planner component. - The pipeline component. - - - - Gets the scope for the context that "owns" the instance activated therein. - - The object that acts as the scope. - - - - Gets the provider that should be used to create the instance for this context. - - The provider that should be used. - - - - Resolves the instance associated with this hook. - - The resolved instance. - - - - Gets the kernel that is driving the activation. - - - - - Gets the request. - - - - - Gets the binding. - - - - - Gets or sets the activation plan. - - - - - Gets the parameters that were passed to manipulate the activation process. - - - - - Gets the generic arguments for the request, if any. - - - - - Gets a value indicating whether the request involves inferred generic arguments. - - - - - Gets or sets the cache component. - - - - - Gets or sets the planner component. - - - - - Gets or sets the pipeline component. - - - - - Holds an instance during activation or after it has been cached. - - - - - Returns a value indicating whether the instance is of the specified type. - - The type in question. - if the instance is of the specified type, otherwise . - - - - Returns the instance as the specified type. - - The requested type. - The instance. - - - - Executes the specified action if the instance if of the specified type. - - The type in question. - The action to execute. - - - - Gets or sets the instance. - - - - - Drives the activation (injection, etc.) of an instance. - - - - - Activates the instance in the specified context. - - The context. - The instance reference. - - - - Deactivates the instance in the specified context. - - The context. - The instance reference. - - - - Gets the strategies that contribute to the activation and deactivation processes. - - - - - Describes the request for a service resolution. - - - - - Determines whether the specified binding satisfies the constraint defined on this request. - - The binding. - True if the binding satisfies the constraint; otherwise false. - - - - Gets the scope if one was specified in the request. - - The object that acts as the scope. - - - - Creates a child request. - - The service that is being requested. - The context in which the request was made. - The target that will receive the injection. - The child request. - - - - Gets the service that was requested. - - - - - Gets the parent request. - - - - - Gets the parent context. - - - - - Gets the target that will receive the injection, if any. - - - - - Gets the constraint that will be applied to filter the bindings used for the request. - - - - - Gets the parameters that affect the resolution. - - - - - Gets the stack of bindings which have been activated by either this request or its ancestors. - - - - - Gets the recursive depth at which this request occurs. - - - - - Gets or sets value indicating whether the request is optional. - - - - - Gets or sets value indicating whether the request should return a unique result. - - - - - Drives the activation (injection, etc.) of an instance. - - - - - The activation cache. - - - - - Initializes a new instance of the class. - - The strategies to execute during activation and deactivation. - The activation cache. - - - - Activates the instance in the specified context. - - The context. - The instance reference. - - - - Deactivates the instance in the specified context. - - The context. - The instance reference. - - - - Gets the strategies that contribute to the activation and deactivation processes. - - - - - Describes the request for a service resolution. - - - - - Initializes a new instance of the class. - - The service that was requested. - The constraint that will be applied to filter the bindings used for the request. - The parameters that affect the resolution. - The scope callback, if an external scope was specified. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - - - - Initializes a new instance of the class. - - The parent context. - The service that was requested. - The target that will receive the injection. - The scope callback, if an external scope was specified. - - - - Determines whether the specified binding satisfies the constraints defined on this request. - - The binding. - True if the binding satisfies the constraints; otherwise false. - - - - Gets the scope if one was specified in the request. - - The object that acts as the scope. - - - - Creates a child request. - - The service that is being requested. - The context in which the request was made. - The target that will receive the injection. - The child request. - - - - Gets the service that was requested. - - - - - Gets the parent request. - - - - - Gets the parent context. - - - - - Gets the target that will receive the injection, if any. - - - - - Gets the constraint that will be applied to filter the bindings used for the request. - - - - - Gets the parameters that affect the resolution. - - - - - Gets the stack of bindings which have been activated by either this request or its ancestors. - - - - - Gets the recursive depth at which this request occurs. - - - - - Gets or sets value indicating whether the request is optional. - - - - - Gets or sets value indicating whether the request is for a single service. - - - - - Gets the callback that resolves the scope for the request, if an external scope was provided. - - - - - Defines a constraint on the decorated member. - - - - - Determines whether the specified binding metadata matches the constraint. - - The metadata in question. - True if the metadata matches; otherwise false. - - - - Indicates that the decorated member should be injected. - - - - - Indicates that the decorated member should only be injected using binding(s) registered - with the specified name. - - - - - Initializes a new instance of the class. - - The name of the binding(s) to use. - - - - Determines whether the specified binding metadata matches the constraint. - - The metadata in question. - True if the metadata matches; otherwise false. - - - - Gets the binding name. - - - - - Indicates that the decorated member represents an optional dependency. - - - - - An internal container that manages and resolves components that contribute to Ninject. - - - - - An internal container that manages and resolves components that contribute to Ninject. - - - - - Registers a component in the container. - - The component type. - The component's implementation type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Removes all registrations for the specified component. - - The component's type. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets or sets the kernel that owns the component container. - - - - - Releases resources held by the object. - - - - - Registers a component in the container. - - The component type. - The component's implementation type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets or sets the kernel that owns the component container. - - - - - Provides meaningful exception messages. - - - - - Generates a message saying that modules without names are not supported. - - The exception message. - - - - Generates a message saying that a module with the same name is already loaded. - - The new module. - The existing module. - The exception message. - - - - Generates a message saying that no module has been loaded with the specified name. - - The module name. - The exception message. - - - - Generates a message saying that the binding could not be uniquely resolved. - - The request. - The exception message. - - - - Generates a message saying that the binding could not be resolved on the specified request. - - The request. - The exception message. - - - - Generates a message saying that the specified context has cyclic dependencies. - - The context. - The exception message. - - - - Generates a message saying that an invalid attribute type is used in the binding condition. - - The binding. - Name of the method. - The type. - The exception message. - - - - Generates a message saying that no constructors are available on the specified context. - - The context. - The exception message. - - - - Generates a message saying that no constructors are available for the given component. - - The component. - The implementation. - The exception message. - - - - Generates a message saying that the specified component is not registered. - - The component. - The exception message. - - - - Generates a message saying that the specified property could not be resolved on the specified request. - - The request. - The property name. - The exception message. - - - - Generates a message saying that the provider on the specified context returned null. - - The context. - The exception message. - - - - Provides extension methods for string formatting - - - - - Formats the activation path into a meaningful string representation. - - The request to be formatted. - The activation path formatted as string. - - - - Formats the given binding into a meaningful string representation. - - The binding to be formatted. - The context. - The binding formatted as string - - - - Formats the specified request into a meaningful string representation. - - The request to be formatted. - The request formatted as string. - - - - Formats the specified target into a meaningful string representation.. - - The target to be formatted. - The target formatted as string. - - - - Formats the specified type into a meaningful string representation.. - - The type to be formatted. - The type formatted as string. - - - - Extensions for MemberInfo - - - - - Determines whether the specified member has attribute. - - The type of the attribute. - The member. - - true if the specified member has attribute; otherwise, false. - - - - - Determines whether the specified member has attribute. - - The member. - The type of the attribute. - - true if the specified member has attribute; otherwise, false. - - - - - Gets the property info from its declared tpe. - - The member info. - The property definition. - The flags. - The property info from the declared type of the property. - - - - Determines whether the specified property info is private. - - The property info. - - true if the specified property info is private; otherwise, false. - - - - - Gets the custom attributes. - This version is able to get custom attributes for properties from base types even if the property is none public. - - The member. - Type of the attribute. - if set to true [inherited]. - - - - - Represents a future value. - - The type of value. - - - - Initializes a new instance of the Future<T> class. - - The callback that will be triggered to read the value. - - - - Gets the value from the future. - - The future. - The future value. - - - - Gets the value, resolving it if necessary. - - - - - Gets the callback that will be called to resolve the value. - - - - - Indicates the object has a reference to a . - - - - - Gets the binding. - - - - - Indicates that the object has a reference to an . - - - - - Gets the kernel. - - - - - A data structure that contains multiple values for a each key. - - The type of key. - The type of value. - - - - Adds the specified value for the specified key. - - The key. - The value. - - - - Removes the specified value for the specified key. - - The key. - The value. - True if such a value existed and was removed; otherwise false. - - - - Removes all values for the specified key. - - The key. - True if any such values existed; otherwise false. - - - - Removes all values. - - - - - Determines whether the multimap contains any values for the specified key. - - The key. - True if the multimap has one or more values for the specified key; otherwise, false. - - - - Determines whether the multimap contains the specified value for the specified key. - - The key. - The value. - True if the multimap contains such a value; otherwise, false. - - - - Returns an enumerator that iterates through a the multimap. - - An object that can be used to iterate through the multimap. - - - - Gets the collection of values stored under the specified key. - - The key. - - - - Gets the collection of keys. - - - - - Gets the collection of collections of values. - - - - - Weak reference that can be used in collections. It is equal to the - object it references and has the same hash code. - - - - - Initializes a new instance of the class. - - The target. - - - - Initializes a new instance of the class. - - The target. - if set to true [track resurrection]. - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - The parameter is null. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Gets a value indicating whether this instance is alive. - - true if this instance is alive; otherwise, false. - - - - Gets or sets the target of this weak reference. - - The targe of this weak reference. - - - - Defines the style of request (single or multi-injection, whether it is optional, etc.) - - - - - Indicates a request for a single instance of a service. - - - - - Indicates a request for multiple instances of a service. - - - - - Indicates that null should be returned (instead of throwing) if the service cannot be resolved. - - - - - Scope callbacks for standard scopes. - - - - - Gets the callback for transient scope. - - - - - Gets the callback for singleton scope. - - - - - Gets the callback for thread scope. - - - - - A delegate that can inject values into a constructor. - - - - - Creates injectors from members. - - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - A delegate that can inject values into a method. - - - - - A delegate that can inject values into a property. - - - - - Creates injectors from members via reflective invocation. - - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - A pluggable unit that can be loaded into an . - - - - - Called when the module is loaded into a kernel. - - The kernel that is loading the module. - - - - Called when the module is unloaded from a kernel. - - The kernel that is unloading the module. - - - - Gets the module's name. - - - - - A loadable unit that defines bindings for your application. - - - - - Provides a path to register bindings. - - - - - Provides a path to register bindings. - - - - - Declares a binding for the specified service. - - The service to bind. - - - - Declares a binding from the service to itself. - - The service to bind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Declares a binding for the specified service. - - The service to bind. - - - - Declares a binding for the specified service. - - The service to bind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Initializes a new instance of the class. - - - - - Called when the module is loaded into a kernel. - - The kernel that is loading the module. - - - - Called when the module is unloaded from a kernel. - - The kernel that is unloading the module. - - - - Loads the module into the kernel. - - - - - Unloads the module from the kernel. - - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Gets the kernel that the module is loaded into. - - - - - Gets the module's name. Only a single module with a given name can be loaded at one time. - - - - - Gets the bindings that were registered by the module. - - - - - Overrides the injected value of a constructor argument. - - - - - Modifies an activation process in some way. - - - - - Modifies an activation process in some way. - - - - - Gets the value for the parameter within the specified context. - - The context. - The target. - The value for the parameter. - - - - Gets the name of the parameter. - - - - - Gets a value indicating whether the parameter should be inherited into child requests. - - - - - Initializes a new instance of the class. - - The name of the parameter. - The value of the parameter. - Whether the parameter should be inherited into child requests. - - - - Initializes a new instance of the class. - - The name of the parameter. - The callback that will be triggered to get the parameter's value. - Whether the parameter should be inherited into child requests. - - - - Initializes a new instance of the class. - - The name of the parameter. - The callback that will be triggered to get the parameter's value. - Whether the parameter should be inherited into child requests. - - - - Gets the value for the parameter within the specified context. - - The context. - The target. - The value for the parameter. - - - - Determines whether the object equals the specified object. - - An object to compare with this object. - True if the objects are equal; otherwise false - - - - Serves as a hash function for a particular type. - - A hash code for the object. - - - - Indicates whether the current object is equal to another object of the same type. - - An object to compare with this object. - True if the objects are equal; otherwise false - - - - Gets the name of the parameter. - - - - - Gets a value indicating whether the parameter should be inherited into child requests. - - - - - Gets or sets the callback that will be triggered to get the parameter's value. - - - - - Initializes a new instance of the class. - - The name of the argument to override. - The value to inject into the property. - - - - Initializes a new instance of the class. - - The name of the argument to override. - The callback to invoke to get the value that should be injected. - - - - Initializes a new instance of the class. - - The name of the argument to override. - The callback to invoke to get the value that should be injected. - - - - Overrides the injected value of a property. - - - - - Initializes a new instance of the class. - - The name of the property to override. - The value to inject into the property. - - - - Initializes a new instance of the class. - - The name of the property to override. - The callback to invoke to get the value that should be injected. - - - - Initializes a new instance of the class. - - The name of the property to override. - The callback to invoke to get the value that should be injected. - - - - Contains logic about which bindings to use for a given service request. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Contains logic about which bindings to use for a given service request - when other attempts have failed. - - - - - Returns any bindings from the specified collection that match the specified request. - - The multimap of all registered bindings. - The request in question. - The series of matching bindings. - - - - Resolves bindings for open generic types. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Returns a value indicating whether the specified service is self-bindable. - - The service. - if the type is self-bindable; otherwise . - - - - Resolves bindings that have been registered directly for the service. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Contains information about a service registration. - - - - - Contains information about a service registration. - - - - - Gets the provider for the binding. - - The context. - The provider to use. - - - - Gets the scope for the binding, if any. - - The context. - The object that will act as the scope, or if the service is transient. - - - - Determines whether the specified request satisfies the condition defined on the binding, - if one was defined. - - The request. - True if the request satisfies the condition; otherwise false. - - - - Gets the service type that is controlled by the binding. - - - - - Gets the binding's metadata. - - - - - Gets or sets the type of target for the binding. - - - - - Gets or sets a value indicating whether the binding was implicitly registered. - - - - - Gets a value indicating whether the binding has a condition associated with it. - - - - - Gets or sets the condition defined for the binding. - - - - - Gets or sets the callback that returns the provider that should be used by the binding. - - - - - Gets or sets the callback that returns the object that will act as the binding's scope. - - - - - Gets the parameters defined for the binding. - - - - - Gets the actions that should be called after instances are activated via the binding. - - - - - Gets the actions that should be called before instances are deactivated via the binding. - - - - - Initializes a new instance of the class. - - The service that is controlled by the binding. - - - - Initializes a new instance of the class. - - The service that is controlled by the binding. - The binding's metadata container. - - - - Gets the provider for the binding. - - The context. - The provider to use. - - - - Gets the scope for the binding, if any. - - The context. - The object that will act as the scope, or if the service is transient. - - - - Determines whether the specified request satisfies the conditions defined on this binding. - - The request. - True if the request satisfies the conditions; otherwise false. - - - - Gets the service type that is controlled by the binding. - - - - - Gets the binding's metadata. - - - - - Gets or sets a value indicating whether the binding was implicitly registered. - - - - - Gets a value indicating whether the binding has a condition associated with it. - - - - - Gets or sets the type of target for the binding. - - - - - Gets or sets the condition defined for the binding. - - - - - Gets or sets the callback that returns the provider that should be used by the binding. - - - - - Gets or sets the callback that returns the object that will act as the binding's scope. - - - - - Gets the parameters defined for the binding. - - - - - Gets the actions that should be called after instances are activated via the binding. - - - - - Gets the actions that should be called before instances are deactivated via the binding. - - - - - Provides a root for the fluent syntax associated with an . - - - - - Used to define the target of a binding. - - The service being bound. - - - - Used to define a basic binding syntax builder. - - - - - A hack to hide methods defined on for IntelliSense - on fluent interfaces. Credit to Daniel Cazzulino. - - - - - - - - - - - - - - - - - Indicates that the service should be self-bound. - - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to the specified provider. - - The provider. - - - - Indicates that the service should be bound to the specified callback method. - - The method. - - - - Indicates that the service should be bound to the specified constant value. - - The constant value. - - - - Used to set the condition, scope, name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to define the conditions under which a binding should be used. - - The service being bound. - - - - Indicates that the binding should be used only for requests that support the specified condition. - - The condition. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the service is being requested - by a service bound with the specified name. - - The name to expect. - - - - Used to define the scope in which instances activated via a binding should be re-used. - - The service being bound. - - - - Indicates that only a single instance of the binding should be created, and then - should be re-used for all subsequent requests. - - - - - Indicates that instances activated via the binding should not be re-used, nor have - their lifecycle managed by Ninject. - - - - - Indicates that instances activated via the binding should be re-used within the same thread. - - - - - Indicates that instances activated via the binding should be re-used as long as the object - returned by the provided callback remains alive (that is, has not been garbage collected). - - The callback that returns the scope. - - - - Used to define the name of a binding. - - The service being bound. - - - - Indicates that the binding should be registered with the specified name. Names are not - necessarily unique; multiple bindings for a given service may be registered with the same name. - - The name to give the binding. - - - - Used to add additional information to a binding. - - The service being bound. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Adds a custom parameter to the binding. - - The parameter. - - - - Sets the value of a piece of metadata on the binding. - - The metadata key. - The metadata value. - - - - Used to add additional actions to be performed during activation or deactivation of instances via a binding. - - The service being bound. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Used to set the scope, name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to set the name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to add additional information or actions to a binding. - - The service being bound. - - - - Initializes a new instance of the BindingBuilder<T> class. - - The binding to build. - The kernel. - - - - Indicates that the service should be self-bound. - - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to the specified provider. - - The provider. - - - - Indicates that the service should be bound to the specified callback method. - - The method. - - - - Indicates that the service should be bound to the specified constant value. - - The constant value. - - - - Indicates that the binding should be used only for requests that support the specified condition. - - The condition. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the service is being requested - by a service bound with the specified name. - - The name to expect. - - - - Indicates that the binding should be registered with the specified name. Names are not - necessarily unique; multiple bindings for a given service may be registered with the same name. - - The name to give the binding. - - - - Indicates that only a single instance of the binding should be created, and then - should be re-used for all subsequent requests. - - - - - Indicates that instances activated via the binding should not be re-used, nor have - their lifecycle managed by Ninject. - - - - - Indicates that instances activated via the binding should be re-used within the same thread. - - - - - Indicates that instances activated via the binding should be re-used as long as the object - returned by the provided callback remains alive (that is, has not been garbage collected). - - The callback that returns the scope. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Adds a custom parameter to the binding. - - The parameter. - - - - Sets the value of a piece of metadata on the binding. - - The metadata key. - The metadata value. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Provides a root for the fluent syntax associated with an . - - - - - Gets the binding being built. - - - - - Gets the kernel. - - - - - Additional information available about a binding, which can be used in constraints - to select bindings to use in activation. - - - - - Additional information available about a binding, which can be used in constraints - to select bindings to use in activation. - - - - - Determines whether a piece of metadata with the specified key has been defined. - - The metadata key. - True if such a piece of metadata exists; otherwise, false. - - - - Gets the value of metadata defined with the specified key, cast to the specified type. - - The type of value to expect. - The metadata key. - The metadata value. - - - - Gets the value of metadata defined with the specified key. - - The metadata key. - The value to return if the binding has no metadata set with the specified key. - The metadata value, or the default value if none was set. - - - - Sets the value of a piece of metadata. - - The metadata key. - The metadata value. - - - - Gets or sets the binding's name. - - - - - Determines whether a piece of metadata with the specified key has been defined. - - The metadata key. - True if such a piece of metadata exists; otherwise, false. - - - - Gets the value of metadata defined with the specified key, cast to the specified type. - - The type of value to expect. - The metadata key. - The metadata value. - - - - Gets the value of metadata defined with the specified key. - - The metadata key. - The value to return if the binding has no metadata set with the specified key. - The metadata value, or the default value if none was set. - - - - Sets the value of a piece of metadata. - - The metadata key. - The metadata value. - - - - Gets or sets the binding's name. - - - - - Describes the target of a binding. - - - - - Indicates that the binding is from a type to itself. - - - - - Indicates that the binding is from one type to another. - - - - - Indicates that the binding is from a type to a provider. - - - - - Indicates that the binding is from a type to a callback method. - - - - - Indicates that the binding is from a type to a constant value. - - - - - Describes the injection of a constructor. - - - - - Describes the injection of a method or constructor. - - - - - A piece of information used in an . (Just a marker.) - - - - - Initializes a new instance of the MethodInjectionDirectiveBase<TMethod, TInjector> class. - - The method this directive represents. - The injector that will be triggered. - - - - Creates targets for the parameters of the method. - - The method. - The targets for the method's parameters. - - - - Gets or sets the injector that will be triggered. - - - - - Gets or sets the targets for the directive. - - - - - Initializes a new instance of the class. - - The constructor described by the directive. - The injector that will be triggered. - - - - The base .ctor definition. - - - - - Describes the injection of a method. - - - - - Initializes a new instance of the class. - - The method described by the directive. - The injector that will be triggered. - - - - Describes the injection of a property. - - - - - Initializes a new instance of the class. - - The member the directive describes. - The injector that will be triggered. - - - - Creates a target for the property. - - The property. - The target for the property. - - - - Gets or sets the injector that will be triggered. - - - - - Gets or sets the injection target for the directive. - - - - - Adds a directive to plans indicating which constructor should be injected during activation. - - - - - Contributes to the generation of a . - - - - - Contributes to the specified plan. - - The plan that is being generated. - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for the constructor - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Adds directives to plans indicating which methods should be injected during activation. - - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for each method - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Adds directives to plans indicating which properties should be injected during activation. - - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for each property - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Represents a site on a type where a value will be injected. - - - - - Resolves a value for the target within the specified parent context. - - The parent context. - The resolved value. - - - - Gets the type of the target. - - - - - Gets the name of the target. - - - - - Gets the member that contains the target. - - - - - Gets the constraint defined on the target. - - - - - Gets a value indicating whether the target represents an optional dependency. - - - - - Represents an injection target for a . - - - - - Represents a site on a type where a value can be injected. - - The type of site this represents. - - - - Initializes a new instance of the Target<T> class. - - The member that contains the target. - The site represented by the target. - - - - Returns an array of custom attributes of a specified type defined on the target. - - The type of attribute to search for. - Whether to look up the hierarchy chain for inherited custom attributes. - An array of custom attributes of the specified type. - - - - Returns an array of custom attributes defined on the target. - - Whether to look up the hierarchy chain for inherited custom attributes. - An array of custom attributes. - - - - Returns a value indicating whether an attribute of the specified type is defined on the target. - - The type of attribute to search for. - Whether to look up the hierarchy chain for inherited custom attributes. - True if such an attribute is defined; otherwise false. - - - - Resolves a value for the target within the specified parent context. - - The parent context. - The resolved value. - - - - Gets the value(s) that should be injected into the target. - - The service that the target is requesting. - The parent context in which the target is being injected. - A series of values that are available for injection. - - - - Gets the value that should be injected into the target. - - The service that the target is requesting. - The parent context in which the target is being injected. - The value that is to be injected. - - - - Reads whether the target represents an optional dependency. - - if it is optional; otherwise . - - - - Reads the resolution constraint from target. - - The resolution constraint. - - - - Gets the member that contains the target. - - - - - Gets or sets the site (property, parameter, etc.) represented by the target. - - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Gets the constraint defined on the target. - - - - - Gets a value indicating whether the target represents an optional dependency. - - - - - Initializes a new instance of the class. - - The method that defines the parameter. - The parameter that this target represents. - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Represents an injection target for a . - - - - - Initializes a new instance of the class. - - The property that this target represents. - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Describes the means by which a type should be activated. - - - - - Adds the specified directive to the plan. - - The directive. - - - - Determines whether the plan contains one or more directives of the specified type. - - The type of directive. - True if the plan has one or more directives of the type; otherwise, false. - - - - Gets the first directive of the specified type from the plan. - - The type of directive. - The first directive, or if no matching directives exist. - - - - Gets all directives of the specified type that exist in the plan. - - The type of directive. - A series of directives of the specified type. - - - - Gets the type that the plan describes. - - - - - Generates plans for how to activate instances. - - - - - Gets or creates an activation plan for the specified type. - - The type for which a plan should be created. - The type's activation plan. - - - - Gets the strategies that contribute to the planning process. - - - - - Describes the means by which a type should be activated. - - - - - Initializes a new instance of the class. - - The type the plan describes. - - - - Adds the specified directive to the plan. - - The directive. - - - - Determines whether the plan contains one or more directives of the specified type. - - The type of directive. - True if the plan has one or more directives of the type; otherwise, false. - - - - Gets the first directive of the specified type from the plan. - - The type of directive. - The first directive, or if no matching directives exist. - - - - Gets all directives of the specified type that exist in the plan. - - The type of directive. - A series of directives of the specified type. - - - - Gets the type that the plan describes. - - - - - Gets the directives defined in the plan. - - - - - Generates plans for how to activate instances. - - - - - Initializes a new instance of the class. - - The strategies to execute during planning. - - - - Gets or creates an activation plan for the specified type. - - The type for which a plan should be created. - The type's activation plan. - - - - Creates an empty plan for the specified type. - - The type for which a plan should be created. - The created plan. - - - - Gets the strategies that contribute to the planning process. - - - - - Generates scores for constructors, to determine which is the best one to call during activation. - - - - - Gets the score for the specified constructor. - - The injection context. - The constructor. - The constructor's score. - - - - Determines whether members should be injected during activation. - - - - - Returns a value indicating whether the specified member should be injected. - - The member in question. - True if the member should be injected; otherwise false. - - - - Scores constructors by either looking for the existence of an injection marker - attribute, or by counting the number of parameters. - - - - - Gets the score for the specified constructor. - - The injection context. - The constructor. - The constructor's score. - - - - Determines whether members should be injected during activation by checking - if they are decorated with an injection marker attribute. - - - - - Returns a value indicating whether the specified member should be injected. - - The member in question. - True if the member should be injected; otherwise false. - - - - Selects members for injection. - - - - - Selects the constructor to call on the specified type, by using the constructor scorer. - - The type. - The selected constructor, or if none were available. - - - - Selects properties that should be injected. - - The type. - A series of the selected properties. - - - - Selects methods that should be injected. - - The type. - A series of the selected methods. - - - - Gets or sets the constructor scorer. - - - - - Gets the heuristics used to determine which members should be injected. - - - - - Selects members for injection. - - - - - Initializes a new instance of the class. - - The constructor scorer. - The injection heuristics. - - - - Selects the constructor to call on the specified type, by using the constructor scorer. - - The type. - The selected constructor, or if none were available. - - - - Selects properties that should be injected. - - The type. - A series of the selected properties. - - - - Selects methods that should be injected. - - The type. - A series of the selected methods. - - - - Gets or sets the constructor scorer. - - - - - Gets the property injection heuristics. - - - - - Extension methods that enhance module loading. - - - - - Creates a new instance of the module and loads it into the kernel. - - The type of the module. - The kernel. - - - - Loads the module(s) into the kernel. - - The kernel. - The modules to load. - - - - Extensions that enhance resolution of services. - - - - - Gets an instance of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding that matches the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service. - - - - Tries to get an instance of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding that matches the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Gets all available instances of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service using bindings registered with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service by using the bindings that match the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the bindings. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets an instance of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding that matches the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service. - - - - Tries to get an instance of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding that matches the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Gets all available instances of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service using bindings registered with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service by using the bindings that match the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the bindings. - The parameters to pass to the request. - A series of instances of the service. - - - - Indicates that an error occured during activation of an instance. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The exception message. - - - - Initializes a new instance of the class. - - The exception message. - The inner exception. - - - - A service that requires initialization after it is activated. - - - - - Initializes the instance. Called during activation. - - - - - A super-factory that can create objects of all kinds, following hints provided by s. - - - - - Gets the modules that have been loaded into the kernel. - - A series of loaded modules. - - - - Determines whether a module with the specified name has been loaded in the kernel. - - The name of the module. - True if the specified module has been loaded; otherwise, false. - - - - Loads the module(s) into the kernel. - - The modules to load. - - - - Unloads the plugin with the specified name. - - The plugin's name. - - - - Injects the specified existing instance, without managing its lifecycle. - - The instance to inject. - The parameters to pass to the request. - - - - Deactivates and releases the specified instance if it is currently managed by Ninject. - - The instance to release. - if the instance was found and released; otherwise . - - - - Gets the bindings registered for the specified service. - - The service in question. - A series of bindings that are registered for the service. - - - - Begins a new activation block, which can be used to deterministically dispose resolved instances. - - The new activation block. - - - - Gets the kernel settings. - - - - - Gets the component container, which holds components that contribute to Ninject. - - - - - Contains configuration options for Ninject. - - - - - Gets the value for the specified key. - - The type of value to return. - The setting's key. - The value to return if no setting is available. - The value, or the default value if none was found. - - - - Sets the value for the specified key. - - The setting's key. - The setting's value. - - - - Gets the attribute that indicates that a member should be injected. - - - - - Gets the interval at which the cache should be pruned. - - - - - Gets or sets a value indicating whether the activation cache is disabled. - If the activation cache is disabled less memory is used. But in some cases - instances are activated or deactivated multiple times. e.g. in the following scenario: - Bind{A}().ToSelf(); - Bind{IA}().ToMethod(ctx => kernel.Get{IA}(); - - - true if activation cache is disabled; otherwise, false. - - - - - Gets or sets a value indicating whether Null is a valid value for injection. - By defualt this is disabled and whenever a provider returns null an eception is thrown. - - true if null is allowed as injected value otherwise false. - - - - A service that is started when activated, and stopped when deactivated. - - - - - Starts this instance. Called during activation. - - - - - Stops this instance. Called during deactivation. - - - - - The base implementation of an . - - - - - Lock used when adding missing bindings. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The configuration to use. - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The component container to use. - The configuration to use. - The modules to load into the kernel. - - - - Releases resources held by the object. - - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Determines whether a module with the specified name has been loaded in the kernel. - - The name of the module. - True if the specified module has been loaded; otherwise, false. - - - - Gets the modules that have been loaded into the kernel. - - A series of loaded modules. - - - - Loads the module(s) into the kernel. - - The modules to load. - - - - Unloads the plugin with the specified name. - - The plugin's name. - - - - Injects the specified existing instance, without managing its lifecycle. - - The instance to inject. - The parameters to pass to the request. - - - - Deactivates and releases the specified instance if it is currently managed by Ninject. - - The instance to release. - if the instance was found and released; otherwise . - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - Begins a new activation block, which can be used to deterministically dispose resolved instances. - - The new activation block. - - - - Gets the bindings registered for the specified service. - - The service in question. - A series of bindings that are registered for the service. - - - - Returns an IComparer that is used to determine resolution precedence. - - An IComparer that is used to determine resolution precedence. - - - - Returns a predicate that can determine if a given IBinding matches the request. - - The request/ - A predicate that can determine if a given IBinding matches the request. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Adds components to the kernel during startup. - - - - - Attempts to handle a missing binding for a service. - - The service. - True if the missing binding can be handled; otherwise false. - - - - Attempts to handle a missing binding for a request. - - The request. - True if the missing binding can be handled; otherwise false. - - - - Returns a value indicating whether the specified service is self-bindable. - - The service. - if the type is self-bindable; otherwise . - - - - Creates a context for the specified request and binding. - - The request. - The binding. - The created context. - - - - Gets the kernel settings. - - - - - Gets the component container, which holds components that contribute to Ninject. - - - - - Contains configuration options for Ninject. - - - - - Gets the value for the specified key. - - The type of value to return. - The setting's key. - The value to return if no setting is available. - The value, or the default value if none was found. - - - - Sets the value for the specified key. - - The setting's key. - The setting's value. - - - - Gets or sets the attribute that indicates that a member should be injected. - - - - - Gets or sets the interval at which the GC should be polled. - - - - - Gets or sets a value indicating whether the activation cache is disabled. - If the activation cache is disabled less memory is used. But in some cases - instances are activated or deactivated multiple times. e.g. in the following scenario: - Bind{A}().ToSelf(); - Bind{IA}().ToMethod(ctx => kernel.Get{IA}(); - - - true if activation cache is disabled; otherwise, false. - - - - - Gets or sets a value indicating whether Null is a valid value for injection. - By defualt this is disabled and whenever a provider returns null an eception is thrown. - - - true if null is allowed as injected value otherwise false. - - - - - The standard implementation of a kernel. - - - - - Initializes a new instance of the class. - - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The configuration to use. - The modules to load into the kernel. - - - - Adds components to the kernel during startup. - - - - diff --git a/packages/Ninject.2.2.1.4/lib/sl3/Ninject.dll b/packages/Ninject.2.2.1.4/lib/sl3/Ninject.dll deleted file mode 100644 index be215dd..0000000 Binary files a/packages/Ninject.2.2.1.4/lib/sl3/Ninject.dll and /dev/null differ diff --git a/packages/Ninject.2.2.1.4/lib/sl3/Ninject.pdb b/packages/Ninject.2.2.1.4/lib/sl3/Ninject.pdb deleted file mode 100644 index 565434c..0000000 Binary files a/packages/Ninject.2.2.1.4/lib/sl3/Ninject.pdb and /dev/null differ diff --git a/packages/Ninject.2.2.1.4/lib/sl3/Ninject.xml b/packages/Ninject.2.2.1.4/lib/sl3/Ninject.xml deleted file mode 100644 index 72c0882..0000000 --- a/packages/Ninject.2.2.1.4/lib/sl3/Ninject.xml +++ /dev/null @@ -1,4477 +0,0 @@ - - - - Ninject - - - - - A block used for deterministic disposal of activated instances. When the block is - disposed, all instances activated via it will be deactivated. - - - - - An object that notifies when it is disposed. - - - - - An object that can report whether or not it is disposed. - - - - - Gets a value indicating whether this instance is disposed. - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Releases resources held by the object. - - - - - Releases resources before the object is reclaimed by garbage collection. - - - - - Gets a value indicating whether this instance is disposed. - - - - - A block used for deterministic disposal of activated instances. When the block is - disposed, all instances activated via it will be deactivated. - - - - - Provides a path to resolve instances. - - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - An object that fires an event when it is disposed. - - - - - Occurs when the object is disposed. - - - - - Initializes a new instance of the class. - - The parent resolution root. - - - - Releases resources held by the object. - - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - Gets or sets the parent resolution root (usually the kernel). - - - - - Occurs when the object is disposed. - - - - - Stores the objects that were activated - - - - - A component that contributes to the internals of Ninject. - - - - - A component that contributes to the internals of Ninject. - - - - - Gets or sets the settings. - - - - - Gets or sets the settings. - - - - - Stores the objects that were activated - - - - - Clears the cache. - - - - - Adds an activated instance. - - The instance to be added. - - - - Adds an deactivated instance. - - The instance to be added. - - - - Determines whether the specified instance is activated. - - The instance. - - true if the specified instance is activated; otherwise, false. - - - - - Determines whether the specified instance is deactivated. - - The instance. - - true if the specified instance is deactivated; otherwise, false. - - - - - An object that is prunealble. - - - - - Removes instances from the cache which should no longer be re-used. - - - - - The objects that were activated as reference equal weak references. - - - - - The objects that were activated as reference equal weak references. - - - - - Initializes a new instance of the class. - - The cache pruner. - - - - Clears the cache. - - - - - Adds an activated instance. - - The instance to be added. - - - - Adds an deactivated instance. - - The instance to be added. - - - - Determines whether the specified instance is activated. - - The instance. - - true if the specified instance is activated; otherwise, false. - - - - - Determines whether the specified instance is deactivated. - - The instance. - - true if the specified instance is deactivated; otherwise, false. - - - - - Prunes this instance. - - - - - Removes all dead objects. - - The objects collection to be freed of dead objects. - - - - Gets the activated object count. - - The activated object count. - - - - Gets the deactivated object count. - - The deactivated object count. - - - - Tracks instances for re-use in certain scopes. - - - - - Tracks instances for re-use in certain scopes. - - - - - Stores the specified instance in the cache. - - The context to store. - The instance reference. - - - - Tries to retrieve an instance to re-use in the specified context. - - The context that is being activated. - The instance for re-use, or if none has been stored. - - - - Deactivates and releases the specified instance from the cache. - - The instance to release. - if the instance was found and released; otherwise . - - - - Immediately deactivates and removes all instances in the cache that are owned by - the specified scope. - - The scope whose instances should be deactivated. - - - - Immediately deactivates and removes all instances in the cache, regardless of scope. - - - - - Gets the number of entries currently stored in the cache. - - - - - Contains all cached instances. - This is a dictionary of scopes to a multimap for bindings to cache entries. - - - - - Initializes a new instance of the class. - - The pipeline component. - The cache pruner component. - - - - Releases resources held by the object. - - - - - - Stores the specified context in the cache. - - The context to store. - The instance reference. - - - - Tries to retrieve an instance to re-use in the specified context. - - The context that is being activated. - The instance for re-use, or if none has been stored. - - - - Deactivates and releases the specified instance from the cache. - - The instance to release. - if the instance was found and released; otherwise . - - - - Removes instances from the cache which should no longer be re-used. - - - - - Immediately deactivates and removes all instances in the cache that are owned by - the specified scope. - - The scope whose instances should be deactivated. - - - - Immediately deactivates and removes all instances in the cache, regardless of scope. - - - - - Gets all entries for a binding withing the selected scope. - - The bindings. - All bindings of a binding. - - - - Gets all cache entries. - - Returns all cache entries. - - - - Forgets the specified cache entries. - - The cache entries. - - - - Forgets the specified entry. - - The entry. - - - - Gets the pipeline component. - - - - - Gets the number of entries currently stored in the cache. - - - - - An entry in the cache. - - - - - Initializes a new instance of the class. - - The context. - The instance reference. - - - - Gets the context of the instance. - - The context. - - - - Gets the instance reference. - - The instance reference. - - - - Uses a and some magic to poll - the garbage collector to see if it has run. - - - - - Prunes instances from an based on environmental information. - - - - - Starts pruning the specified cache based on the rules of the pruner. - - The cache that will be pruned. - - - - Stops pruning. - - - - - The caches that are being pruned. - - - - - Releases resources held by the object. - - - - - Starts pruning the specified pruneable based on the rules of the pruner. - - The pruneable that will be pruned. - - - - Stops pruning. - - - - - A provider that delegates to a callback method to create instances. - - The type of instances the provider creates. - - - - A simple abstract provider for instances of a specific type. - - The type of instances the provider creates. - - - - Creates instances of services. - - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Initializes a new instance of the CallbackProvider<T> class. - - The callback method that will be called to create instances. - - - - Invokes the callback method to create an instance. - - The context. - The created instance. - - - - Gets the callback method used by the provider. - - - - - A provider that always returns the same constant value. - - The type of value that is returned. - - - - Initializes a new instance of the ConstantProvider<T> class. - - The value that the provider should return. - - - - Creates an instance within the specified context. - - The context. - The constant value this provider returns. - - - - Gets the value that the provider will return. - - - - - The standard provider for types, which activates instances via a . - - - - - Initializes a new instance of the class. - - The type (or prototype) of instances the provider creates. - The planner component. - The selector component. - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the value to inject into the specified target. - - The context. - The target. - The value to inject into the specified target. - - - - Gets the implementation type that the provider will activate an instance of - for the specified service. - - The service in question. - The implementation type that will be activated. - - - - Gets a callback that creates an instance of the - for the specified type. - - The prototype the provider instance will create. - The created callback. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Gets or sets the planner component. - - - - - Gets or sets the selector component. - - - - - Adds all activated instances to the activation cache. - - - - - Contributes to a , and is called during the activation - and deactivation of an instance. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - The activation cache. - - - - - Initializes a new instance of the class. - - The activation cache. - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - Gets or sets the settings. - - The ninject settings. - - - - Contributes to a , and is called during the activation - and deactivation of an instance. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - Executes actions defined on the binding during activation and deactivation. - - - - - Calls the activation actions defined on the binding. - - The context. - A reference to the instance being activated. - - - - Calls the deactivation actions defined on the binding. - - The context. - A reference to the instance being deactivated. - - - - During deactivation, disposes instances that implement . - - - - - Disposes the specified instance. - - The context. - A reference to the instance being deactivated. - - - - During activation, initializes instances that implement . - - - - - Initializes the specified instance. - - The context. - A reference to the instance being activated. - - - - Injects methods on an instance during activation. - - - - - Injects values into the properties as described by s - contained in the plan. - - The context. - A reference to the instance being activated. - - - - Injects properties on an instance during activation. - - - - - Initializes a new instance of the class. - - The injector factory component. - - - - Injects values into the properties as described by s - contained in the plan. - - The context. - A reference to the instance being activated. - - - - Applies user supplied override values to instance properties. - - The context. - A reference to the instance being activated. - The parameter ovverride value accessors. - - - - Gets the value to inject into the specified target. - - The context. - The target. - The value to inject into the specified target. - - - - Gets the injector factory component. - - - - - Starts instances that implement during activation, - and stops them during deactivation. - - - - - Starts the specified instance. - - The context. - A reference to the instance being activated. - - - - Stops the specified instance. - - The context. - A reference to the instance being deactivated. - - - - Contains information about the activation of a single instance. - - - - - Contains information about the activation of a single instance. - - - - - Gets the provider that should be used to create the instance for this context. - - The provider that should be used. - - - - Gets the scope for the context that "owns" the instance activated therein. - - The object that acts as the scope. - - - - Resolves this instance for this context. - - The resolved instance. - - - - Gets the kernel that is driving the activation. - - - - - Gets the request. - - - - - Gets the binding. - - - - - Gets or sets the activation plan. - - - - - Gets the parameters that were passed to manipulate the activation process. - - - - - Gets the generic arguments for the request, if any. - - - - - Gets a value indicating whether the request involves inferred generic arguments. - - - - - Initializes a new instance of the class. - - The kernel managing the resolution. - The context's request. - The context's binding. - The cache component. - The planner component. - The pipeline component. - - - - Gets the scope for the context that "owns" the instance activated therein. - - The object that acts as the scope. - - - - Gets the provider that should be used to create the instance for this context. - - The provider that should be used. - - - - Resolves the instance associated with this hook. - - The resolved instance. - - - - Gets the kernel that is driving the activation. - - - - - Gets the request. - - - - - Gets the binding. - - - - - Gets or sets the activation plan. - - - - - Gets the parameters that were passed to manipulate the activation process. - - - - - Gets the generic arguments for the request, if any. - - - - - Gets a value indicating whether the request involves inferred generic arguments. - - - - - Gets or sets the cache component. - - - - - Gets or sets the planner component. - - - - - Gets or sets the pipeline component. - - - - - Holds an instance during activation or after it has been cached. - - - - - Returns a value indicating whether the instance is of the specified type. - - The type in question. - if the instance is of the specified type, otherwise . - - - - Returns the instance as the specified type. - - The requested type. - The instance. - - - - Executes the specified action if the instance if of the specified type. - - The type in question. - The action to execute. - - - - Gets or sets the instance. - - - - - Drives the activation (injection, etc.) of an instance. - - - - - Activates the instance in the specified context. - - The context. - The instance reference. - - - - Deactivates the instance in the specified context. - - The context. - The instance reference. - - - - Gets the strategies that contribute to the activation and deactivation processes. - - - - - Describes the request for a service resolution. - - - - - Determines whether the specified binding satisfies the constraint defined on this request. - - The binding. - True if the binding satisfies the constraint; otherwise false. - - - - Gets the scope if one was specified in the request. - - The object that acts as the scope. - - - - Creates a child request. - - The service that is being requested. - The context in which the request was made. - The target that will receive the injection. - The child request. - - - - Gets the service that was requested. - - - - - Gets the parent request. - - - - - Gets the parent context. - - - - - Gets the target that will receive the injection, if any. - - - - - Gets the constraint that will be applied to filter the bindings used for the request. - - - - - Gets the parameters that affect the resolution. - - - - - Gets the stack of bindings which have been activated by either this request or its ancestors. - - - - - Gets the recursive depth at which this request occurs. - - - - - Gets or sets value indicating whether the request is optional. - - - - - Gets or sets value indicating whether the request should return a unique result. - - - - - Drives the activation (injection, etc.) of an instance. - - - - - The activation cache. - - - - - Initializes a new instance of the class. - - The strategies to execute during activation and deactivation. - The activation cache. - - - - Activates the instance in the specified context. - - The context. - The instance reference. - - - - Deactivates the instance in the specified context. - - The context. - The instance reference. - - - - Gets the strategies that contribute to the activation and deactivation processes. - - - - - Describes the request for a service resolution. - - - - - Initializes a new instance of the class. - - The service that was requested. - The constraint that will be applied to filter the bindings used for the request. - The parameters that affect the resolution. - The scope callback, if an external scope was specified. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - - - - Initializes a new instance of the class. - - The parent context. - The service that was requested. - The target that will receive the injection. - The scope callback, if an external scope was specified. - - - - Determines whether the specified binding satisfies the constraints defined on this request. - - The binding. - True if the binding satisfies the constraints; otherwise false. - - - - Gets the scope if one was specified in the request. - - The object that acts as the scope. - - - - Creates a child request. - - The service that is being requested. - The context in which the request was made. - The target that will receive the injection. - The child request. - - - - Gets the service that was requested. - - - - - Gets the parent request. - - - - - Gets the parent context. - - - - - Gets the target that will receive the injection, if any. - - - - - Gets the constraint that will be applied to filter the bindings used for the request. - - - - - Gets the parameters that affect the resolution. - - - - - Gets the stack of bindings which have been activated by either this request or its ancestors. - - - - - Gets the recursive depth at which this request occurs. - - - - - Gets or sets value indicating whether the request is optional. - - - - - Gets or sets value indicating whether the request is for a single service. - - - - - Gets the callback that resolves the scope for the request, if an external scope was provided. - - - - - Defines a constraint on the decorated member. - - - - - Determines whether the specified binding metadata matches the constraint. - - The metadata in question. - True if the metadata matches; otherwise false. - - - - Indicates that the decorated member should be injected. - - - - - Indicates that the decorated member should only be injected using binding(s) registered - with the specified name. - - - - - Initializes a new instance of the class. - - The name of the binding(s) to use. - - - - Determines whether the specified binding metadata matches the constraint. - - The metadata in question. - True if the metadata matches; otherwise false. - - - - Gets the binding name. - - - - - Indicates that the decorated member represents an optional dependency. - - - - - An internal container that manages and resolves components that contribute to Ninject. - - - - - An internal container that manages and resolves components that contribute to Ninject. - - - - - Registers a component in the container. - - The component type. - The component's implementation type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Removes all registrations for the specified component. - - The component's type. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets or sets the kernel that owns the component container. - - - - - Releases resources held by the object. - - - - - Registers a component in the container. - - The component type. - The component's implementation type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets or sets the kernel that owns the component container. - - - - - Provides meaningful exception messages. - - - - - Generates a message saying that modules without names are not supported. - - The exception message. - - - - Generates a message saying that a module with the same name is already loaded. - - The new module. - The existing module. - The exception message. - - - - Generates a message saying that no module has been loaded with the specified name. - - The module name. - The exception message. - - - - Generates a message saying that the binding could not be uniquely resolved. - - The request. - The exception message. - - - - Generates a message saying that the binding could not be resolved on the specified request. - - The request. - The exception message. - - - - Generates a message saying that the specified context has cyclic dependencies. - - The context. - The exception message. - - - - Generates a message saying that an invalid attribute type is used in the binding condition. - - The binding. - Name of the method. - The type. - The exception message. - - - - Generates a message saying that no constructors are available on the specified context. - - The context. - The exception message. - - - - Generates a message saying that no constructors are available for the given component. - - The component. - The implementation. - The exception message. - - - - Generates a message saying that the specified component is not registered. - - The component. - The exception message. - - - - Generates a message saying that the specified property could not be resolved on the specified request. - - The request. - The property name. - The exception message. - - - - Generates a message saying that the provider on the specified context returned null. - - The context. - The exception message. - - - - Provides extension methods for string formatting - - - - - Formats the activation path into a meaningful string representation. - - The request to be formatted. - The activation path formatted as string. - - - - Formats the given binding into a meaningful string representation. - - The binding to be formatted. - The context. - The binding formatted as string - - - - Formats the specified request into a meaningful string representation. - - The request to be formatted. - The request formatted as string. - - - - Formats the specified target into a meaningful string representation.. - - The target to be formatted. - The target formatted as string. - - - - Formats the specified type into a meaningful string representation.. - - The type to be formatted. - The type formatted as string. - - - - Extensions for MemberInfo - - - - - Determines whether the specified member has attribute. - - The type of the attribute. - The member. - - true if the specified member has attribute; otherwise, false. - - - - - Determines whether the specified member has attribute. - - The member. - The type of the attribute. - - true if the specified member has attribute; otherwise, false. - - - - - Gets the property info from its declared tpe. - - The member info. - The property definition. - The flags. - The property info from the declared type of the property. - - - - Determines whether the specified property info is private. - - The property info. - - true if the specified property info is private; otherwise, false. - - - - - Gets the custom attributes. - This version is able to get custom attributes for properties from base types even if the property is none public. - - The member. - Type of the attribute. - if set to true [inherited]. - - - - - Represents a future value. - - The type of value. - - - - Initializes a new instance of the Future<T> class. - - The callback that will be triggered to read the value. - - - - Gets the value from the future. - - The future. - The future value. - - - - Gets the value, resolving it if necessary. - - - - - Gets the callback that will be called to resolve the value. - - - - - Indicates the object has a reference to a . - - - - - Gets the binding. - - - - - Indicates that the object has a reference to an . - - - - - Gets the kernel. - - - - - A data structure that contains multiple values for a each key. - - The type of key. - The type of value. - - - - Adds the specified value for the specified key. - - The key. - The value. - - - - Removes the specified value for the specified key. - - The key. - The value. - True if such a value existed and was removed; otherwise false. - - - - Removes all values for the specified key. - - The key. - True if any such values existed; otherwise false. - - - - Removes all values. - - - - - Determines whether the multimap contains any values for the specified key. - - The key. - True if the multimap has one or more values for the specified key; otherwise, false. - - - - Determines whether the multimap contains the specified value for the specified key. - - The key. - The value. - True if the multimap contains such a value; otherwise, false. - - - - Returns an enumerator that iterates through a the multimap. - - An object that can be used to iterate through the multimap. - - - - Gets the collection of values stored under the specified key. - - The key. - - - - Gets the collection of keys. - - - - - Gets the collection of collections of values. - - - - - Weak reference that can be used in collections. It is equal to the - object it references and has the same hash code. - - - - - Initializes a new instance of the class. - - The target. - - - - Initializes a new instance of the class. - - The target. - if set to true [track resurrection]. - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - The parameter is null. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Gets a value indicating whether this instance is alive. - - true if this instance is alive; otherwise, false. - - - - Gets or sets the target of this weak reference. - - The targe of this weak reference. - - - - Defines the style of request (single or multi-injection, whether it is optional, etc.) - - - - - Indicates a request for a single instance of a service. - - - - - Indicates a request for multiple instances of a service. - - - - - Indicates that null should be returned (instead of throwing) if the service cannot be resolved. - - - - - Scope callbacks for standard scopes. - - - - - Gets the callback for transient scope. - - - - - Gets the callback for singleton scope. - - - - - Gets the callback for thread scope. - - - - - A delegate that can inject values into a constructor. - - - - - Creates injectors for members via s. - - - - - Creates injectors from members. - - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - A delegate that can inject values into a method. - - - - - A delegate that can inject values into a property. - - - - - Creates injectors from members via reflective invocation. - - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - A pluggable unit that can be loaded into an . - - - - - Called when the module is loaded into a kernel. - - The kernel that is loading the module. - - - - Called when the module is unloaded from a kernel. - - The kernel that is unloading the module. - - - - Gets the module's name. - - - - - A loadable unit that defines bindings for your application. - - - - - Provides a path to register bindings. - - - - - Provides a path to register bindings. - - - - - Declares a binding for the specified service. - - The service to bind. - - - - Declares a binding from the service to itself. - - The service to bind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Declares a binding for the specified service. - - The service to bind. - - - - Declares a binding for the specified service. - - The service to bind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Initializes a new instance of the class. - - - - - Called when the module is loaded into a kernel. - - The kernel that is loading the module. - - - - Called when the module is unloaded from a kernel. - - The kernel that is unloading the module. - - - - Loads the module into the kernel. - - - - - Unloads the module from the kernel. - - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Gets the kernel that the module is loaded into. - - - - - Gets the module's name. Only a single module with a given name can be loaded at one time. - - - - - Gets the bindings that were registered by the module. - - - - - Overrides the injected value of a constructor argument. - - - - - Modifies an activation process in some way. - - - - - Modifies an activation process in some way. - - - - - Gets the value for the parameter within the specified context. - - The context. - The target. - The value for the parameter. - - - - Gets the name of the parameter. - - - - - Gets a value indicating whether the parameter should be inherited into child requests. - - - - - Initializes a new instance of the class. - - The name of the parameter. - The value of the parameter. - Whether the parameter should be inherited into child requests. - - - - Initializes a new instance of the class. - - The name of the parameter. - The callback that will be triggered to get the parameter's value. - Whether the parameter should be inherited into child requests. - - - - Initializes a new instance of the class. - - The name of the parameter. - The callback that will be triggered to get the parameter's value. - Whether the parameter should be inherited into child requests. - - - - Gets the value for the parameter within the specified context. - - The context. - The target. - The value for the parameter. - - - - Determines whether the object equals the specified object. - - An object to compare with this object. - True if the objects are equal; otherwise false - - - - Serves as a hash function for a particular type. - - A hash code for the object. - - - - Indicates whether the current object is equal to another object of the same type. - - An object to compare with this object. - True if the objects are equal; otherwise false - - - - Gets the name of the parameter. - - - - - Gets a value indicating whether the parameter should be inherited into child requests. - - - - - Gets or sets the callback that will be triggered to get the parameter's value. - - - - - Initializes a new instance of the class. - - The name of the argument to override. - The value to inject into the property. - - - - Initializes a new instance of the class. - - The name of the argument to override. - The callback to invoke to get the value that should be injected. - - - - Initializes a new instance of the class. - - The name of the argument to override. - The callback to invoke to get the value that should be injected. - - - - Overrides the injected value of a property. - - - - - Initializes a new instance of the class. - - The name of the property to override. - The value to inject into the property. - - - - Initializes a new instance of the class. - - The name of the property to override. - The callback to invoke to get the value that should be injected. - - - - Initializes a new instance of the class. - - The name of the property to override. - The callback to invoke to get the value that should be injected. - - - - Contains logic about which bindings to use for a given service request. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Contains logic about which bindings to use for a given service request - when other attempts have failed. - - - - - Returns any bindings from the specified collection that match the specified request. - - The multimap of all registered bindings. - The request in question. - The series of matching bindings. - - - - Resolves bindings for open generic types. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Returns a value indicating whether the specified service is self-bindable. - - The service. - if the type is self-bindable; otherwise . - - - - Resolves bindings that have been registered directly for the service. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Contains information about a service registration. - - - - - Contains information about a service registration. - - - - - Gets the provider for the binding. - - The context. - The provider to use. - - - - Gets the scope for the binding, if any. - - The context. - The object that will act as the scope, or if the service is transient. - - - - Determines whether the specified request satisfies the condition defined on the binding, - if one was defined. - - The request. - True if the request satisfies the condition; otherwise false. - - - - Gets the service type that is controlled by the binding. - - - - - Gets the binding's metadata. - - - - - Gets or sets the type of target for the binding. - - - - - Gets or sets a value indicating whether the binding was implicitly registered. - - - - - Gets a value indicating whether the binding has a condition associated with it. - - - - - Gets or sets the condition defined for the binding. - - - - - Gets or sets the callback that returns the provider that should be used by the binding. - - - - - Gets or sets the callback that returns the object that will act as the binding's scope. - - - - - Gets the parameters defined for the binding. - - - - - Gets the actions that should be called after instances are activated via the binding. - - - - - Gets the actions that should be called before instances are deactivated via the binding. - - - - - Initializes a new instance of the class. - - The service that is controlled by the binding. - - - - Initializes a new instance of the class. - - The service that is controlled by the binding. - The binding's metadata container. - - - - Gets the provider for the binding. - - The context. - The provider to use. - - - - Gets the scope for the binding, if any. - - The context. - The object that will act as the scope, or if the service is transient. - - - - Determines whether the specified request satisfies the conditions defined on this binding. - - The request. - True if the request satisfies the conditions; otherwise false. - - - - Gets the service type that is controlled by the binding. - - - - - Gets the binding's metadata. - - - - - Gets or sets a value indicating whether the binding was implicitly registered. - - - - - Gets a value indicating whether the binding has a condition associated with it. - - - - - Gets or sets the type of target for the binding. - - - - - Gets or sets the condition defined for the binding. - - - - - Gets or sets the callback that returns the provider that should be used by the binding. - - - - - Gets or sets the callback that returns the object that will act as the binding's scope. - - - - - Gets the parameters defined for the binding. - - - - - Gets the actions that should be called after instances are activated via the binding. - - - - - Gets the actions that should be called before instances are deactivated via the binding. - - - - - Provides a root for the fluent syntax associated with an . - - - - - Used to define the target of a binding. - - The service being bound. - - - - Used to define a basic binding syntax builder. - - - - - A hack to hide methods defined on for IntelliSense - on fluent interfaces. Credit to Daniel Cazzulino. - - - - - - - - - - - - - - - - - Indicates that the service should be self-bound. - - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to the specified provider. - - The provider. - - - - Indicates that the service should be bound to the specified callback method. - - The method. - - - - Indicates that the service should be bound to the specified constant value. - - The constant value. - - - - Used to set the condition, scope, name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to define the conditions under which a binding should be used. - - The service being bound. - - - - Indicates that the binding should be used only for requests that support the specified condition. - - The condition. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the service is being requested - by a service bound with the specified name. - - The name to expect. - - - - Used to define the scope in which instances activated via a binding should be re-used. - - The service being bound. - - - - Indicates that only a single instance of the binding should be created, and then - should be re-used for all subsequent requests. - - - - - Indicates that instances activated via the binding should not be re-used, nor have - their lifecycle managed by Ninject. - - - - - Indicates that instances activated via the binding should be re-used within the same thread. - - - - - Indicates that instances activated via the binding should be re-used as long as the object - returned by the provided callback remains alive (that is, has not been garbage collected). - - The callback that returns the scope. - - - - Used to define the name of a binding. - - The service being bound. - - - - Indicates that the binding should be registered with the specified name. Names are not - necessarily unique; multiple bindings for a given service may be registered with the same name. - - The name to give the binding. - - - - Used to add additional information to a binding. - - The service being bound. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Adds a custom parameter to the binding. - - The parameter. - - - - Sets the value of a piece of metadata on the binding. - - The metadata key. - The metadata value. - - - - Used to add additional actions to be performed during activation or deactivation of instances via a binding. - - The service being bound. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Used to set the scope, name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to set the name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to add additional information or actions to a binding. - - The service being bound. - - - - Initializes a new instance of the BindingBuilder<T> class. - - The binding to build. - The kernel. - - - - Indicates that the service should be self-bound. - - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to the specified provider. - - The provider. - - - - Indicates that the service should be bound to the specified callback method. - - The method. - - - - Indicates that the service should be bound to the specified constant value. - - The constant value. - - - - Indicates that the binding should be used only for requests that support the specified condition. - - The condition. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the service is being requested - by a service bound with the specified name. - - The name to expect. - - - - Indicates that the binding should be registered with the specified name. Names are not - necessarily unique; multiple bindings for a given service may be registered with the same name. - - The name to give the binding. - - - - Indicates that only a single instance of the binding should be created, and then - should be re-used for all subsequent requests. - - - - - Indicates that instances activated via the binding should not be re-used, nor have - their lifecycle managed by Ninject. - - - - - Indicates that instances activated via the binding should be re-used within the same thread. - - - - - Indicates that instances activated via the binding should be re-used as long as the object - returned by the provided callback remains alive (that is, has not been garbage collected). - - The callback that returns the scope. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Adds a custom parameter to the binding. - - The parameter. - - - - Sets the value of a piece of metadata on the binding. - - The metadata key. - The metadata value. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Provides a root for the fluent syntax associated with an . - - - - - Gets the binding being built. - - - - - Gets the kernel. - - - - - Additional information available about a binding, which can be used in constraints - to select bindings to use in activation. - - - - - Additional information available about a binding, which can be used in constraints - to select bindings to use in activation. - - - - - Determines whether a piece of metadata with the specified key has been defined. - - The metadata key. - True if such a piece of metadata exists; otherwise, false. - - - - Gets the value of metadata defined with the specified key, cast to the specified type. - - The type of value to expect. - The metadata key. - The metadata value. - - - - Gets the value of metadata defined with the specified key. - - The metadata key. - The value to return if the binding has no metadata set with the specified key. - The metadata value, or the default value if none was set. - - - - Sets the value of a piece of metadata. - - The metadata key. - The metadata value. - - - - Gets or sets the binding's name. - - - - - Determines whether a piece of metadata with the specified key has been defined. - - The metadata key. - True if such a piece of metadata exists; otherwise, false. - - - - Gets the value of metadata defined with the specified key, cast to the specified type. - - The type of value to expect. - The metadata key. - The metadata value. - - - - Gets the value of metadata defined with the specified key. - - The metadata key. - The value to return if the binding has no metadata set with the specified key. - The metadata value, or the default value if none was set. - - - - Sets the value of a piece of metadata. - - The metadata key. - The metadata value. - - - - Gets or sets the binding's name. - - - - - Describes the target of a binding. - - - - - Indicates that the binding is from a type to itself. - - - - - Indicates that the binding is from one type to another. - - - - - Indicates that the binding is from a type to a provider. - - - - - Indicates that the binding is from a type to a callback method. - - - - - Indicates that the binding is from a type to a constant value. - - - - - Describes the injection of a constructor. - - - - - Describes the injection of a method or constructor. - - - - - A piece of information used in an . (Just a marker.) - - - - - Initializes a new instance of the MethodInjectionDirectiveBase<TMethod, TInjector> class. - - The method this directive represents. - The injector that will be triggered. - - - - Creates targets for the parameters of the method. - - The method. - The targets for the method's parameters. - - - - Gets or sets the injector that will be triggered. - - - - - Gets or sets the targets for the directive. - - - - - Initializes a new instance of the class. - - The constructor described by the directive. - The injector that will be triggered. - - - - The base .ctor definition. - - - - - Describes the injection of a method. - - - - - Initializes a new instance of the class. - - The method described by the directive. - The injector that will be triggered. - - - - Describes the injection of a property. - - - - - Initializes a new instance of the class. - - The member the directive describes. - The injector that will be triggered. - - - - Creates a target for the property. - - The property. - The target for the property. - - - - Gets or sets the injector that will be triggered. - - - - - Gets or sets the injection target for the directive. - - - - - Adds a directive to plans indicating which constructor should be injected during activation. - - - - - Contributes to the generation of a . - - - - - Contributes to the specified plan. - - The plan that is being generated. - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for the constructor - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Adds directives to plans indicating which methods should be injected during activation. - - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for each method - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Adds directives to plans indicating which properties should be injected during activation. - - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for each property - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Represents a site on a type where a value will be injected. - - - - - Resolves a value for the target within the specified parent context. - - The parent context. - The resolved value. - - - - Gets the type of the target. - - - - - Gets the name of the target. - - - - - Gets the member that contains the target. - - - - - Gets the constraint defined on the target. - - - - - Gets a value indicating whether the target represents an optional dependency. - - - - - Represents an injection target for a . - - - - - Represents a site on a type where a value can be injected. - - The type of site this represents. - - - - Initializes a new instance of the Target<T> class. - - The member that contains the target. - The site represented by the target. - - - - Returns an array of custom attributes of a specified type defined on the target. - - The type of attribute to search for. - Whether to look up the hierarchy chain for inherited custom attributes. - An array of custom attributes of the specified type. - - - - Returns an array of custom attributes defined on the target. - - Whether to look up the hierarchy chain for inherited custom attributes. - An array of custom attributes. - - - - Returns a value indicating whether an attribute of the specified type is defined on the target. - - The type of attribute to search for. - Whether to look up the hierarchy chain for inherited custom attributes. - True if such an attribute is defined; otherwise false. - - - - Resolves a value for the target within the specified parent context. - - The parent context. - The resolved value. - - - - Gets the value(s) that should be injected into the target. - - The service that the target is requesting. - The parent context in which the target is being injected. - A series of values that are available for injection. - - - - Gets the value that should be injected into the target. - - The service that the target is requesting. - The parent context in which the target is being injected. - The value that is to be injected. - - - - Reads whether the target represents an optional dependency. - - if it is optional; otherwise . - - - - Reads the resolution constraint from target. - - The resolution constraint. - - - - Gets the member that contains the target. - - - - - Gets or sets the site (property, parameter, etc.) represented by the target. - - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Gets the constraint defined on the target. - - - - - Gets a value indicating whether the target represents an optional dependency. - - - - - Initializes a new instance of the class. - - The method that defines the parameter. - The parameter that this target represents. - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Represents an injection target for a . - - - - - Initializes a new instance of the class. - - The property that this target represents. - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Describes the means by which a type should be activated. - - - - - Adds the specified directive to the plan. - - The directive. - - - - Determines whether the plan contains one or more directives of the specified type. - - The type of directive. - True if the plan has one or more directives of the type; otherwise, false. - - - - Gets the first directive of the specified type from the plan. - - The type of directive. - The first directive, or if no matching directives exist. - - - - Gets all directives of the specified type that exist in the plan. - - The type of directive. - A series of directives of the specified type. - - - - Gets the type that the plan describes. - - - - - Generates plans for how to activate instances. - - - - - Gets or creates an activation plan for the specified type. - - The type for which a plan should be created. - The type's activation plan. - - - - Gets the strategies that contribute to the planning process. - - - - - Describes the means by which a type should be activated. - - - - - Initializes a new instance of the class. - - The type the plan describes. - - - - Adds the specified directive to the plan. - - The directive. - - - - Determines whether the plan contains one or more directives of the specified type. - - The type of directive. - True if the plan has one or more directives of the type; otherwise, false. - - - - Gets the first directive of the specified type from the plan. - - The type of directive. - The first directive, or if no matching directives exist. - - - - Gets all directives of the specified type that exist in the plan. - - The type of directive. - A series of directives of the specified type. - - - - Gets the type that the plan describes. - - - - - Gets the directives defined in the plan. - - - - - Generates plans for how to activate instances. - - - - - Initializes a new instance of the class. - - The strategies to execute during planning. - - - - Gets or creates an activation plan for the specified type. - - The type for which a plan should be created. - The type's activation plan. - - - - Creates an empty plan for the specified type. - - The type for which a plan should be created. - The created plan. - - - - Gets the strategies that contribute to the planning process. - - - - - Generates scores for constructors, to determine which is the best one to call during activation. - - - - - Gets the score for the specified constructor. - - The injection context. - The constructor. - The constructor's score. - - - - Determines whether members should be injected during activation. - - - - - Returns a value indicating whether the specified member should be injected. - - The member in question. - True if the member should be injected; otherwise false. - - - - Scores constructors by either looking for the existence of an injection marker - attribute, or by counting the number of parameters. - - - - - Gets the score for the specified constructor. - - The injection context. - The constructor. - The constructor's score. - - - - Determines whether members should be injected during activation by checking - if they are decorated with an injection marker attribute. - - - - - Returns a value indicating whether the specified member should be injected. - - The member in question. - True if the member should be injected; otherwise false. - - - - Selects members for injection. - - - - - Selects the constructor to call on the specified type, by using the constructor scorer. - - The type. - The selected constructor, or if none were available. - - - - Selects properties that should be injected. - - The type. - A series of the selected properties. - - - - Selects methods that should be injected. - - The type. - A series of the selected methods. - - - - Gets or sets the constructor scorer. - - - - - Gets the heuristics used to determine which members should be injected. - - - - - Selects members for injection. - - - - - Initializes a new instance of the class. - - The constructor scorer. - The injection heuristics. - - - - Selects the constructor to call on the specified type, by using the constructor scorer. - - The type. - The selected constructor, or if none were available. - - - - Selects properties that should be injected. - - The type. - A series of the selected properties. - - - - Selects methods that should be injected. - - The type. - A series of the selected methods. - - - - Gets or sets the constructor scorer. - - - - - Gets the property injection heuristics. - - - - - Extension methods that enhance module loading. - - - - - Creates a new instance of the module and loads it into the kernel. - - The type of the module. - The kernel. - - - - Loads the module(s) into the kernel. - - The kernel. - The modules to load. - - - - Extensions that enhance resolution of services. - - - - - Gets an instance of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding that matches the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service. - - - - Tries to get an instance of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding that matches the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Gets all available instances of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service using bindings registered with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service by using the bindings that match the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the bindings. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets an instance of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding that matches the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service. - - - - Tries to get an instance of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding that matches the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Gets all available instances of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service using bindings registered with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service by using the bindings that match the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the bindings. - The parameters to pass to the request. - A series of instances of the service. - - - - Indicates that an error occured during activation of an instance. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The exception message. - - - - Initializes a new instance of the class. - - The exception message. - The inner exception. - - - - A service that requires initialization after it is activated. - - - - - Initializes the instance. Called during activation. - - - - - A super-factory that can create objects of all kinds, following hints provided by s. - - - - - Gets the modules that have been loaded into the kernel. - - A series of loaded modules. - - - - Determines whether a module with the specified name has been loaded in the kernel. - - The name of the module. - True if the specified module has been loaded; otherwise, false. - - - - Loads the module(s) into the kernel. - - The modules to load. - - - - Unloads the plugin with the specified name. - - The plugin's name. - - - - Injects the specified existing instance, without managing its lifecycle. - - The instance to inject. - The parameters to pass to the request. - - - - Deactivates and releases the specified instance if it is currently managed by Ninject. - - The instance to release. - if the instance was found and released; otherwise . - - - - Gets the bindings registered for the specified service. - - The service in question. - A series of bindings that are registered for the service. - - - - Begins a new activation block, which can be used to deterministically dispose resolved instances. - - The new activation block. - - - - Gets the kernel settings. - - - - - Gets the component container, which holds components that contribute to Ninject. - - - - - Contains configuration options for Ninject. - - - - - Gets the value for the specified key. - - The type of value to return. - The setting's key. - The value to return if no setting is available. - The value, or the default value if none was found. - - - - Sets the value for the specified key. - - The setting's key. - The setting's value. - - - - Gets the attribute that indicates that a member should be injected. - - - - - Gets the interval at which the cache should be pruned. - - - - - Gets a value indicating whether Ninject should use reflection-based injection instead of - the (usually faster) lightweight code generation system. - - - - - Gets or sets a value indicating whether the activation cache is disabled. - If the activation cache is disabled less memory is used. But in some cases - instances are activated or deactivated multiple times. e.g. in the following scenario: - Bind{A}().ToSelf(); - Bind{IA}().ToMethod(ctx => kernel.Get{IA}(); - - - true if activation cache is disabled; otherwise, false. - - - - - Gets or sets a value indicating whether Null is a valid value for injection. - By defualt this is disabled and whenever a provider returns null an eception is thrown. - - true if null is allowed as injected value otherwise false. - - - - A service that is started when activated, and stopped when deactivated. - - - - - Starts this instance. Called during activation. - - - - - Stops this instance. Called during deactivation. - - - - - The base implementation of an . - - - - - Lock used when adding missing bindings. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The configuration to use. - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The component container to use. - The configuration to use. - The modules to load into the kernel. - - - - Releases resources held by the object. - - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Determines whether a module with the specified name has been loaded in the kernel. - - The name of the module. - True if the specified module has been loaded; otherwise, false. - - - - Gets the modules that have been loaded into the kernel. - - A series of loaded modules. - - - - Loads the module(s) into the kernel. - - The modules to load. - - - - Unloads the plugin with the specified name. - - The plugin's name. - - - - Injects the specified existing instance, without managing its lifecycle. - - The instance to inject. - The parameters to pass to the request. - - - - Deactivates and releases the specified instance if it is currently managed by Ninject. - - The instance to release. - if the instance was found and released; otherwise . - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - Begins a new activation block, which can be used to deterministically dispose resolved instances. - - The new activation block. - - - - Gets the bindings registered for the specified service. - - The service in question. - A series of bindings that are registered for the service. - - - - Returns an IComparer that is used to determine resolution precedence. - - An IComparer that is used to determine resolution precedence. - - - - Returns a predicate that can determine if a given IBinding matches the request. - - The request/ - A predicate that can determine if a given IBinding matches the request. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Adds components to the kernel during startup. - - - - - Attempts to handle a missing binding for a service. - - The service. - True if the missing binding can be handled; otherwise false. - - - - Attempts to handle a missing binding for a request. - - The request. - True if the missing binding can be handled; otherwise false. - - - - Returns a value indicating whether the specified service is self-bindable. - - The service. - if the type is self-bindable; otherwise . - - - - Creates a context for the specified request and binding. - - The request. - The binding. - The created context. - - - - Gets the kernel settings. - - - - - Gets the component container, which holds components that contribute to Ninject. - - - - - Contains configuration options for Ninject. - - - - - Gets the value for the specified key. - - The type of value to return. - The setting's key. - The value to return if no setting is available. - The value, or the default value if none was found. - - - - Sets the value for the specified key. - - The setting's key. - The setting's value. - - - - Gets or sets the attribute that indicates that a member should be injected. - - - - - Gets or sets the interval at which the GC should be polled. - - - - - Gets a value indicating whether Ninject should use reflection-based injection instead of - the (usually faster) lightweight code generation system. - - - - - Gets or sets a value indicating whether the activation cache is disabled. - If the activation cache is disabled less memory is used. But in some cases - instances are activated or deactivated multiple times. e.g. in the following scenario: - Bind{A}().ToSelf(); - Bind{IA}().ToMethod(ctx => kernel.Get{IA}(); - - - true if activation cache is disabled; otherwise, false. - - - - - Gets or sets a value indicating whether Null is a valid value for injection. - By defualt this is disabled and whenever a provider returns null an eception is thrown. - - - true if null is allowed as injected value otherwise false. - - - - - The standard implementation of a kernel. - - - - - Initializes a new instance of the class. - - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The configuration to use. - The modules to load into the kernel. - - - - Adds components to the kernel during startup. - - - - diff --git a/packages/Ninject.2.2.1.4/lib/sl4/Ninject.dll b/packages/Ninject.2.2.1.4/lib/sl4/Ninject.dll deleted file mode 100644 index f36390a..0000000 Binary files a/packages/Ninject.2.2.1.4/lib/sl4/Ninject.dll and /dev/null differ diff --git a/packages/Ninject.2.2.1.4/lib/sl4/Ninject.pdb b/packages/Ninject.2.2.1.4/lib/sl4/Ninject.pdb deleted file mode 100644 index 65f62e7..0000000 Binary files a/packages/Ninject.2.2.1.4/lib/sl4/Ninject.pdb and /dev/null differ diff --git a/packages/Ninject.2.2.1.4/lib/sl4/Ninject.xml b/packages/Ninject.2.2.1.4/lib/sl4/Ninject.xml deleted file mode 100644 index 8a4e1de..0000000 --- a/packages/Ninject.2.2.1.4/lib/sl4/Ninject.xml +++ /dev/null @@ -1,4477 +0,0 @@ - - - - Ninject - - - - - A block used for deterministic disposal of activated instances. When the block is - disposed, all instances activated via it will be deactivated. - - - - - An object that notifies when it is disposed. - - - - - An object that can report whether or not it is disposed. - - - - - Gets a value indicating whether this instance is disposed. - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Releases resources held by the object. - - - - - Releases resources before the object is reclaimed by garbage collection. - - - - - Gets a value indicating whether this instance is disposed. - - - - - A block used for deterministic disposal of activated instances. When the block is - disposed, all instances activated via it will be deactivated. - - - - - Provides a path to resolve instances. - - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - An object that fires an event when it is disposed. - - - - - Occurs when the object is disposed. - - - - - Initializes a new instance of the class. - - The parent resolution root. - - - - Releases resources held by the object. - - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - Gets or sets the parent resolution root (usually the kernel). - - - - - Occurs when the object is disposed. - - - - - Stores the objects that were activated - - - - - A component that contributes to the internals of Ninject. - - - - - A component that contributes to the internals of Ninject. - - - - - Gets or sets the settings. - - - - - Gets or sets the settings. - - - - - Stores the objects that were activated - - - - - Clears the cache. - - - - - Adds an activated instance. - - The instance to be added. - - - - Adds an deactivated instance. - - The instance to be added. - - - - Determines whether the specified instance is activated. - - The instance. - - true if the specified instance is activated; otherwise, false. - - - - - Determines whether the specified instance is deactivated. - - The instance. - - true if the specified instance is deactivated; otherwise, false. - - - - - An object that is prunealble. - - - - - Removes instances from the cache which should no longer be re-used. - - - - - The objects that were activated as reference equal weak references. - - - - - The objects that were activated as reference equal weak references. - - - - - Initializes a new instance of the class. - - The cache pruner. - - - - Clears the cache. - - - - - Adds an activated instance. - - The instance to be added. - - - - Adds an deactivated instance. - - The instance to be added. - - - - Determines whether the specified instance is activated. - - The instance. - - true if the specified instance is activated; otherwise, false. - - - - - Determines whether the specified instance is deactivated. - - The instance. - - true if the specified instance is deactivated; otherwise, false. - - - - - Prunes this instance. - - - - - Removes all dead objects. - - The objects collection to be freed of dead objects. - - - - Gets the activated object count. - - The activated object count. - - - - Gets the deactivated object count. - - The deactivated object count. - - - - Tracks instances for re-use in certain scopes. - - - - - Tracks instances for re-use in certain scopes. - - - - - Stores the specified instance in the cache. - - The context to store. - The instance reference. - - - - Tries to retrieve an instance to re-use in the specified context. - - The context that is being activated. - The instance for re-use, or if none has been stored. - - - - Deactivates and releases the specified instance from the cache. - - The instance to release. - if the instance was found and released; otherwise . - - - - Immediately deactivates and removes all instances in the cache that are owned by - the specified scope. - - The scope whose instances should be deactivated. - - - - Immediately deactivates and removes all instances in the cache, regardless of scope. - - - - - Gets the number of entries currently stored in the cache. - - - - - Contains all cached instances. - This is a dictionary of scopes to a multimap for bindings to cache entries. - - - - - Initializes a new instance of the class. - - The pipeline component. - The cache pruner component. - - - - Releases resources held by the object. - - - - - - Stores the specified context in the cache. - - The context to store. - The instance reference. - - - - Tries to retrieve an instance to re-use in the specified context. - - The context that is being activated. - The instance for re-use, or if none has been stored. - - - - Deactivates and releases the specified instance from the cache. - - The instance to release. - if the instance was found and released; otherwise . - - - - Removes instances from the cache which should no longer be re-used. - - - - - Immediately deactivates and removes all instances in the cache that are owned by - the specified scope. - - The scope whose instances should be deactivated. - - - - Immediately deactivates and removes all instances in the cache, regardless of scope. - - - - - Gets all entries for a binding withing the selected scope. - - The bindings. - All bindings of a binding. - - - - Gets all cache entries. - - Returns all cache entries. - - - - Forgets the specified cache entries. - - The cache entries. - - - - Forgets the specified entry. - - The entry. - - - - Gets the pipeline component. - - - - - Gets the number of entries currently stored in the cache. - - - - - An entry in the cache. - - - - - Initializes a new instance of the class. - - The context. - The instance reference. - - - - Gets the context of the instance. - - The context. - - - - Gets the instance reference. - - The instance reference. - - - - Uses a and some magic to poll - the garbage collector to see if it has run. - - - - - Prunes instances from an based on environmental information. - - - - - Starts pruning the specified cache based on the rules of the pruner. - - The cache that will be pruned. - - - - Stops pruning. - - - - - The caches that are being pruned. - - - - - Releases resources held by the object. - - - - - Starts pruning the specified pruneable based on the rules of the pruner. - - The pruneable that will be pruned. - - - - Stops pruning. - - - - - A provider that delegates to a callback method to create instances. - - The type of instances the provider creates. - - - - A simple abstract provider for instances of a specific type. - - The type of instances the provider creates. - - - - Creates instances of services. - - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Initializes a new instance of the CallbackProvider<T> class. - - The callback method that will be called to create instances. - - - - Invokes the callback method to create an instance. - - The context. - The created instance. - - - - Gets the callback method used by the provider. - - - - - A provider that always returns the same constant value. - - The type of value that is returned. - - - - Initializes a new instance of the ConstantProvider<T> class. - - The value that the provider should return. - - - - Creates an instance within the specified context. - - The context. - The constant value this provider returns. - - - - Gets the value that the provider will return. - - - - - The standard provider for types, which activates instances via a . - - - - - Initializes a new instance of the class. - - The type (or prototype) of instances the provider creates. - The planner component. - The selector component. - - - - Creates an instance within the specified context. - - The context. - The created instance. - - - - Gets the value to inject into the specified target. - - The context. - The target. - The value to inject into the specified target. - - - - Gets the implementation type that the provider will activate an instance of - for the specified service. - - The service in question. - The implementation type that will be activated. - - - - Gets a callback that creates an instance of the - for the specified type. - - The prototype the provider instance will create. - The created callback. - - - - Gets the type (or prototype) of instances the provider creates. - - - - - Gets or sets the planner component. - - - - - Gets or sets the selector component. - - - - - Adds all activated instances to the activation cache. - - - - - Contributes to a , and is called during the activation - and deactivation of an instance. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - The activation cache. - - - - - Initializes a new instance of the class. - - The activation cache. - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - Gets or sets the settings. - - The ninject settings. - - - - Contributes to a , and is called during the activation - and deactivation of an instance. - - - - - Contributes to the activation of the instance in the specified context. - - The context. - A reference to the instance being activated. - - - - Contributes to the deactivation of the instance in the specified context. - - The context. - A reference to the instance being deactivated. - - - - Executes actions defined on the binding during activation and deactivation. - - - - - Calls the activation actions defined on the binding. - - The context. - A reference to the instance being activated. - - - - Calls the deactivation actions defined on the binding. - - The context. - A reference to the instance being deactivated. - - - - During deactivation, disposes instances that implement . - - - - - Disposes the specified instance. - - The context. - A reference to the instance being deactivated. - - - - During activation, initializes instances that implement . - - - - - Initializes the specified instance. - - The context. - A reference to the instance being activated. - - - - Injects methods on an instance during activation. - - - - - Injects values into the properties as described by s - contained in the plan. - - The context. - A reference to the instance being activated. - - - - Injects properties on an instance during activation. - - - - - Initializes a new instance of the class. - - The injector factory component. - - - - Injects values into the properties as described by s - contained in the plan. - - The context. - A reference to the instance being activated. - - - - Applies user supplied override values to instance properties. - - The context. - A reference to the instance being activated. - The parameter ovverride value accessors. - - - - Gets the value to inject into the specified target. - - The context. - The target. - The value to inject into the specified target. - - - - Gets the injector factory component. - - - - - Starts instances that implement during activation, - and stops them during deactivation. - - - - - Starts the specified instance. - - The context. - A reference to the instance being activated. - - - - Stops the specified instance. - - The context. - A reference to the instance being deactivated. - - - - Contains information about the activation of a single instance. - - - - - Contains information about the activation of a single instance. - - - - - Gets the provider that should be used to create the instance for this context. - - The provider that should be used. - - - - Gets the scope for the context that "owns" the instance activated therein. - - The object that acts as the scope. - - - - Resolves this instance for this context. - - The resolved instance. - - - - Gets the kernel that is driving the activation. - - - - - Gets the request. - - - - - Gets the binding. - - - - - Gets or sets the activation plan. - - - - - Gets the parameters that were passed to manipulate the activation process. - - - - - Gets the generic arguments for the request, if any. - - - - - Gets a value indicating whether the request involves inferred generic arguments. - - - - - Initializes a new instance of the class. - - The kernel managing the resolution. - The context's request. - The context's binding. - The cache component. - The planner component. - The pipeline component. - - - - Gets the scope for the context that "owns" the instance activated therein. - - The object that acts as the scope. - - - - Gets the provider that should be used to create the instance for this context. - - The provider that should be used. - - - - Resolves the instance associated with this hook. - - The resolved instance. - - - - Gets the kernel that is driving the activation. - - - - - Gets the request. - - - - - Gets the binding. - - - - - Gets or sets the activation plan. - - - - - Gets the parameters that were passed to manipulate the activation process. - - - - - Gets the generic arguments for the request, if any. - - - - - Gets a value indicating whether the request involves inferred generic arguments. - - - - - Gets or sets the cache component. - - - - - Gets or sets the planner component. - - - - - Gets or sets the pipeline component. - - - - - Holds an instance during activation or after it has been cached. - - - - - Returns a value indicating whether the instance is of the specified type. - - The type in question. - if the instance is of the specified type, otherwise . - - - - Returns the instance as the specified type. - - The requested type. - The instance. - - - - Executes the specified action if the instance if of the specified type. - - The type in question. - The action to execute. - - - - Gets or sets the instance. - - - - - Drives the activation (injection, etc.) of an instance. - - - - - Activates the instance in the specified context. - - The context. - The instance reference. - - - - Deactivates the instance in the specified context. - - The context. - The instance reference. - - - - Gets the strategies that contribute to the activation and deactivation processes. - - - - - Describes the request for a service resolution. - - - - - Determines whether the specified binding satisfies the constraint defined on this request. - - The binding. - True if the binding satisfies the constraint; otherwise false. - - - - Gets the scope if one was specified in the request. - - The object that acts as the scope. - - - - Creates a child request. - - The service that is being requested. - The context in which the request was made. - The target that will receive the injection. - The child request. - - - - Gets the service that was requested. - - - - - Gets the parent request. - - - - - Gets the parent context. - - - - - Gets the target that will receive the injection, if any. - - - - - Gets the constraint that will be applied to filter the bindings used for the request. - - - - - Gets the parameters that affect the resolution. - - - - - Gets the stack of bindings which have been activated by either this request or its ancestors. - - - - - Gets the recursive depth at which this request occurs. - - - - - Gets or sets value indicating whether the request is optional. - - - - - Gets or sets value indicating whether the request should return a unique result. - - - - - Drives the activation (injection, etc.) of an instance. - - - - - The activation cache. - - - - - Initializes a new instance of the class. - - The strategies to execute during activation and deactivation. - The activation cache. - - - - Activates the instance in the specified context. - - The context. - The instance reference. - - - - Deactivates the instance in the specified context. - - The context. - The instance reference. - - - - Gets the strategies that contribute to the activation and deactivation processes. - - - - - Describes the request for a service resolution. - - - - - Initializes a new instance of the class. - - The service that was requested. - The constraint that will be applied to filter the bindings used for the request. - The parameters that affect the resolution. - The scope callback, if an external scope was specified. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - - - - Initializes a new instance of the class. - - The parent context. - The service that was requested. - The target that will receive the injection. - The scope callback, if an external scope was specified. - - - - Determines whether the specified binding satisfies the constraints defined on this request. - - The binding. - True if the binding satisfies the constraints; otherwise false. - - - - Gets the scope if one was specified in the request. - - The object that acts as the scope. - - - - Creates a child request. - - The service that is being requested. - The context in which the request was made. - The target that will receive the injection. - The child request. - - - - Gets the service that was requested. - - - - - Gets the parent request. - - - - - Gets the parent context. - - - - - Gets the target that will receive the injection, if any. - - - - - Gets the constraint that will be applied to filter the bindings used for the request. - - - - - Gets the parameters that affect the resolution. - - - - - Gets the stack of bindings which have been activated by either this request or its ancestors. - - - - - Gets the recursive depth at which this request occurs. - - - - - Gets or sets value indicating whether the request is optional. - - - - - Gets or sets value indicating whether the request is for a single service. - - - - - Gets the callback that resolves the scope for the request, if an external scope was provided. - - - - - Defines a constraint on the decorated member. - - - - - Determines whether the specified binding metadata matches the constraint. - - The metadata in question. - True if the metadata matches; otherwise false. - - - - Indicates that the decorated member should be injected. - - - - - Indicates that the decorated member should only be injected using binding(s) registered - with the specified name. - - - - - Initializes a new instance of the class. - - The name of the binding(s) to use. - - - - Determines whether the specified binding metadata matches the constraint. - - The metadata in question. - True if the metadata matches; otherwise false. - - - - Gets the binding name. - - - - - Indicates that the decorated member represents an optional dependency. - - - - - An internal container that manages and resolves components that contribute to Ninject. - - - - - An internal container that manages and resolves components that contribute to Ninject. - - - - - Registers a component in the container. - - The component type. - The component's implementation type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Removes all registrations for the specified component. - - The component's type. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets or sets the kernel that owns the component container. - - - - - Releases resources held by the object. - - - - - Registers a component in the container. - - The component type. - The component's implementation type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Removes all registrations for the specified component. - - The component type. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets one instance of the specified component. - - The component type. - The instance of the component. - - - - Gets all available instances of the specified component. - - The component type. - A series of instances of the specified component. - - - - Gets or sets the kernel that owns the component container. - - - - - Provides meaningful exception messages. - - - - - Generates a message saying that modules without names are not supported. - - The exception message. - - - - Generates a message saying that a module with the same name is already loaded. - - The new module. - The existing module. - The exception message. - - - - Generates a message saying that no module has been loaded with the specified name. - - The module name. - The exception message. - - - - Generates a message saying that the binding could not be uniquely resolved. - - The request. - The exception message. - - - - Generates a message saying that the binding could not be resolved on the specified request. - - The request. - The exception message. - - - - Generates a message saying that the specified context has cyclic dependencies. - - The context. - The exception message. - - - - Generates a message saying that an invalid attribute type is used in the binding condition. - - The binding. - Name of the method. - The type. - The exception message. - - - - Generates a message saying that no constructors are available on the specified context. - - The context. - The exception message. - - - - Generates a message saying that no constructors are available for the given component. - - The component. - The implementation. - The exception message. - - - - Generates a message saying that the specified component is not registered. - - The component. - The exception message. - - - - Generates a message saying that the specified property could not be resolved on the specified request. - - The request. - The property name. - The exception message. - - - - Generates a message saying that the provider on the specified context returned null. - - The context. - The exception message. - - - - Provides extension methods for string formatting - - - - - Formats the activation path into a meaningful string representation. - - The request to be formatted. - The activation path formatted as string. - - - - Formats the given binding into a meaningful string representation. - - The binding to be formatted. - The context. - The binding formatted as string - - - - Formats the specified request into a meaningful string representation. - - The request to be formatted. - The request formatted as string. - - - - Formats the specified target into a meaningful string representation.. - - The target to be formatted. - The target formatted as string. - - - - Formats the specified type into a meaningful string representation.. - - The type to be formatted. - The type formatted as string. - - - - Extensions for MemberInfo - - - - - Determines whether the specified member has attribute. - - The type of the attribute. - The member. - - true if the specified member has attribute; otherwise, false. - - - - - Determines whether the specified member has attribute. - - The member. - The type of the attribute. - - true if the specified member has attribute; otherwise, false. - - - - - Gets the property info from its declared tpe. - - The member info. - The property definition. - The flags. - The property info from the declared type of the property. - - - - Determines whether the specified property info is private. - - The property info. - - true if the specified property info is private; otherwise, false. - - - - - Gets the custom attributes. - This version is able to get custom attributes for properties from base types even if the property is none public. - - The member. - Type of the attribute. - if set to true [inherited]. - - - - - Represents a future value. - - The type of value. - - - - Initializes a new instance of the Future<T> class. - - The callback that will be triggered to read the value. - - - - Gets the value from the future. - - The future. - The future value. - - - - Gets the value, resolving it if necessary. - - - - - Gets the callback that will be called to resolve the value. - - - - - Indicates the object has a reference to a . - - - - - Gets the binding. - - - - - Indicates that the object has a reference to an . - - - - - Gets the kernel. - - - - - A data structure that contains multiple values for a each key. - - The type of key. - The type of value. - - - - Adds the specified value for the specified key. - - The key. - The value. - - - - Removes the specified value for the specified key. - - The key. - The value. - True if such a value existed and was removed; otherwise false. - - - - Removes all values for the specified key. - - The key. - True if any such values existed; otherwise false. - - - - Removes all values. - - - - - Determines whether the multimap contains any values for the specified key. - - The key. - True if the multimap has one or more values for the specified key; otherwise, false. - - - - Determines whether the multimap contains the specified value for the specified key. - - The key. - The value. - True if the multimap contains such a value; otherwise, false. - - - - Returns an enumerator that iterates through a the multimap. - - An object that can be used to iterate through the multimap. - - - - Gets the collection of values stored under the specified key. - - The key. - - - - Gets the collection of keys. - - - - - Gets the collection of collections of values. - - - - - Weak reference that can be used in collections. It is equal to the - object it references and has the same hash code. - - - - - Initializes a new instance of the class. - - The target. - - - - Initializes a new instance of the class. - - The target. - if set to true [track resurrection]. - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - The parameter is null. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Gets a value indicating whether this instance is alive. - - true if this instance is alive; otherwise, false. - - - - Gets or sets the target of this weak reference. - - The targe of this weak reference. - - - - Defines the style of request (single or multi-injection, whether it is optional, etc.) - - - - - Indicates a request for a single instance of a service. - - - - - Indicates a request for multiple instances of a service. - - - - - Indicates that null should be returned (instead of throwing) if the service cannot be resolved. - - - - - Scope callbacks for standard scopes. - - - - - Gets the callback for transient scope. - - - - - Gets the callback for singleton scope. - - - - - Gets the callback for thread scope. - - - - - A delegate that can inject values into a constructor. - - - - - Creates injectors for members via s. - - - - - Creates injectors from members. - - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - A delegate that can inject values into a method. - - - - - A delegate that can inject values into a property. - - - - - Creates injectors from members via reflective invocation. - - - - - Gets or creates an injector for the specified constructor. - - The constructor. - The created injector. - - - - Gets or creates an injector for the specified property. - - The property. - The created injector. - - - - Gets or creates an injector for the specified method. - - The method. - The created injector. - - - - A pluggable unit that can be loaded into an . - - - - - Called when the module is loaded into a kernel. - - The kernel that is loading the module. - - - - Called when the module is unloaded from a kernel. - - The kernel that is unloading the module. - - - - Gets the module's name. - - - - - A loadable unit that defines bindings for your application. - - - - - Provides a path to register bindings. - - - - - Provides a path to register bindings. - - - - - Declares a binding for the specified service. - - The service to bind. - - - - Declares a binding from the service to itself. - - The service to bind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Declares a binding for the specified service. - - The service to bind. - - - - Declares a binding for the specified service. - - The service to bind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Removes any existing bindings for the specified service, and declares a new one. - - The service to re-bind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Initializes a new instance of the class. - - - - - Called when the module is loaded into a kernel. - - The kernel that is loading the module. - - - - Called when the module is unloaded from a kernel. - - The kernel that is unloading the module. - - - - Loads the module into the kernel. - - - - - Unloads the module from the kernel. - - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Gets the kernel that the module is loaded into. - - - - - Gets the module's name. Only a single module with a given name can be loaded at one time. - - - - - Gets the bindings that were registered by the module. - - - - - Overrides the injected value of a constructor argument. - - - - - Modifies an activation process in some way. - - - - - Modifies an activation process in some way. - - - - - Gets the value for the parameter within the specified context. - - The context. - The target. - The value for the parameter. - - - - Gets the name of the parameter. - - - - - Gets a value indicating whether the parameter should be inherited into child requests. - - - - - Initializes a new instance of the class. - - The name of the parameter. - The value of the parameter. - Whether the parameter should be inherited into child requests. - - - - Initializes a new instance of the class. - - The name of the parameter. - The callback that will be triggered to get the parameter's value. - Whether the parameter should be inherited into child requests. - - - - Initializes a new instance of the class. - - The name of the parameter. - The callback that will be triggered to get the parameter's value. - Whether the parameter should be inherited into child requests. - - - - Gets the value for the parameter within the specified context. - - The context. - The target. - The value for the parameter. - - - - Determines whether the object equals the specified object. - - An object to compare with this object. - True if the objects are equal; otherwise false - - - - Serves as a hash function for a particular type. - - A hash code for the object. - - - - Indicates whether the current object is equal to another object of the same type. - - An object to compare with this object. - True if the objects are equal; otherwise false - - - - Gets the name of the parameter. - - - - - Gets a value indicating whether the parameter should be inherited into child requests. - - - - - Gets or sets the callback that will be triggered to get the parameter's value. - - - - - Initializes a new instance of the class. - - The name of the argument to override. - The value to inject into the property. - - - - Initializes a new instance of the class. - - The name of the argument to override. - The callback to invoke to get the value that should be injected. - - - - Initializes a new instance of the class. - - The name of the argument to override. - The callback to invoke to get the value that should be injected. - - - - Overrides the injected value of a property. - - - - - Initializes a new instance of the class. - - The name of the property to override. - The value to inject into the property. - - - - Initializes a new instance of the class. - - The name of the property to override. - The callback to invoke to get the value that should be injected. - - - - Initializes a new instance of the class. - - The name of the property to override. - The callback to invoke to get the value that should be injected. - - - - Contains logic about which bindings to use for a given service request. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Contains logic about which bindings to use for a given service request - when other attempts have failed. - - - - - Returns any bindings from the specified collection that match the specified request. - - The multimap of all registered bindings. - The request in question. - The series of matching bindings. - - - - Resolves bindings for open generic types. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Returns a value indicating whether the specified service is self-bindable. - - The service. - if the type is self-bindable; otherwise . - - - - Resolves bindings that have been registered directly for the service. - - - - - Returns any bindings from the specified collection that match the specified service. - - The multimap of all registered bindings. - The service in question. - The series of matching bindings. - - - - Contains information about a service registration. - - - - - Contains information about a service registration. - - - - - Gets the provider for the binding. - - The context. - The provider to use. - - - - Gets the scope for the binding, if any. - - The context. - The object that will act as the scope, or if the service is transient. - - - - Determines whether the specified request satisfies the condition defined on the binding, - if one was defined. - - The request. - True if the request satisfies the condition; otherwise false. - - - - Gets the service type that is controlled by the binding. - - - - - Gets the binding's metadata. - - - - - Gets or sets the type of target for the binding. - - - - - Gets or sets a value indicating whether the binding was implicitly registered. - - - - - Gets a value indicating whether the binding has a condition associated with it. - - - - - Gets or sets the condition defined for the binding. - - - - - Gets or sets the callback that returns the provider that should be used by the binding. - - - - - Gets or sets the callback that returns the object that will act as the binding's scope. - - - - - Gets the parameters defined for the binding. - - - - - Gets the actions that should be called after instances are activated via the binding. - - - - - Gets the actions that should be called before instances are deactivated via the binding. - - - - - Initializes a new instance of the class. - - The service that is controlled by the binding. - - - - Initializes a new instance of the class. - - The service that is controlled by the binding. - The binding's metadata container. - - - - Gets the provider for the binding. - - The context. - The provider to use. - - - - Gets the scope for the binding, if any. - - The context. - The object that will act as the scope, or if the service is transient. - - - - Determines whether the specified request satisfies the conditions defined on this binding. - - The request. - True if the request satisfies the conditions; otherwise false. - - - - Gets the service type that is controlled by the binding. - - - - - Gets the binding's metadata. - - - - - Gets or sets a value indicating whether the binding was implicitly registered. - - - - - Gets a value indicating whether the binding has a condition associated with it. - - - - - Gets or sets the type of target for the binding. - - - - - Gets or sets the condition defined for the binding. - - - - - Gets or sets the callback that returns the provider that should be used by the binding. - - - - - Gets or sets the callback that returns the object that will act as the binding's scope. - - - - - Gets the parameters defined for the binding. - - - - - Gets the actions that should be called after instances are activated via the binding. - - - - - Gets the actions that should be called before instances are deactivated via the binding. - - - - - Provides a root for the fluent syntax associated with an . - - - - - Used to define the target of a binding. - - The service being bound. - - - - Used to define a basic binding syntax builder. - - - - - A hack to hide methods defined on for IntelliSense - on fluent interfaces. Credit to Daniel Cazzulino. - - - - - - - - - - - - - - - - - Indicates that the service should be self-bound. - - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to the specified provider. - - The provider. - - - - Indicates that the service should be bound to the specified callback method. - - The method. - - - - Indicates that the service should be bound to the specified constant value. - - The constant value. - - - - Used to set the condition, scope, name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to define the conditions under which a binding should be used. - - The service being bound. - - - - Indicates that the binding should be used only for requests that support the specified condition. - - The condition. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the service is being requested - by a service bound with the specified name. - - The name to expect. - - - - Used to define the scope in which instances activated via a binding should be re-used. - - The service being bound. - - - - Indicates that only a single instance of the binding should be created, and then - should be re-used for all subsequent requests. - - - - - Indicates that instances activated via the binding should not be re-used, nor have - their lifecycle managed by Ninject. - - - - - Indicates that instances activated via the binding should be re-used within the same thread. - - - - - Indicates that instances activated via the binding should be re-used as long as the object - returned by the provided callback remains alive (that is, has not been garbage collected). - - The callback that returns the scope. - - - - Used to define the name of a binding. - - The service being bound. - - - - Indicates that the binding should be registered with the specified name. Names are not - necessarily unique; multiple bindings for a given service may be registered with the same name. - - The name to give the binding. - - - - Used to add additional information to a binding. - - The service being bound. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Adds a custom parameter to the binding. - - The parameter. - - - - Sets the value of a piece of metadata on the binding. - - The metadata key. - The metadata value. - - - - Used to add additional actions to be performed during activation or deactivation of instances via a binding. - - The service being bound. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Used to set the scope, name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to set the name, or add additional information or actions to a binding. - - The service being bound. - - - - Used to add additional information or actions to a binding. - - The service being bound. - - - - Initializes a new instance of the BindingBuilder<T> class. - - The binding to build. - The kernel. - - - - Indicates that the service should be self-bound. - - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to the specified implementation type. - - The implementation type. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to an instance of the specified provider type. - The instance will be activated via the kernel when an instance of the service is activated. - - The type of provider to activate. - - - - Indicates that the service should be bound to the specified provider. - - The provider. - - - - Indicates that the service should be bound to the specified callback method. - - The method. - - - - Indicates that the service should be bound to the specified constant value. - - The constant value. - - - - Indicates that the binding should be used only for requests that support the specified condition. - - The condition. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only for injections on the specified type. - - The type. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the class being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the member being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the target being injected has - an attribute of the specified type. - - The type of attribute. - - - - Indicates that the binding should be used only when the service is being requested - by a service bound with the specified name. - - The name to expect. - - - - Indicates that the binding should be registered with the specified name. Names are not - necessarily unique; multiple bindings for a given service may be registered with the same name. - - The name to give the binding. - - - - Indicates that only a single instance of the binding should be created, and then - should be re-used for all subsequent requests. - - - - - Indicates that instances activated via the binding should not be re-used, nor have - their lifecycle managed by Ninject. - - - - - Indicates that instances activated via the binding should be re-used within the same thread. - - - - - Indicates that instances activated via the binding should be re-used as long as the object - returned by the provided callback remains alive (that is, has not been garbage collected). - - The callback that returns the scope. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified constructor argument should be overridden with the specified value. - - The name of the argument to override. - The callback to invoke to get the value for the argument. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Indicates that the specified property should be injected with the specified value. - - The name of the property to override. - The callback to invoke to get the value for the property. - - - - Adds a custom parameter to the binding. - - The parameter. - - - - Sets the value of a piece of metadata on the binding. - - The metadata key. - The metadata value. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are activated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Indicates that the specified callback should be invoked when instances are deactivated. - - The action callback. - - - - Provides a root for the fluent syntax associated with an . - - - - - Gets the binding being built. - - - - - Gets the kernel. - - - - - Additional information available about a binding, which can be used in constraints - to select bindings to use in activation. - - - - - Additional information available about a binding, which can be used in constraints - to select bindings to use in activation. - - - - - Determines whether a piece of metadata with the specified key has been defined. - - The metadata key. - True if such a piece of metadata exists; otherwise, false. - - - - Gets the value of metadata defined with the specified key, cast to the specified type. - - The type of value to expect. - The metadata key. - The metadata value. - - - - Gets the value of metadata defined with the specified key. - - The metadata key. - The value to return if the binding has no metadata set with the specified key. - The metadata value, or the default value if none was set. - - - - Sets the value of a piece of metadata. - - The metadata key. - The metadata value. - - - - Gets or sets the binding's name. - - - - - Determines whether a piece of metadata with the specified key has been defined. - - The metadata key. - True if such a piece of metadata exists; otherwise, false. - - - - Gets the value of metadata defined with the specified key, cast to the specified type. - - The type of value to expect. - The metadata key. - The metadata value. - - - - Gets the value of metadata defined with the specified key. - - The metadata key. - The value to return if the binding has no metadata set with the specified key. - The metadata value, or the default value if none was set. - - - - Sets the value of a piece of metadata. - - The metadata key. - The metadata value. - - - - Gets or sets the binding's name. - - - - - Describes the target of a binding. - - - - - Indicates that the binding is from a type to itself. - - - - - Indicates that the binding is from one type to another. - - - - - Indicates that the binding is from a type to a provider. - - - - - Indicates that the binding is from a type to a callback method. - - - - - Indicates that the binding is from a type to a constant value. - - - - - Describes the injection of a constructor. - - - - - Describes the injection of a method or constructor. - - - - - A piece of information used in an . (Just a marker.) - - - - - Initializes a new instance of the MethodInjectionDirectiveBase<TMethod, TInjector> class. - - The method this directive represents. - The injector that will be triggered. - - - - Creates targets for the parameters of the method. - - The method. - The targets for the method's parameters. - - - - Gets or sets the injector that will be triggered. - - - - - Gets or sets the targets for the directive. - - - - - Initializes a new instance of the class. - - The constructor described by the directive. - The injector that will be triggered. - - - - The base .ctor definition. - - - - - Describes the injection of a method. - - - - - Initializes a new instance of the class. - - The method described by the directive. - The injector that will be triggered. - - - - Describes the injection of a property. - - - - - Initializes a new instance of the class. - - The member the directive describes. - The injector that will be triggered. - - - - Creates a target for the property. - - The property. - The target for the property. - - - - Gets or sets the injector that will be triggered. - - - - - Gets or sets the injection target for the directive. - - - - - Adds a directive to plans indicating which constructor should be injected during activation. - - - - - Contributes to the generation of a . - - - - - Contributes to the specified plan. - - The plan that is being generated. - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for the constructor - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Adds directives to plans indicating which methods should be injected during activation. - - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for each method - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Adds directives to plans indicating which properties should be injected during activation. - - - - - Initializes a new instance of the class. - - The selector component. - The injector factory component. - - - - Adds a to the plan for each property - that should be injected. - - The plan that is being generated. - - - - Gets the selector component. - - - - - Gets the injector factory component. - - - - - Represents a site on a type where a value will be injected. - - - - - Resolves a value for the target within the specified parent context. - - The parent context. - The resolved value. - - - - Gets the type of the target. - - - - - Gets the name of the target. - - - - - Gets the member that contains the target. - - - - - Gets the constraint defined on the target. - - - - - Gets a value indicating whether the target represents an optional dependency. - - - - - Represents an injection target for a . - - - - - Represents a site on a type where a value can be injected. - - The type of site this represents. - - - - Initializes a new instance of the Target<T> class. - - The member that contains the target. - The site represented by the target. - - - - Returns an array of custom attributes of a specified type defined on the target. - - The type of attribute to search for. - Whether to look up the hierarchy chain for inherited custom attributes. - An array of custom attributes of the specified type. - - - - Returns an array of custom attributes defined on the target. - - Whether to look up the hierarchy chain for inherited custom attributes. - An array of custom attributes. - - - - Returns a value indicating whether an attribute of the specified type is defined on the target. - - The type of attribute to search for. - Whether to look up the hierarchy chain for inherited custom attributes. - True if such an attribute is defined; otherwise false. - - - - Resolves a value for the target within the specified parent context. - - The parent context. - The resolved value. - - - - Gets the value(s) that should be injected into the target. - - The service that the target is requesting. - The parent context in which the target is being injected. - A series of values that are available for injection. - - - - Gets the value that should be injected into the target. - - The service that the target is requesting. - The parent context in which the target is being injected. - The value that is to be injected. - - - - Reads whether the target represents an optional dependency. - - if it is optional; otherwise . - - - - Reads the resolution constraint from target. - - The resolution constraint. - - - - Gets the member that contains the target. - - - - - Gets or sets the site (property, parameter, etc.) represented by the target. - - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Gets the constraint defined on the target. - - - - - Gets a value indicating whether the target represents an optional dependency. - - - - - Initializes a new instance of the class. - - The method that defines the parameter. - The parameter that this target represents. - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Represents an injection target for a . - - - - - Initializes a new instance of the class. - - The property that this target represents. - - - - Gets the name of the target. - - - - - Gets the type of the target. - - - - - Describes the means by which a type should be activated. - - - - - Adds the specified directive to the plan. - - The directive. - - - - Determines whether the plan contains one or more directives of the specified type. - - The type of directive. - True if the plan has one or more directives of the type; otherwise, false. - - - - Gets the first directive of the specified type from the plan. - - The type of directive. - The first directive, or if no matching directives exist. - - - - Gets all directives of the specified type that exist in the plan. - - The type of directive. - A series of directives of the specified type. - - - - Gets the type that the plan describes. - - - - - Generates plans for how to activate instances. - - - - - Gets or creates an activation plan for the specified type. - - The type for which a plan should be created. - The type's activation plan. - - - - Gets the strategies that contribute to the planning process. - - - - - Describes the means by which a type should be activated. - - - - - Initializes a new instance of the class. - - The type the plan describes. - - - - Adds the specified directive to the plan. - - The directive. - - - - Determines whether the plan contains one or more directives of the specified type. - - The type of directive. - True if the plan has one or more directives of the type; otherwise, false. - - - - Gets the first directive of the specified type from the plan. - - The type of directive. - The first directive, or if no matching directives exist. - - - - Gets all directives of the specified type that exist in the plan. - - The type of directive. - A series of directives of the specified type. - - - - Gets the type that the plan describes. - - - - - Gets the directives defined in the plan. - - - - - Generates plans for how to activate instances. - - - - - Initializes a new instance of the class. - - The strategies to execute during planning. - - - - Gets or creates an activation plan for the specified type. - - The type for which a plan should be created. - The type's activation plan. - - - - Creates an empty plan for the specified type. - - The type for which a plan should be created. - The created plan. - - - - Gets the strategies that contribute to the planning process. - - - - - Generates scores for constructors, to determine which is the best one to call during activation. - - - - - Gets the score for the specified constructor. - - The injection context. - The constructor. - The constructor's score. - - - - Determines whether members should be injected during activation. - - - - - Returns a value indicating whether the specified member should be injected. - - The member in question. - True if the member should be injected; otherwise false. - - - - Scores constructors by either looking for the existence of an injection marker - attribute, or by counting the number of parameters. - - - - - Gets the score for the specified constructor. - - The injection context. - The constructor. - The constructor's score. - - - - Determines whether members should be injected during activation by checking - if they are decorated with an injection marker attribute. - - - - - Returns a value indicating whether the specified member should be injected. - - The member in question. - True if the member should be injected; otherwise false. - - - - Selects members for injection. - - - - - Selects the constructor to call on the specified type, by using the constructor scorer. - - The type. - The selected constructor, or if none were available. - - - - Selects properties that should be injected. - - The type. - A series of the selected properties. - - - - Selects methods that should be injected. - - The type. - A series of the selected methods. - - - - Gets or sets the constructor scorer. - - - - - Gets the heuristics used to determine which members should be injected. - - - - - Selects members for injection. - - - - - Initializes a new instance of the class. - - The constructor scorer. - The injection heuristics. - - - - Selects the constructor to call on the specified type, by using the constructor scorer. - - The type. - The selected constructor, or if none were available. - - - - Selects properties that should be injected. - - The type. - A series of the selected properties. - - - - Selects methods that should be injected. - - The type. - A series of the selected methods. - - - - Gets or sets the constructor scorer. - - - - - Gets the property injection heuristics. - - - - - Extension methods that enhance module loading. - - - - - Creates a new instance of the module and loads it into the kernel. - - The type of the module. - The kernel. - - - - Loads the module(s) into the kernel. - - The kernel. - The modules to load. - - - - Extensions that enhance resolution of services. - - - - - Gets an instance of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding that matches the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service. - - - - Tries to get an instance of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding that matches the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Gets all available instances of the specified service. - - The service to resolve. - The resolution root. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service using bindings registered with the specified name. - - The service to resolve. - The resolution root. - The name of the binding. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service by using the bindings that match the specified constraint. - - The service to resolve. - The resolution root. - The constraint to apply to the bindings. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets an instance of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - An instance of the service. - - - - Gets an instance of the specified service by using the first binding that matches the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service. - - - - Tries to get an instance of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Tries to get an instance of the specified service by using the first binding that matches the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the binding. - The parameters to pass to the request. - An instance of the service, or if no implementation was available. - - - - Gets all available instances of the specified service. - - The resolution root. - The service to resolve. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service using bindings registered with the specified name. - - The resolution root. - The service to resolve. - The name of the binding. - The parameters to pass to the request. - A series of instances of the service. - - - - Gets all instances of the specified service by using the bindings that match the specified constraint. - - The resolution root. - The service to resolve. - The constraint to apply to the bindings. - The parameters to pass to the request. - A series of instances of the service. - - - - Indicates that an error occured during activation of an instance. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The exception message. - - - - Initializes a new instance of the class. - - The exception message. - The inner exception. - - - - A service that requires initialization after it is activated. - - - - - Initializes the instance. Called during activation. - - - - - A super-factory that can create objects of all kinds, following hints provided by s. - - - - - Gets the modules that have been loaded into the kernel. - - A series of loaded modules. - - - - Determines whether a module with the specified name has been loaded in the kernel. - - The name of the module. - True if the specified module has been loaded; otherwise, false. - - - - Loads the module(s) into the kernel. - - The modules to load. - - - - Unloads the plugin with the specified name. - - The plugin's name. - - - - Injects the specified existing instance, without managing its lifecycle. - - The instance to inject. - The parameters to pass to the request. - - - - Deactivates and releases the specified instance if it is currently managed by Ninject. - - The instance to release. - if the instance was found and released; otherwise . - - - - Gets the bindings registered for the specified service. - - The service in question. - A series of bindings that are registered for the service. - - - - Begins a new activation block, which can be used to deterministically dispose resolved instances. - - The new activation block. - - - - Gets the kernel settings. - - - - - Gets the component container, which holds components that contribute to Ninject. - - - - - Contains configuration options for Ninject. - - - - - Gets the value for the specified key. - - The type of value to return. - The setting's key. - The value to return if no setting is available. - The value, or the default value if none was found. - - - - Sets the value for the specified key. - - The setting's key. - The setting's value. - - - - Gets the attribute that indicates that a member should be injected. - - - - - Gets the interval at which the cache should be pruned. - - - - - Gets a value indicating whether Ninject should use reflection-based injection instead of - the (usually faster) lightweight code generation system. - - - - - Gets or sets a value indicating whether the activation cache is disabled. - If the activation cache is disabled less memory is used. But in some cases - instances are activated or deactivated multiple times. e.g. in the following scenario: - Bind{A}().ToSelf(); - Bind{IA}().ToMethod(ctx => kernel.Get{IA}(); - - - true if activation cache is disabled; otherwise, false. - - - - - Gets or sets a value indicating whether Null is a valid value for injection. - By defualt this is disabled and whenever a provider returns null an eception is thrown. - - true if null is allowed as injected value otherwise false. - - - - A service that is started when activated, and stopped when deactivated. - - - - - Starts this instance. Called during activation. - - - - - Stops this instance. Called during deactivation. - - - - - The base implementation of an . - - - - - Lock used when adding missing bindings. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The configuration to use. - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The component container to use. - The configuration to use. - The modules to load into the kernel. - - - - Releases resources held by the object. - - - - - Unregisters all bindings for the specified service. - - The service to unbind. - - - - Registers the specified binding. - - The binding to add. - - - - Unregisters the specified binding. - - The binding to remove. - - - - Determines whether a module with the specified name has been loaded in the kernel. - - The name of the module. - True if the specified module has been loaded; otherwise, false. - - - - Gets the modules that have been loaded into the kernel. - - A series of loaded modules. - - - - Loads the module(s) into the kernel. - - The modules to load. - - - - Unloads the plugin with the specified name. - - The plugin's name. - - - - Injects the specified existing instance, without managing its lifecycle. - - The instance to inject. - The parameters to pass to the request. - - - - Deactivates and releases the specified instance if it is currently managed by Ninject. - - The instance to release. - if the instance was found and released; otherwise . - - - - Determines whether the specified request can be resolved. - - The request. - True if the request can be resolved; otherwise, false. - - - - Resolves instances for the specified request. The instances are not actually resolved - until a consumer iterates over the enumerator. - - The request to resolve. - An enumerator of instances that match the request. - - - - Creates a request for the specified service. - - The service that is being requested. - The constraint to apply to the bindings to determine if they match the request. - The parameters to pass to the resolution. - True if the request is optional; otherwise, false. - True if the request should return a unique result; otherwise, false. - The created request. - - - - Begins a new activation block, which can be used to deterministically dispose resolved instances. - - The new activation block. - - - - Gets the bindings registered for the specified service. - - The service in question. - A series of bindings that are registered for the service. - - - - Returns an IComparer that is used to determine resolution precedence. - - An IComparer that is used to determine resolution precedence. - - - - Returns a predicate that can determine if a given IBinding matches the request. - - The request/ - A predicate that can determine if a given IBinding matches the request. - - - - Creates a new builder for the specified binding. - - The type restriction to apply to the binding builder. - The binding that will be built. - The created builder. - - - - Adds components to the kernel during startup. - - - - - Attempts to handle a missing binding for a service. - - The service. - True if the missing binding can be handled; otherwise false. - - - - Attempts to handle a missing binding for a request. - - The request. - True if the missing binding can be handled; otherwise false. - - - - Returns a value indicating whether the specified service is self-bindable. - - The service. - if the type is self-bindable; otherwise . - - - - Creates a context for the specified request and binding. - - The request. - The binding. - The created context. - - - - Gets the kernel settings. - - - - - Gets the component container, which holds components that contribute to Ninject. - - - - - Contains configuration options for Ninject. - - - - - Gets the value for the specified key. - - The type of value to return. - The setting's key. - The value to return if no setting is available. - The value, or the default value if none was found. - - - - Sets the value for the specified key. - - The setting's key. - The setting's value. - - - - Gets or sets the attribute that indicates that a member should be injected. - - - - - Gets or sets the interval at which the GC should be polled. - - - - - Gets a value indicating whether Ninject should use reflection-based injection instead of - the (usually faster) lightweight code generation system. - - - - - Gets or sets a value indicating whether the activation cache is disabled. - If the activation cache is disabled less memory is used. But in some cases - instances are activated or deactivated multiple times. e.g. in the following scenario: - Bind{A}().ToSelf(); - Bind{IA}().ToMethod(ctx => kernel.Get{IA}(); - - - true if activation cache is disabled; otherwise, false. - - - - - Gets or sets a value indicating whether Null is a valid value for injection. - By defualt this is disabled and whenever a provider returns null an eception is thrown. - - - true if null is allowed as injected value otherwise false. - - - - - The standard implementation of a kernel. - - - - - Initializes a new instance of the class. - - The modules to load into the kernel. - - - - Initializes a new instance of the class. - - The configuration to use. - The modules to load into the kernel. - - - - Adds components to the kernel during startup. - - - - diff --git a/packages/repositories.config b/packages/repositories.config deleted file mode 100644 index 31b3813..0000000 --- a/packages/repositories.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file