Moving Files
This commit is contained in:
Родитель
73b0f34bd2
Коммит
588b7de1b8
|
@ -27,24 +27,24 @@
|
||||||
<Compile Remove="**\*.v5.cs" />
|
<Compile Remove="**\*.v5.cs" />
|
||||||
<Compile Remove="**\*.v8.cs" />
|
<Compile Remove="**\*.v8.cs" />
|
||||||
|
|
||||||
<Compile Remove="Patterns\Abstractions\Resolvers\ValidatingResolverFactory.cs" />
|
<Compile Remove="Pattern\Abstractions\Resolvers\ValidatingResolverFactory.cs" />
|
||||||
<Compile Remove="Patterns\Abstractions\Resolvers\ValidatintResolver.cs" />
|
<Compile Remove="Pattern\Abstractions\Resolvers\ValidatintResolver.cs" />
|
||||||
<Compile Remove="Patterns\Abstractions\FixtureBase.Fields.cs" />
|
<Compile Remove="Pattern\Abstractions\FixtureBase.Fields.cs" />
|
||||||
<Compile Remove="Patterns\Abstractions\Data\Fields\**" />
|
<Compile Remove="Pattern\Abstractions\Data\Fields\**" />
|
||||||
<Compile Remove="Patterns\Dependency\DefaultValue.cs" />
|
<Compile Remove="Pattern\Dependency\DefaultValue.cs" />
|
||||||
<Compile Remove="Patterns\Dependency\DefaultAttribute.cs" />
|
<Compile Remove="Pattern\Dependency\DefaultAttribute.cs" />
|
||||||
<Compile Remove="Patterns\Dependency\Data\Fields\**" />
|
<Compile Remove="Pattern\Dependency\Data\Fields\**" />
|
||||||
<Compile Remove="Patterns\Dependency\Implementation\Fields\**" />
|
<Compile Remove="Pattern\Dependency\Implementation\Fields\**" />
|
||||||
<Compile Remove="Patterns\Injection\Implementation\Fields\**" />
|
<Compile Remove="Pattern\Injection\Implementation\Fields\**" />
|
||||||
<Compile Remove="Patterns\Injection\Data\Fields\**" />
|
<Compile Remove="Pattern\Injection\Data\Fields\**" />
|
||||||
<Compile Remove="Patterns\Injection\Annotation\Overrides\Dependency.Import.cs" />
|
<Compile Remove="Pattern\Injection\Annotation\Overrides\Dependency.Import.cs" />
|
||||||
<Compile Remove="Patterns\Injection\Annotation\Overrides\OptionalParameter.cs" />
|
<Compile Remove="Pattern\Injection\Annotation\Overrides\OptionalParameter.cs" />
|
||||||
<Compile Remove="Patterns\Injection\Annotation\Overrides\ResolvedParameter.cs" />
|
<Compile Remove="Pattern\Injection\Annotation\Overrides\ResolvedParameter.cs" />
|
||||||
<Compile Remove="Patterns\Injection\Override\Dependency.Injected.!v4.cs" />
|
<Compile Remove="Pattern\Injection\Override\Dependency.Injected.!v4.cs" />
|
||||||
<Compile Remove="Patterns\Lifetime\LifetimeManager.cs" />
|
<Compile Remove="Pattern\Lifetime\LifetimeManager.cs" />
|
||||||
<Compile Remove="Patterns\Lifetime\LifetimeManager\Disposable.cs" />
|
<Compile Remove="Pattern\Lifetime\LifetimeManager\Disposable.cs" />
|
||||||
<Compile Remove="Patterns\Selection\Implementation\Fields\Annotated.cs" />
|
<Compile Remove="Pattern\Selection\Implementation\Fields\Annotated.cs" />
|
||||||
<Compile Remove="Patterns\Selection\Implementation\Fields.cs" />
|
<Compile Remove="Pattern\Selection\Implementation\Fields.cs" />
|
||||||
<Compile Remove="Resolution\Enumerable\**" />
|
<Compile Remove="Resolution\Enumerable\**" />
|
||||||
<Compile Remove="Resolution\Generic\Constrained.cs" />
|
<Compile Remove="Resolution\Generic\Constrained.cs" />
|
||||||
<Compile Remove="Registration\Validation\Factory.cs" />
|
<Compile Remove="Registration\Validation\Factory.cs" />
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
using System;
|
||||||
|
using System.Threading;
|
||||||
|
using Unity;
|
||||||
|
using Unity.Extension;
|
||||||
|
using Unity.Resolution;
|
||||||
|
|
||||||
|
namespace Regression
|
||||||
|
{
|
||||||
|
public class ValidatingResolverFactory : IResolverFactory<Type>
|
||||||
|
{
|
||||||
|
private object _value;
|
||||||
|
|
||||||
|
public ValidatingResolverFactory(object value)
|
||||||
|
{
|
||||||
|
_value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Type Type { get; private set; }
|
||||||
|
public string Name { get; private set; }
|
||||||
|
|
||||||
|
public ResolveDelegate<TContext> GetResolver<TContext>(Type info)
|
||||||
|
where TContext : IResolveContext
|
||||||
|
{
|
||||||
|
return (ref TContext context) =>
|
||||||
|
{
|
||||||
|
Type = context.Type;
|
||||||
|
Name = context.Name;
|
||||||
|
|
||||||
|
return _value;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче