예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DatabaseServerRegistrar"/> class.
        /// </summary>
        /// <param name="registrationService">The registration service.</param>
        /// <param name="options">Some options.</param>
        public DatabaseServerRegistrar(Lazy <IServerRegistrationService> registrationService, DatabaseServerRegistrarOptions options)
        {
            if (registrationService == null)
            {
                throw new ArgumentNullException("registrationService");
            }
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            Options = options;
            _registrationService = registrationService;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="DatabaseServerRegistrar"/> class.
 /// </summary>
 /// <param name="registrationService">The registration service.</param>
 /// <param name="options">Some options.</param>
 public DatabaseServerRegistrar(Lazy <IServerRegistrationService> registrationService, DatabaseServerRegistrarOptions options)
 {
     Options = options ?? throw new ArgumentNullException(nameof(options));
     _registrationService = registrationService ?? throw new ArgumentNullException(nameof(registrationService));
 }