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

                HostUrl = ConfigurationManager.AppSettings["PDNAHostUrl"],
                PDNAImageServiceKey = ConfigurationManager.AppSettings["PDNAServiceKey"],
                PDNAImageServicePath = ConfigurationManager.AppSettings["PDNAImageServicePath"],
            };
        }
Exemplo n.º 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");
            }
        }
Exemplo n.º 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;
 }