Pavel Tupitsyn created IGNITE-5787:
--------------------------------------
Summary: .NET: Ignite entities (ICache, ICompute) cause weird serialization errors when used as fields in user object
Key: IGNITE-5787
URL:
https://issues.apache.org/jira/browse/IGNITE-5787 Project: Ignite
Issue Type: Bug
Components: platforms
Affects Versions: 1.6
Reporter: Pavel Tupitsyn
Priority: Minor
Fix For: 2.2
Common use case is using Ignite cache inside Compute:
{code}
class MyAction : IComputeAction
{
private readonly ICache<int, string> _cache;
...
}
{code}
This fails with a weird error:
{code}
class org.apache.ignite.IgniteException: Cannot serialize delegates over unmanaged function pointers, dynamic methods or methods outside the delegate creator's assembly.
{code}
We should consider providing a helpful error message, or handling this the same way as {{Ignite}} class is handled in {{BinarySystemHandlers.FindWriteHandler}}.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)