bitwarden-android/src/Core/Utilities/LazyResolve.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
363 B
C#
Raw Normal View History

using System;
namespace Bit.Core.Utilities
{
public class LazyResolve<T> : Lazy<T> where T : class
{
public LazyResolve()
: base(() => ServiceContainer.Resolve<T>())
{
}
public LazyResolve(string containerKey)
: base(() => ServiceContainer.Resolve<T>(containerKey))
{
}
}
}