public abstract class Element32<TKey, TEventArgs, TList, TItem>
: Element3<TKey, TEventArgs> , IElement2<TKey, TItem>, IHaveUri
where TItem : class, IElement1<TKey>, IHaveKey<TKey> //, IHaveInit
// where TItem : class, IHaveKey<TKey> // , IHaveInit
where TList : IContainer<TKey, TItem>
where TEventArgs : IEventArgs
//where TList : ICollection<TItem>
{
[XmlIgnore]
public TList Collection;
public IEnumerable<TItem> Items => Collection.Items;
public string Uri { get; set; }
public string XPath { get; set; }
public string UriXPath => Uri + "@" + XPath;
public override void Init(IEventLog evl)
----------------------------------------------------------------
public class EventHub3 : Element32<string, IEventArgs, DictionaryContainer<string, EventHubItem3>, EventHubItem3>
{
//public bool IsQueueEnabled { get; set; }
public List<EventHubItem3> EventHubItems { get; set; }
// protected EventArgsQueue Queue;
private readonly object _locker;
public EventHub3()
{
EventHubItems = new List<EventHubItem3>();
Collection = new DictionaryContainer<string, EventHubItem3>();
//Queue = new EventArgsQueue();
_locker = new object();
}
------------------------------------------------------------
public class TaskProcess02 : Element32<string, IEventArgs1,
DictionaryContainer<string, UnitOfWork>, UnitOfWork>
{
//public bool IsQueueEnabled { get; set; }
public List<EventHubItem3> EventHubItems { get; set; }
// protected EventArgsQueue Queue;
private readonly object _locker;
protected ProcessTask02 Task { get; set; }
public TaskProcess02()
{
EventHubItems = new List<EventHubItem3>();
Collection = new DictionaryContainer<string, UnitOfWork>();
Task = new ProcessTask02 { Parent = this, TimeInterval = 5000 };
//Queue = new EventArgsQueue();
_locker = new object();
}
: Element3<TKey, TEventArgs> , IElement2<TKey, TItem>, IHaveUri
where TItem : class, IElement1<TKey>, IHaveKey<TKey> //, IHaveInit
// where TItem : class, IHaveKey<TKey> // , IHaveInit
where TList : IContainer<TKey, TItem>
where TEventArgs : IEventArgs
//where TList : ICollection<TItem>
{
[XmlIgnore]
public TList Collection;
public IEnumerable<TItem> Items => Collection.Items;
public string Uri { get; set; }
public string XPath { get; set; }
public string UriXPath => Uri + "@" + XPath;
public override void Init(IEventLog evl)
----------------------------------------------------------------
public class EventHub3 : Element32<string, IEventArgs, DictionaryContainer<string, EventHubItem3>, EventHubItem3>
{
//public bool IsQueueEnabled { get; set; }
public List<EventHubItem3> EventHubItems { get; set; }
// protected EventArgsQueue Queue;
private readonly object _locker;
public EventHub3()
{
EventHubItems = new List<EventHubItem3>();
Collection = new DictionaryContainer<string, EventHubItem3>();
//Queue = new EventArgsQueue();
_locker = new object();
}
------------------------------------------------------------
public class TaskProcess02 : Element32<string, IEventArgs1,
DictionaryContainer<string, UnitOfWork>, UnitOfWork>
{
//public bool IsQueueEnabled { get; set; }
public List<EventHubItem3> EventHubItems { get; set; }
// protected EventArgsQueue Queue;
private readonly object _locker;
protected ProcessTask02 Task { get; set; }
public TaskProcess02()
{
EventHubItems = new List<EventHubItem3>();
Collection = new DictionaryContainer<string, UnitOfWork>();
Task = new ProcessTask02 { Parent = this, TimeInterval = 5000 };
//Queue = new EventArgsQueue();
_locker = new object();
}
Комментариев нет:
Отправить комментарий