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.
CommandObjectFactory.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="CommandObjectFactory.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>no summary</summary>
7//-----------------------------------------------------------------------
8using System;
9using System.Collections.Generic;
10using System.Linq;
11using System.Text;
12
14{
15 public class CommandObjectFactory : Csla.Server.ObjectFactory
16 {
17 public CommandObjectFactory(ApplicationContext applicationContext) : base(applicationContext)
18 {
19 }
20
21 [RunLocal]
22 public object Create()
23 {
25 }
26
27 public object Execute(CommandObject command)
28 {
29 command.Result = true;
30 return command;
31 }
32 }
33}
Provides consistent context information between the client and server DataPortal objects.
object CreateInstanceDI(Type objectType, params object[] parameters)
Creates an object using 'Activator.CreateInstance' using service provider (if one is available) to po...
CommandObjectFactory(ApplicationContext applicationContext)