public CreateRequest ( |
||
service | The service that is being requested. | |
constraint | bool>.Func | The constraint to apply to the bindings to determine if they match the request. |
parameters | IEnumerable |
The parameters to pass to the resolution. |
isOptional | bool | |
isUnique | bool | |
return | IRequest |
public virtual IRequest CreateRequest(Type service, Func<IBindingMetadata, bool> constraint, IEnumerable<IParameter> parameters, bool isOptional, bool isUnique)
{
Contract.Requires(service != null);
Contract.Requires(parameters != null);
return new Request(service, constraint, parameters, () => this, isOptional, isUnique);
}