Results 1 to 5 of 5

Thread: ICE for Silverlight and ICEStorm

  1. #1
    JvD
    JvD is offline Registered User
    Name: Joost van Doorn
    Organization: Moba
    Project: Main Control Software
    Join Date
    Dec 2008
    Posts
    22

    ICE for Silverlight and ICEStorm

    Hello,

    I have written an ICE server running on Linux (C++) and an ICE client running on Windows (C#, WinForms). The server and the client use the publish-subscribe mechanism (IceStorm).
    Now I would like write an ICE Client based on Silverlight. Since the ICE Client has to create an implementation to get a notification from server to client I need to include a reference to IceStorm in my Silverlight project. ICEStorm can however not be included into the Silverlight since the DLL is not built against Silverlight.

    I wonder if it is possible to create a Silverlight ICE client and use the ICEStorm publish-subscribe mechanism. If so which steps must I take to create such a client.

  2. #2
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    In order to use the IceStorm API from your Silverlight client you will need to compile the Icestorm slice file (IceStorm.ice) yourself with the Slice-to-Silverlight slice compiler (slice2sl) and then include the generated file in your project. Note that when you run slice2sl on IceStorm.ice you will need to use the --ice option since it uses namespaces reserved for internal Ice usage.

  3. #3
    JvD
    JvD is offline Registered User
    Name: Joost van Doorn
    Organization: Moba
    Project: Main Control Software
    Join Date
    Dec 2008
    Posts
    22
    Sorry for the very late response. Due to the holiday season I just started up again.

    I made a copy of the slice folder of Ice-3.3.0-VC9.0 and executed slice2sl on the IceStorm.ice using the options:
    - I: to set the include path to the other ICE files.
    - ice: to permit the ICE prefix.

    I added the resulting IceStorm.cs to my project. When building my project I get error "The type or namespace name 'SliceChecksumDictHelper' does not exist in the namespace 'Ice' (are you missing an assembly reference?)".

    So it seems that just slicing IceStorm.ice does not do the trick, or I am missing the point.

    What strikes is that the ICE for silverlight source code does not contain the same number of ice files as ICE 3.3.0. Why is that?

    Could you please provide me with some additional directions on how to use IceStorm in my silverlight UI.

    Best regards,

    Joost van Doorn

  4. #4
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    You also need to compile SliceChecksumDict.ice as well as it is used by IceStorm.ice. IceStorm.ice also includes Identity.ice but I don't think it should be necessary to compile Identity.ice as the types it defines are not actually used in IceStorm.ice.

  5. #5
    kwaclaw is offline Registered User
    Name: Karl Waclawek
    Organization: Personal
    Project: Whiteboard application
    Join Date
    Sep 2004
    Location
    Oshawa, Canada
    Posts
    159
    Quote Originally Posted by dwayne View Post
    You also need to compile SliceChecksumDict.ice as well as it is used by IceStorm.ice. IceStorm.ice also includes Identity.ice but I don't think it should be necessary to compile Identity.ice as the types it defines are not actually used in IceStorm.ice.
    Yes, I can confirm.
    You need IceStorm.ice, SliceChecksumDict.ice and Identity.ice, but only the first two need to be compiled.

    Karl
    Karl Waclawek

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Subscribing to ICEStorm events within Silverlight
    By schreuders in forum Projects
    Replies: 1
    Last Post: 11-24-2010, 03:59 PM
  2. ICE for Silverlight
    By kwaclaw in forum Comments
    Replies: 10
    Last Post: 01-13-2009, 08:03 AM
  3. Ice for Silverlight 0.3.0 released
    By xdm in forum Announcements
    Replies: 0
    Last Post: 09-17-2008, 01:09 PM
  4. Ice for Silverlight 0.2.0 released
    By dwayne in forum Announcements
    Replies: 0
    Last Post: 06-16-2008, 12:03 PM
  5. Silverlight and ICE
    By kwaclaw in forum Comments
    Replies: 2
    Last Post: 06-21-2007, 01:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •