コード例 #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);
            }
        }
コード例 #2
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);
            }
        }
コード例 #3
0
ファイル: RunnerBase.cs プロジェクト: vamas/WebApiTemplate
 public RunnerBase(IBusinessLogicData repo)
 {
     _repo        = repo;
     _actionQueue = new ActionQueue.ActionQueue <TIn, TOut>();
 }
コード例 #4
0
ファイル: Runner.cs プロジェクト: vamas/WebApiTemplate
 public Runner(IBusinessLogicData repo) : base(repo)
 {
 }