Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of watcher without mapper #231

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions TableDependency.SqlClient/Base/Abstracts/ITableDependency.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#region License

// TableDependency, SqlTableDependency
// Copyright (c) 2015-2020 Christian Del Bianco. All rights reserved.
//
Expand All @@ -22,7 +23,8 @@
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.
#endregion

#endregion License

using System;
using System.Diagnostics;
Expand All @@ -39,16 +41,18 @@ public interface ITableDependency : IDisposable
#region Events

event ErrorEventHandler OnError;

event StatusEventHandler OnStatusChanged;

#endregion
#endregion Events

#region Methods

void Start(int timeOut = 120, int watchDogTimeOut = 180);

void Stop();

#endregion
#endregion Methods

#region Properties

Expand All @@ -61,7 +65,7 @@ public interface ITableDependency : IDisposable
string TableName { get; }
string SchemaName { get; }

#endregion
#endregion Properties
}

public interface ITableDependency<T> : ITableDependency where T : class, new()
Expand All @@ -70,6 +74,15 @@ public interface ITableDependency : IDisposable

event ChangedEventHandler<T> OnChanged;

#endregion
#endregion Events
}

public interface IDynamicTableDependency : ITableDependency
{
#region Events

event ChangedEventHandler OnChanged;

#endregion Events
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#region License

// TableDependency, SqlTableDependency
// Copyright (c) 2015-2020 Christian Del Bianco. All rights reserved.
//
Expand All @@ -22,11 +23,14 @@
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.
#endregion

#endregion License

using TableDependency.SqlClient.Base.EventArgs;

namespace TableDependency.SqlClient.Base.Delegates
{
public delegate void ChangedEventHandler(object sender, DynamicRecordChangedEventArgs e);

public delegate void ChangedEventHandler<T>(object sender, RecordChangedEventArgs<T> e) where T : class, new();
}
Loading