internal LazyAsyncResult(object myObject, object myState, AsyncCallback myCallBack, object result)
{
if (result == DBNull.Value)
{
NetEventSource.Fail(this, "Result can't be set to DBNull - it's a special internal value.");
}
_asyncObject = myObject;
_asyncState = myState;
_asyncCallback = myCallBack;
_result = result;
_intCompleted = 1;
if (_asyncCallback != null)
{
if (NetEventSource.IsEnabled) NetEventSource.Info(this, "Invoking callback");
_asyncCallback(this);
}
else
{
if (NetEventSource.IsEnabled) NetEventSource.Info(this, "No callback to invoke");
}
if (NetEventSource.IsEnabled) NetEventSource.Info(this, "(pre-completed)");
}