Skip to content

Commit 0ae0fd2

Browse files
committed
Removing BeginXxx/EndXxx methods (for proper non-blocking implementation) (DNET-891).
1 parent 6f63a57 commit 0ae0fd2

File tree

1 file changed

+0
-48
lines changed
  • Provider/src/FirebirdSql.Data.FirebirdClient/FirebirdClient

1 file changed

+0
-48
lines changed

Provider/src/FirebirdSql.Data.FirebirdClient/FirebirdClient/FbCommand.cs

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
using System.Text;
2424
using System.Collections.Generic;
2525
using System.Diagnostics;
26-
#if !NETSTANDARD1_6 && !NETSTANDARD2_0
27-
using System.Runtime.Remoting.Messaging;
28-
#endif
2926

3027
using FirebirdSql.Data.Common;
3128

@@ -465,17 +462,6 @@ public override int ExecuteNonQuery()
465462

466463
return RecordsAffected;
467464
}
468-
#if !NETSTANDARD1_6 && !NETSTANDARD2_0
469-
public IAsyncResult BeginExecuteNonQuery(AsyncCallback callback, object objectState)
470-
{
471-
// BeginInvoke might be slow, but the query processing will make this irrelevant
472-
return ((Func<int>)ExecuteNonQuery).BeginInvoke(callback, objectState);
473-
}
474-
public int EndExecuteNonQuery(IAsyncResult asyncResult)
475-
{
476-
return ((Func<int>)(asyncResult as AsyncResult).AsyncDelegate).EndInvoke(asyncResult);
477-
}
478-
#endif
479465

480466
public new FbDataReader ExecuteReader()
481467
{
@@ -504,29 +490,6 @@ public int EndExecuteNonQuery(IAsyncResult asyncResult)
504490

505491
return _activeReader;
506492
}
507-
#if !NETSTANDARD1_6 && !NETSTANDARD2_0
508-
public IAsyncResult BeginExecuteReader(AsyncCallback callback, object objectState)
509-
{
510-
// BeginInvoke might be slow, but the query processing will make this irrelevant
511-
return ((Func<FbDataReader>)ExecuteReader).BeginInvoke(callback, objectState);
512-
}
513-
public IAsyncResult BeginExecuteReader(CommandBehavior behavior, AsyncCallback callback, object objectState)
514-
{
515-
// BeginInvoke might be slow, but the query processing will make this irrelevant
516-
return ((Func<CommandBehavior, FbDataReader>)ExecuteReader).BeginInvoke(behavior, callback, objectState);
517-
}
518-
public FbDataReader EndExecuteReader(IAsyncResult asyncResult)
519-
{
520-
if ((asyncResult as AsyncResult).AsyncDelegate is Func<FbDataReader>)
521-
{
522-
return ((Func<FbDataReader>)(asyncResult as AsyncResult).AsyncDelegate).EndInvoke(asyncResult);
523-
}
524-
else
525-
{
526-
return ((Func<CommandBehavior, FbDataReader>)(asyncResult as AsyncResult).AsyncDelegate).EndInvoke(asyncResult);
527-
}
528-
}
529-
#endif
530493

531494
public override object ExecuteScalar()
532495
{
@@ -572,17 +535,6 @@ public override object ExecuteScalar()
572535

573536
return val;
574537
}
575-
#if !NETSTANDARD1_6 && !NETSTANDARD2_0
576-
public IAsyncResult BeginExecuteScalar(AsyncCallback callback, object objectState)
577-
{
578-
// BeginInvoke might be slow, but the query processing will make this irrelevant
579-
return ((Func<object>)ExecuteScalar).BeginInvoke(callback, objectState);
580-
}
581-
public object EndExecuteScalar(IAsyncResult asyncResult)
582-
{
583-
return ((Func<object>)(asyncResult as AsyncResult).AsyncDelegate).EndInvoke(asyncResult);
584-
}
585-
#endif
586538

587539
#endregion
588540

0 commit comments

Comments
 (0)