Switcheroo.Toggles.LocateByNameStrategy.LocateByNameStrategy C# (CSharp) Method

LocateByNameStrategy() public method

Initializes a new instance of the LocateByNameStrategy class.
public LocateByNameStrategy ( IFeatureConfiguration featureConfiguration, string toggleName ) : System
featureConfiguration IFeatureConfiguration The feature configuration to find the toggle in.
toggleName string The name of the toggle to find.
return System
        public LocateByNameStrategy(IFeatureConfiguration featureConfiguration, string toggleName)
        {
            if (featureConfiguration == null)
            {
                throw new ArgumentNullException("featureConfiguration");
            }

            if (toggleName == null)
            {
                throw new ArgumentNullException("toggleName");
            }

            this.featureConfiguration = featureConfiguration;
            this.toggleName = toggleName;
        }
LocateByNameStrategy