public void Initialize()
        {
            this.pdnaServiceOptions = new PDNAServiceOptions
            {

                HostUrl = ConfigurationManager.AppSettings["PDNAHostUrl"],
                PDNAImageServiceKey = ConfigurationManager.AppSettings["PDNAServiceKey"],
                PDNAImageServicePath = ConfigurationManager.AppSettings["PDNAImageServicePath"],
            };
        }
Пример #2
0
        /// <summary>
        /// Validate request options
        /// </summary>
        /// <param name="options"></param>
        private void ValidateOptions(PDNAServiceOptions options)
        {
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            if (options.HostUrl == null)
            {
                throw new ArgumentNullException("options");
            }
        }
        /// <summary>
        /// Validate request options
        /// </summary>
        /// <param name="options"></param>
        private void ValidateOptions(PDNAServiceOptions options)
        {
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            if (options.HostUrl == null)
            {
                throw new ArgumentNullException("options");
            }
        }
Пример #4
0
 /// <summary>
 /// Main constructor for the Moderator Service
 /// </summary>
 /// <param name="options">Request options</param>
 public PDNAService(PDNAServiceOptions options)
 {
     this.ValidateOptions(options);
     this.options = options;
 }
 /// <summary>
 /// Main constructor for the Moderator Service
 /// </summary>
 /// <param name="options">Request options</param>
 public PDNAService(PDNAServiceOptions options)
 {
     this.ValidateOptions(options);
     this.options = options;
 }