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

Initialize() public method

Initializes the provider with the specified values.
public Initialize ( string name, NameValueCollection configValue ) : void
name string The name of the provider.
configValue System.Collections.Specialized.NameValueCollection Provider specific attributes.
return void
        public override void Initialize(string name, NameValueCollection configValue)
        {
            base.Initialize(name, configValue);
            ServiceName = configValue.GetStringValue("serviceName", "");
            ServiceMachineName = configValue.GetStringValue("serviceMachineName", "");
            OutputFileNameToWatch = configValue.GetStringValue("outputFileNameToWatch", "");
            OutputFileExpectedAgeMinutes = configValue.GetInt32Value("outputFileExpectedAgeMinutes", 0);
            OutputFileMaxAgeMinutes = configValue.GetInt32Value("outputFileMaxAgeMinutes", 60);
            AssertConfigurationValid();
        }