Пример #1
0
        /// <summary>
        /// Validate request options
        /// </summary>
        /// <param name="options"></param>
        private void ValidateOptions(ModeratorServiceOptions options)
        {
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

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