Exemplo n.º 1
0
    public void Startup()
    {
        CurrentRequest.Resolver.AppName = "BuyerRoleData";
        m_common = CurrentRequest.Resolver.Resolve <CMS.AMS.Common>();
        if (m_common.LRT_Connection_State() == ConnectionState.Closed)
        {
            m_common.Open_LogixRT();
        }
        if (m_common.LXS_Connection_State() == ConnectionState.Closed)
        {
            m_common.Open_LogixXS();
        }
        CurrentRequest.Resolver.RegisterInstance <CommonBase>(m_common);

        m_common.Set_AppInfo();

        m_connectorInc      = new ConnectorInc(m_common);
        m_logger            = CurrentRequest.Resolver.Resolve <ILogger>();
        m_phraseLib         = CurrentRequest.Resolver.Resolve <IPhraseLib>();
        m_errHandler        = CurrentRequest.Resolver.Resolve <IErrorHandler>();
        m_authInc           = new CMS.AMS.AuthLib(m_common);
        m_adminUser         = CurrentRequest.Resolver.Resolve <IAdminUserData>();
        m_buyerRole         = CurrentRequest.Resolver.Resolve <IBuyerRoleData>();
        m_DepartmentService = CurrentRequest.Resolver.Resolve <IDepartment>();
    }
    private void Startup()
    {
        CurrentRequest.Resolver.AppName = "TrackableCouponsExternalWS";
        m_common = CurrentRequest.Resolver.Resolve <CMS.AMS.Common>();
        if (m_common.LRT_Connection_State() == ConnectionState.Closed)
        {
            m_common.Open_LogixRT();
        }
        if (m_common.LXS_Connection_State() == ConnectionState.Closed)
        {
            m_common.Open_LogixXS();
        }
        CurrentRequest.Resolver.RegisterInstance <CommonBase>(m_common);
        m_common.Set_AppInfo();

        m_connectorInc    = new ConnectorInc(m_common);
        m_authInc         = new CMS.AMS.AuthLib(m_common);
        m_logger          = CurrentRequest.Resolver.Resolve <ILogger>();
        m_phraseLib       = CurrentRequest.Resolver.Resolve <IPhraseLib>();
        m_errHandler      = CurrentRequest.Resolver.Resolve <IErrorHandler>();
        m_trackableCoupon = CurrentRequest.Resolver.Resolve <ITrackableCouponService>();
        m_dbAccess        = CurrentRequest.Resolver.Resolve <IDBAccess>();
    }