/// <summary>
 /// init
 /// </summary>
 /// <param name="thriftClient"></param>
 /// <param name="config"></param>
 /// <exception cref="ArgumentNullException">thriftClient is null</exception>
 /// <exception cref="ArgumentNullException">config is null</exception>
 public void Init(ThriftClient thriftClient, Config.ServiceConfig config)
 {
     if (thriftClient == null) throw new ArgumentNullException("thriftClient");
     if (config == null) throw new ArgumentNullException("config");
     this._thriftClient = thriftClient;
     this._config = config;
 }
        /// <summary>
        /// init
        /// </summary>
        /// <param name="thriftClient"></param>
        /// <param name="config"></param>
        /// <exception cref="ArgumentNullException">thriftClient is null</exception>
        /// <exception cref="ArgumentNullException">config is null</exception>
        public void Init(ThriftClient thriftClient, Config.ServiceConfig config)
        {
            if (thriftClient == null) throw new ArgumentNullException("thriftClient");
            if (config == null) throw new ArgumentNullException("config");

            this._thriftClient = thriftClient;
            this._config = config;
            this._methods = string.Join(",", Type.GetType(config.Client).GetInterfaces()[0].GetMethods().Select(c => c.Name).ToArray());
        }