Interface IReportResourceConfiguration
Defines functionality for reading resource configuration for the default IResourceLocator.
Namespace: Sartorius.SAF.ReportGenerator
Assembly: Sartorius.SAF.ReportGenerator.dll
Syntax
[InheritedExport]
public interface IReportResourceConfiguration
Examples
The following example shows how to configure
using System.Collections.Generic;
using System.Reflection;
using Sartorius.SAF.ReportGenerator;
namespace Sartorius.SAF.Documentation.Examples.ReportGenerator
{
internal class ReportResourceConfiguration : IReportResourceConfiguration
{
public IEnumerable<Assembly> FallbackAssemblies
{
get
{
// Add any assembly that contain resources relevant to reporting.
// E.g. your base reporting assembly containing base xslt files or global resource assemblies.
yield return Assembly.GetExecutingAssembly();
yield return typeof(GlobalResources).Assembly;
}
}
}
}
Properties
View SourceFallbackAssemblies
Gets the fallback assemblies used to read resources from when a resource for a given key cannot be found in the resource the template resides in.
Declaration
IEnumerable<Assembly> FallbackAssemblies { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Reflection.Assembly> |