CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
ChildDataPortalFactory.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="ChildDataPortalFactory.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Implements a data portal service</summary>
7//-----------------------------------------------------------------------
8using System;
9
10namespace Csla.Server
11{
17 {
22 public ChildDataPortalFactory(IServiceProvider serviceProvider)
23 {
24 ServiceProvider = serviceProvider;
25 }
26
27 private IServiceProvider ServiceProvider { get; set; }
28
34 {
35 return (IChildDataPortal<T>)ServiceProvider.GetService(typeof(IChildDataPortal<T>));
36 }
37 }
38}
Get an access to a Child data portal instance.
ChildDataPortalFactory(IServiceProvider serviceProvider)
Creates an instance of the type.
IChildDataPortal< T > GetPortal< T >()
Get a client-side data portal instance.
Defines a data portal service used to get an access to a client-side data portal instance.
Interface defining the members of the child data portal type.