Exemple #1
0
        public override IApolloServiceBase GetService(int type)
        {
            switch (type)
            {
            case 0x3e8:
                return(TssService.Instance);

            case 0x3e9:
                return(ApolloNetworkService.Intance);

            case 2:
                return(ApolloPayService.Instance);
            }
            PluginBase currentPlugin = PluginManager.Instance.GetCurrentPlugin();

            if (currentPlugin == null)
            {
                return(null);
            }
            return(currentPlugin.GetService(type));
        }
Exemple #2
0
        public override IApolloServiceBase GetService(int type)
        {
            if (type == 1000)
            {
                return(TssService.Instance);
            }
            if (type == 1001)
            {
                return(ApolloNetworkService.Intance);
            }
            if (type == 2)
            {
                return(ApolloPayService.Instance);
            }
            PluginBase currentPlugin = PluginManager.Instance.GetCurrentPlugin();

            if (currentPlugin == null)
            {
                return(null);
            }
            return(currentPlugin.GetService(type));
        }