init
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* DTS.Slice.Control.Event.Module.Channel.DataValues.cs
|
||||
*
|
||||
* Copyright © 2009
|
||||
* Diversified Technical Systems, Inc.
|
||||
* All Rights Reserved
|
||||
*/
|
||||
|
||||
using DTS.Common.Utilities;
|
||||
using DTS.Common.Utilities.DotNetProgrammingConstructs;
|
||||
|
||||
namespace DTS.Slice.Control
|
||||
{
|
||||
// *** see DTS.Slice.Control.Event.cs ***
|
||||
public partial class Event {
|
||||
|
||||
// *** see DTS.Slice.Control.Event.Module.cs ***
|
||||
public partial class Module {
|
||||
|
||||
// *** see DTS.Slice.Control.Event.Module.Channel.cs ***
|
||||
public partial class Channel {
|
||||
|
||||
/// <summary>
|
||||
/// Representation of a channel's data.
|
||||
/// </summary>
|
||||
public class DataValues : Exceptional
|
||||
{
|
||||
/// <summary>
|
||||
/// Initialize an instance of this class.
|
||||
/// </summary>
|
||||
public DataValues( )
|
||||
: this( true )
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initialize an instance of this class.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="useMemoryMappedFile">
|
||||
/// A <see cref="bool"/> determining whether or not this data class will use memory mapped files
|
||||
/// to store data (necessary for data sets that exceed internal process memory limitations).
|
||||
/// </param>
|
||||
///
|
||||
public DataValues( bool useMemoryMappedFile )
|
||||
{
|
||||
try
|
||||
{
|
||||
UseMemoryMappedFile = useMemoryMappedFile;
|
||||
|
||||
if ( UseMemoryMappedFile )
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
catch ( System.Exception ex )
|
||||
{
|
||||
throw new Exception( "encountered problem constructing " + GetType( ).FullName, ex );
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get/set the switch that will cause this class to use memory mapped files in lieu
|
||||
/// of in-memory list.
|
||||
/// </summary>
|
||||
public bool UseMemoryMappedFile
|
||||
{
|
||||
get => _UseMemoryMappedFile.Value;
|
||||
set => _UseMemoryMappedFile.Value = value;
|
||||
}
|
||||
private readonly Property<bool> _UseMemoryMappedFile =
|
||||
new Property<bool>(
|
||||
typeof( DataValues ).Namespace + ".UseMemoryMappedFile",
|
||||
false,
|
||||
false
|
||||
);
|
||||
}
|
||||
} // *** End Event.Module.Channel ***
|
||||
} // *** End Event.Module ***
|
||||
} // *** End Event ***
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* IProgressAware.cs
|
||||
*
|
||||
* Copyright © 2009
|
||||
* Diversified Technical Systems, Inc.
|
||||
* All Rights Reserved
|
||||
*/
|
||||
|
||||
namespace DTS.Serialization
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface for receiving progress updates from DTS.Serialization-based objects.
|
||||
/// </summary>
|
||||
interface IProgressAware
|
||||
{
|
||||
/// <summary>
|
||||
/// <see cref="DTS.Serialization.EventHandler"/> to notify subscribers of begin serialization task events.
|
||||
/// </summary>
|
||||
event BeginEventHandler OnBegin;
|
||||
|
||||
/// <summary>
|
||||
/// <see cref="DTS.Serialization.EventHandler"/> to notify subscribers of end serialization task events.
|
||||
/// </summary>
|
||||
event EndEventHandler OnEnd;
|
||||
|
||||
/// <summary>
|
||||
/// <see cref="DTS.Seralization.EventHandler"/> to notify subscribers of serialization task-tick notified.
|
||||
/// </summary>
|
||||
event TickEventHandler OnTick;
|
||||
|
||||
/// <summary>
|
||||
/// notify subscribers of serialization cancelled
|
||||
/// </summary>
|
||||
event CancelEventHandler OnCancel;
|
||||
|
||||
/// <summary>
|
||||
/// notify subscribers of serialization fatal errored
|
||||
/// </summary>
|
||||
event ErrorEventHandler OnError;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user