Example #1
0
    static void LoadADService(string serviceName)
    {
        if (serviceName == "null")
        {
            return;
        }

        Type serviceType = Type.GetType(serviceName);

        s_ADService = (ADInterface)Activator.CreateInstance(serviceType);
    }
Example #2
0
    static void LoadService(SchemeData data)
    {
        s_loginService = (LoginInterface)AnalysisConfig(data.LoginScheme);
        s_ADService    = (ADInterface)AnalysisConfig(data.ADScheme);
        s_payService   = (PayInterface)AnalysisConfig(data.PayScheme);

        s_logServiceList = new List <LogInterface>();
        for (int i = 0; i < data.LogScheme.Count; i++)
        {
            s_logServiceList.Add((LogInterface)AnalysisConfig(data.LogScheme[i]));
        }

        s_otherServiceList = new List <OtherSDKInterface>();
        for (int i = 0; i < data.OtherScheme.Count; i++)
        {
            s_otherServiceList.Add((OtherSDKInterface)AnalysisConfig(data.OtherScheme[i]));
        }
    }