Candor.Tasks.ServiceProcess.ServiceMonitorWorkerRoleTask.AssertConfigurationValid C# (CSharp) Method

AssertConfigurationValid() protected method

Ensures the configuration is valid, otherwise it throws an ArgumentException.
protected AssertConfigurationValid ( ) : void
return void
        protected virtual void AssertConfigurationValid()
        {
            if (String.IsNullOrWhiteSpace(OutputFileNameToWatch) && String.IsNullOrWhiteSpace(ServiceName))
                throw new ArgumentException("No Service or File was specified to be watched.");
        }