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>();
    }
Exemplo n.º 2
0
 private void Shutdown()
 {
     m_connectorInc    = null;
     m_common          = null;
     m_logger          = null;
     m_phraseLib       = null;
     m_errHandler      = null;
     m_trackableCoupon = null;
 }
Exemplo n.º 3
0
    private void Startup()
    {
        CurrentRequest.Resolver.AppName = "TrackableCouponsWS";
        m_common = CurrentRequest.Resolver.Resolve <CMS.AMS.Common>();
        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_trackableCoupon = CurrentRequest.Resolver.Resolve <ITrackableCouponService>();
    }
Exemplo n.º 4
0
    private void Shutdown()
    {
        if (m_common.LXS_Connection_State() != ConnectionState.Closed)
        {
            m_common.Close_LogixXS();
        }
        if (m_common.LRT_Connection_State() != ConnectionState.Closed)
        {
            m_common.Close_LogixRT();
        }

        m_connectorInc = null;
        m_common       = null;
        m_logger       = null;
        m_errHandler   = null;
        m_phraseLib    = null;
        m_buyerRole    = null;
    }
    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>();
    }