Ejemplo n.º 1
0
        protected TaxSession(TaxCalculator taxCalculator, TaxConnectionParameters cParams)
        {
            if (taxCalculator == null || cParams == null)
            {
                throw new TaxException(StringConsts.ARGUMENT_ERROR + this.GetType().Name + ".ctor(taxSystem is not null and cParams is not null)");
            }

            m_TaxCalculator = taxCalculator;

            m_Name = cParams.Name;
            m_User = cParams.User;

            lock (m_TaxCalculator.m_Sessions)
                m_TaxCalculator.m_Sessions.Add(this);
        }
Ejemplo n.º 2
0
 protected abstract TaxSession DoStartSession(TaxConnectionParameters cParams = null);
Ejemplo n.º 3
0
 /// <summary>
 /// Starts new tax session of system-specific type
 /// </summary>
 public TaxSession StartSession(TaxConnectionParameters cParams = null)
 {
     return(DoStartSession(cParams));
 }