예제 #1
0
        public static IDisposable EnterScope()
        {
            var d = new ResolverDisposable(Current, CurrentMutable);

            Current = CurrentMutable = new PerspexLocator(Current);
            return(d);
        }
예제 #2
0
 public RegistrationHelper(PerspexLocator locator)
 {
     _locator = locator;
 }
예제 #3
0
 public ResolverDisposable(IPerspexDependencyResolver resolver, PerspexLocator mutable)
 {
     _resolver = resolver;
     _mutable  = mutable;
 }
예제 #4
0
 static PerspexLocator()
 {
     Current = CurrentMutable = new PerspexLocator();
 }