GithubHelp home page GithubHelp logo

Comments (4)

cangencer avatar cangencer commented on June 5, 2024

Are you using the same HZ RC version on both sides? The reason being there were some serialization changes between the EA releases and latest snapshots. You can try using the 3.6-EA2 Hazelcast releases. If you are still having issues, could you add some code demonstrating the problem you are experiencing?

from hazelcast-csharp-client.

alexvictoor avatar alexvictoor commented on June 5, 2024

Well on the dotnet side I am using version 3.6.0-EA , the only one available on nuget.org .
On the java side I am using hazelcast-3.6-RC2-20151203.155725-88.jar .
Below the code I am using on the java side:

    HazelcastInstance instance = Hazelcast.newHazelcastInstance(cfg);
    Map<Integer, String> mapCustomers = instance.getMap("customers");
    mapCustomers.put(1, "Joe");
    mapCustomers.put(2, "Ali");
    mapCustomers.put(3, "Avi");

On the C# side:

   var client = HazelcastClient.NewHazelcastClient(config);
   var map = client.GetMap<Int32, string>("customers");
   var entries = map.EntrySet().AsEnumerable();
   foreach (var keyValuePair in entries)
   {
       Console.Out.WriteLine(keyValuePair.Key  + " " + keyValuePair.Value);
   }

Let me know if there is something else I can try

from hazelcast-csharp-client.

cangencer avatar cangencer commented on June 5, 2024

Looks like the version on nuget is the previous EA version still. We will
have it updated, meanwhile you can download the latest EA from the website:
http://download.hazelcast.com/clients/3.6-EA2/hazelcast-csharp-client-3.6-EA2.zip

On Saturday, 5 December 2015, Alexandre Victoor [email protected]
wrote:

Well on the dotnet side I am using version 3.6.0-EA , the only one
available on nuget.org .
On the java side I am using hazelcast-3.6-RC2-20151203.155725-88.jar .
Below the code I am using on the java side:

HazelcastInstance instance = Hazelcast.newHazelcastInstance(cfg);
Map<Integer, String> mapCustomers = instance.getMap("customers");
mapCustomers.put(1, "Joe");
mapCustomers.put(2, "Ali");
mapCustomers.put(3, "Avi");

On the C# side:

var client = HazelcastClient.NewHazelcastClient(config);
var map = client.GetMap<Int32, string>("customers");
var entries = map.EntrySet().AsEnumerable();
foreach (var keyValuePair in entries)
{
Console.Out.WriteLine(keyValuePair.Key + " " + keyValuePair.Value);
}

Let me know if there is something else I can try


Reply to this email directly or view it on GitHub
#35 (comment)
.

from hazelcast-csharp-client.

alexvictoor avatar alexvictoor commented on June 5, 2024

Indeed this new version solves my problem!
Thanks! Hope it will be published soon.

from hazelcast-csharp-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.