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.
SerializationOptions.cs
Go to the documentation of this file.
1
//-----------------------------------------------------------------------
2
// <copyright file="SerializationOptions.cs" company="Marimer LLC">
3
// Copyright (c) Marimer LLC. All rights reserved.
4
// Website: https://cslanet.com
5
// </copyright>
6
// <summary>Use this type to configure the settings for serialization.</summary>
7
//-----------------------------------------------------------------------
8
using
System;
9
using
Csla
.
Serialization
.
Mobile
;
10
11
namespace
Csla.Configuration
12
{
16
public
class
SerializationOptions
17
{
24
public
SerializationOptions
SerializationFormatter
(Type formatterType)
25
{
26
ApplicationContext
.
SerializationFormatter
= formatterType;
27
return
this
;
28
}
29
34
public
SerializationOptions
MobileWriter<T>
() where T :
ICslaWriter
35
{
36
CslaReaderWriterFactory.WriterType = typeof(T);
37
return
this
;
38
}
39
44
public
SerializationOptions
MobileReader<T>
() where T :
ICslaReader
45
{
46
CslaReaderWriterFactory.ReaderType = typeof(T);
47
return
this
;
48
}
49
}
50
}
Csla.ApplicationContext
Provides consistent context information between the client and server DataPortal objects.
Definition:
ApplicationContext.cs:22
Csla.ApplicationContext.SerializationFormatter
static Type SerializationFormatter
Gets the serialization formatter type used by CSLA .NET for all explicit object serialization (such a...
Definition:
ApplicationContext.cs:218
Csla.Configuration.SerializationOptions
Use this type to configure the settings for serialization.
Definition:
SerializationOptions.cs:17
Csla.Configuration.SerializationOptions.MobileReader< T >
SerializationOptions MobileReader< T >()
Sets type of the writer that is used to read data to serialization stream in SerializationFormatterFa...
Definition:
SerializationOptions.cs:44
Csla.Configuration.SerializationOptions.MobileWriter< T >
SerializationOptions MobileWriter< T >()
Sets type of the writer that is used to write data to serialization stream in SerializationFormatterF...
Definition:
SerializationOptions.cs:34
Csla.Configuration.SerializationOptions.SerializationFormatter
SerializationOptions SerializationFormatter(Type formatterType)
Sets the serialization formatter type used by CSLA .NET for all explicit object serialization (such a...
Definition:
SerializationOptions.cs:24
Csla.Serialization.Mobile.ICslaReader
Represents a reader class that can be used to read the data sent across the wire in byte array format...
Definition:
ICslaReader.cs:12
Csla.Serialization.Mobile.ICslaWriter
Represents a class that can be used to write a list of SerializationInfo objects into a stream,...
Definition:
ICslaWriter.cs:12
Csla.Configuration
Definition:
Csla.AspNetCore/ConfigurationExtensions.cs:20
Csla.Serialization.Mobile
Definition:
AssemblyNameTranslator.cs:11
Csla.Serialization
Definition:
AutoNonSerializedAttribute.cs:11
Csla
Definition:
BusinessRuleCases.cs:5
Generated by
1.9.2