Esempio n. 1
0
        /// <summary>
        /// Finishes initializing this instance.  This method must be called after
        /// instantiating an instance of this class and before using any of its
        /// other methods.
        /// </summary>
        /// <param name="businessLogicData">The <see cref="IBusinessLogicData"/> for this model.</param>
        public void Initialize(IBusinessLogicData businessLogicData)
        {
            System.Diagnostics.Debug.Assert(businessLogicData != null, "BusinessLogicData cannot be null");
            this._businessLogicData = businessLogicData;

            // Note: the LinqToSqlContext in this AppDomain is not the same
            // one in the caller's AppDomain, so we have to propagate this
            // override across to this version of the type.
            if (businessLogicData.LinqToSqlPath != null)
            {
                LinqToSqlContext.OverrideAssemblyPath(businessLogicData.LinqToSqlPath);
            }
        }
        /// <summary>
        /// Finishes initializing this instance.  This method must be called after
        /// instantiating an instance of this class and before using any of its
        /// other methods.
        /// </summary>
        /// <param name="businessLogicData">The <see cref="IBusinessLogicData"/> for this model.</param>
        public void Initialize(IBusinessLogicData businessLogicData)
        {
            System.Diagnostics.Debug.Assert(businessLogicData != null, "BusinessLogicData cannot be null");
            this._businessLogicData = businessLogicData;

            // Note: the LinqToSqlContext in this AppDomain is not the same
            // one in the caller's AppDomain, so we have to propagate this
            // override across to this version of the type.
            if (businessLogicData.LinqToSqlPath != null)
            {
                LinqToSqlContext.OverrideAssemblyPath(businessLogicData.LinqToSqlPath);
            }
        }
Esempio n. 3
0
 public RunnerBase(IBusinessLogicData repo)
 {
     _repo        = repo;
     _actionQueue = new ActionQueue.ActionQueue <TIn, TOut>();
 }
Esempio n. 4
0
 public Runner(IBusinessLogicData repo) : base(repo)
 {
 }