NServiceBus.InstanceMappingFileMonitor.ReloadData C# (CSharp) Method

ReloadData() public method

public ReloadData ( ) : void
return void
        public void ReloadData()
        {
            try
            {
                var doc = fileAccess.Load(filePath);
                var instances = parser.Parse(doc);
                LogChanges(instances, filePath);
                endpointInstances.AddOrReplaceInstances("InstanceMappingFile", instances);
            }
            catch (Exception ex)
            {
                throw new Exception($"An error occurred while reading the endpoint instance mapping file at {filePath}. See the inner exception for more details.", ex);
            }
        }