ActiveReports 18 .NET Edition
MESCIUS.ActiveReports.Aspnetcore.Designer Assembly / GrapeCity.ActiveReports.Aspnetcore.Designer Namespace / DesignerSettings Class / UseSharedDataSources Method
Example

In This Topic
    UseSharedDataSources Method (DesignerSettings)
    In This Topic
    Sets the shared data source service for loading shared data sources from a custom storage.
    Syntax
    'Declaration
     
    Public Sub UseSharedDataSources( _
       ByVal sharedDataSourceService As ISharedDataSourceService _
    ) 
    public void UseSharedDataSources( 
       ISharedDataSourceService sharedDataSourceService
    )

    Parameters

    sharedDataSourceService
    Example
    // Implement the ISharedDataSourceService. 
    // Please refer to our web samples for more details.
    public class SharedDataSourceService : ISharedDataSourceService
    {
    	//implementation
    }
    
    // Add service to middleware
    app.UseDesigner(config =>
    {
    	config.UseSharedDataSources(sharedDataSourceService);
    });
    See Also