public static RequireScope ( this kernel ) : IDisposable | ||
kernel | this | |
return | IDisposable |
public static IDisposable RequireScope(this IKernel kernel)
{
var current = Scope.ObtainCurrentScope();
if (current == null)
{
return kernel.BeginScope();
}
return null;
}