Ejemplo n.º 1
0
 /// <inheritdoc />
 public override void ValidateDependencies(IServerServiceProvider services)
 {
     if (string.IsNullOrEmpty(databaseSettings.ConnectionString))
     {
         throw new ConfigurationException("Connection string is required.");
     }
 }
Ejemplo n.º 2
0
        /// <inheritdoc />
        public override void ValidateDependencies(IServerServiceProvider services)
        {
            if (string.IsNullOrEmpty(x42ClientSettings.Name))
            {
                throw new ConfigurationException("x42Client Name setting must be set.");
            }

            if (x42ClientSettings.Port <= 0)
            {
                throw new ConfigurationException("x42Client Port setting must be set.");
            }

            if (x42ClientSettings.Address.AddressFamily == System.Net.Sockets.AddressFamily.Unknown)
            {
                throw new ConfigurationException("x42Client Address setting must be set, and a valid IP address.");
            }
        }
Ejemplo n.º 3
0
 /// <inheritdoc />
 public virtual void ValidateDependencies(IServerServiceProvider services)
 {
 }
Ejemplo n.º 4
0
 /// <inheritdoc />
 public override void ValidateDependencies(IServerServiceProvider services)
 {
 }
Ejemplo n.º 5
0
 /// <inheritdoc />
 public override void ValidateDependencies(IServerServiceProvider services)
 {
     // TODO: Check settings and verify features here, then throw exception if not valid
     // Example: throw new ConfigurationException("Something went wrong.");
 }