Beispiel #1
0
        public ZetboxContextImpl(ClientIsolationLevel il, ZetboxConfig config, IProxy proxy, string clientImplementationAssembly, Func <IFrozenContext> lazyCtx, InterfaceType.Factory iftFactory, ClientImplementationType.ClientFactory implTypeFactory, IPerfCounter perfCounter, IIdentityResolver identityResolver)
        {
            if (perfCounter == null)
            {
                throw new ArgumentNullException("perfCounter");
            }
            this._clientIsolationLevel = il;
            this.config = config;
            this.proxy  = proxy;
            this._ClientImplementationAssembly = clientImplementationAssembly;
            this._objects          = new ContextCache <int>(this, item => item.ID);
            this._lazyCtx          = lazyCtx;
            this._iftFactory       = iftFactory;
            this._implTypeFactory  = implTypeFactory;
            this._perfCounter      = perfCounter;
            this._identityResolver = identityResolver;

            CreatedAt = new StackTrace(true);
            ZetboxContextDebuggerSingleton.Created(this);
        }
Beispiel #2
0
 public ZetboxDebuggerAsViewModel(IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent)
     : base(appCtx, dataCtx, parent)
 {
     ZetboxContextDebuggerSingleton.SetDebugger(this);
 }