Permalink
Browse files

Working on packaging, Maven & Nuget, fixed js samples

  • Loading branch information...
1 parent b086062 commit 7537294c0b7c5d43a06e5dbd303387c916d1c7de Cyprien Noel committed Nov 21, 2012
Showing with 1,084 additions and 685 deletions.
  1. +2 −0 .gitignore
  2. +6 −6 objectfabric.examples/csharp/01 HelloWorld/01 HelloWorld.csproj
  3. +1 −1 objectfabric.examples/csharp/01 HelloWorld/packages.config
  4. +6 −6 objectfabric.examples/csharp/05 ObjectModel/05 ObjectModel.csproj
  5. +1 −1 objectfabric.examples/csharp/05 ObjectModel/packages.config
  6. +12 −0 objectfabric.examples/csharp/Examples.sln
  7. +6 −0 objectfabric.examples/csharp/Sample Chat/App.config
  8. +42 −0 objectfabric.examples/csharp/Sample Chat/Program.cs
  9. +36 −0 objectfabric.examples/csharp/Sample Chat/Properties/AssemblyInfo.cs
  10. +80 −0 objectfabric.examples/csharp/Sample Chat/Sample Chat.csproj
  11. +4 −0 objectfabric.examples/csharp/Sample Chat/packages.config
  12. +6 −6 objectfabric.examples/csharp/Sample Images/Sample Images.csproj
  13. +1 −1 objectfabric.examples/csharp/Sample Images/packages.config
  14. +13 −2 objectfabric.examples/csharp/Site Demo/Program.cs
  15. +8 −7 objectfabric.examples/csharp/Site Demo/Site Demo.csproj
  16. +1 −1 objectfabric.examples/csharp/Site Demo/packages.config
  17. +1 −1 objectfabric.examples/gwt.01helloworld/pom.xml
  18. +1 −5 objectfabric.examples/gwt.sample_chat/src/main/java/examples/client/Main.java
  19. +1 −1 objectfabric.examples/java/pom.xml
  20. +6 −2 objectfabric.examples/java/src/main/java/sample_chat/ChatClient.java
  21. +3 −1 objectfabric.examples/java/src/main/java/sample_chat/ChatServer.java
  22. +3 −3 objectfabric.examples/js/pom.xml
  23. +10 −10 objectfabric.examples/js/src/main/webapp/01helloworld.html
  24. +1 −1 objectfabric.examples/js/src/main/webapp/05objectmodel.html
  25. +2 −2 objectfabric.examples/js/src/main/webapp/_readmefirst
  26. +28 −26 objectfabric.examples/js/src/main/webapp/sample_chat.html
  27. +1 −1 objectfabric.examples/js/src/main/webapp/site_demo.html
  28. +3 −0 objectfabric/android/.settings/org.eclipse.core.resources.prefs
  29. +4 −0 objectfabric/api/.settings/org.eclipse.core.resources.prefs
  30. +2 −0 objectfabric/clr/.settings/org.eclipse.core.resources.prefs
  31. +30 −39 objectfabric/clr/JUnit/Generated/SerializationTestReader.cs
  32. +30 −39 objectfabric/clr/JUnit/Generated/SerializationTestReaderUnknown.cs
  33. +29 −37 objectfabric/clr/JUnit/Generated/SerializationTestWriter.cs
  34. +29 −36 objectfabric/clr/JUnit/Generated/SerializationTestWriterUnknown.cs
  35. +1 −1 objectfabric/clr/ObjectFabric.nuspec
  36. +31 −44 objectfabric/clr/Shared2/Misc.cs
  37. +7 −44 objectfabric/clr/Shared2/TArray.cs
  38. +75 −0 objectfabric/clr/Shared2/TDictionary.cs
  39. +75 −0 objectfabric/clr/Shared2/TSet.cs
  40. +2 −2 objectfabric/clr/pom.xml
  41. +2 −0 objectfabric/extensions/.settings/org.eclipse.core.resources.prefs
  42. +4 −0 objectfabric/extensions/cachebuilder/.settings/org.eclipse.core.resources.prefs
  43. +2 −7 objectfabric/extensions/cachebuilder/pom.xml
  44. +4 −0 objectfabric/extensions/javafx/.settings/org.eclipse.core.resources.prefs
  45. +1 −1 objectfabric/extensions/javafx/pom.xml
  46. +4 −0 objectfabric/extensions/netty/.settings/org.eclipse.core.resources.prefs
  47. +1 −1 objectfabric/extensions/netty/pom.xml
  48. +4 −0 objectfabric/gwt/.settings/org.eclipse.core.resources.prefs
  49. +1 −1 objectfabric/gwt/pom.xml
  50. +3 −0 objectfabric/js/.settings/org.eclipse.core.resources.prefs
  51. +4 −15 objectfabric/js/pom.xml
  52. +1 −1 objectfabric/js/src/main/java/org/objectfabric/Closure.java
  53. +7 −6 objectfabric/js/src/main/java/org/objectfabric/JSCounter.java
  54. +16 −21 objectfabric/js/src/main/java/org/objectfabric/JSMap.java
  55. +7 −5 objectfabric/js/src/main/java/org/objectfabric/JSResource.java
  56. +16 −21 objectfabric/js/src/main/java/org/objectfabric/JSSet.java
  57. +0 −15 objectfabric/js/src/main/java/org/objectfabric/Main.java
  58. +14 −6 objectfabric/js/src/main/java/org/objectfabric/generated/JSArray.java
  59. +14 −6 objectfabric/js/src/main/java/org/objectfabric/generated/JSArrayBigDecimal.java
  60. +14 −6 objectfabric/js/src/main/java/org/objectfabric/generated/JSArrayBigInteger.java
  61. +14 −6 objectfabric/js/src/main/java/org/objectfabric/generated/JSArrayBinary.java
  62. +14 −6 objectfabric/js/src/main/java/org/objectfabric/generated/JSArrayBoolean.java
  63. +14 −6 objectfabric/js/src/main/java/org/objectfabric/generated/JSArrayByte.java
  64. +14 −6 objectfabric/js/src/main/java/org/objectfabric/generated/JSArrayCharacter.java
  65. +14 −6 objectfabric/js/src/main/java/org/objectfabric/generated/JSArrayDate.java
  66. +14 −6 objectfabric/js/src/main/java/org/objectfabric/generated/JSArrayDouble.java
  67. +14 −6 objectfabric/js/src/main/java/org/objectfabric/generated/JSArrayFloat.java
  68. +14 −6 objectfabric/js/src/main/java/org/objectfabric/generated/JSArrayInteger.java
  69. +14 −6 objectfabric/js/src/main/java/org/objectfabric/generated/JSArrayLong.java
  70. +14 −6 objectfabric/js/src/main/java/org/objectfabric/generated/JSArrayShort.java
  71. +14 −6 objectfabric/js/src/main/java/org/objectfabric/generated/JSArrayString.java
  72. +14 −6 objectfabric/js/src/main/java/org/objectfabric/generated/JSArrayTObject.java
  73. +14 −6 objectfabric/js/src/main/template/org/objectfabric/generated/JSArrayTemplate.java
  74. +4 −0 objectfabric/jvm/.settings/org.eclipse.core.resources.prefs
  75. +30 −39 objectfabric/jvm/src/test/serialization/org/objectfabric/SerializationTestReader.java
  76. +30 −39 objectfabric/jvm/src/test/serialization/org/objectfabric/SerializationTestReaderUnknown.java
  77. +29 −37 objectfabric/jvm/src/test/serialization/org/objectfabric/SerializationTestWriter.java
  78. +29 −36 objectfabric/jvm/src/test/serialization/org/objectfabric/SerializationTestWriterUnknown.java
  79. +42 −7 objectfabric/pom.xml
  80. +10 −0 objectfabric/release.properties
  81. +4 −0 objectfabric/tools/.settings/org.eclipse.core.resources.prefs
  82. +1 −6 objectfabric/tools/pom.xml
  83. +1 −2 objectfabric/tools/src/main/java/org/objectfabric/SerializationTestGenerator.java
  84. +3 −3 objectfabric/tools/src/main/java/org/objectfabric/TArrayTemplate.java
View
@@ -4,3 +4,5 @@
.externalToolBuilders
target
temp
+*.releaseBackup
+*.versionsBackup
@@ -41,27 +41,27 @@
<ItemGroup>
<Reference Include="IKVM.OpenJDK.Core, Version=7.1.4532.2, Culture=neutral, PublicKeyToken=13235d27fcbfff58, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\IKVM.OpenJDK.Core.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\IKVM.OpenJDK.Core.dll</HintPath>
</Reference>
<Reference Include="IKVM.Runtime, Version=7.1.4532.2, Culture=neutral, PublicKeyToken=13235d27fcbfff58, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\IKVM.Runtime.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\IKVM.Runtime.dll</HintPath>
</Reference>
<Reference Include="Java, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\Java.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\Java.dll</HintPath>
</Reference>
<Reference Include="ObjectFabric, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\ObjectFabric.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\ObjectFabric.dll</HintPath>
</Reference>
<Reference Include="Shared1, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\Shared1.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\Shared1.dll</HintPath>
</Reference>
<Reference Include="Shared2, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\Shared2.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\Shared2.dll</HintPath>
</Reference>
<Reference Include="System" />
</ItemGroup>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
- <package id="ObjectFabric" version="0.9.0.2" targetFramework="net45" />
+ <package id="ObjectFabric" version="0.9.0.3" targetFramework="net45" />
</packages>
@@ -41,27 +41,27 @@
<ItemGroup>
<Reference Include="IKVM.OpenJDK.Core, Version=7.1.4532.2, Culture=neutral, PublicKeyToken=13235d27fcbfff58, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\IKVM.OpenJDK.Core.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\IKVM.OpenJDK.Core.dll</HintPath>
</Reference>
<Reference Include="IKVM.Runtime, Version=7.1.4532.2, Culture=neutral, PublicKeyToken=13235d27fcbfff58, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\IKVM.Runtime.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\IKVM.Runtime.dll</HintPath>
</Reference>
<Reference Include="Java, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\Java.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\Java.dll</HintPath>
</Reference>
<Reference Include="ObjectFabric, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\ObjectFabric.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\ObjectFabric.dll</HintPath>
</Reference>
<Reference Include="Shared1, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\Shared1.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\Shared1.dll</HintPath>
</Reference>
<Reference Include="Shared2, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\Shared2.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\Shared2.dll</HintPath>
</Reference>
<Reference Include="System" />
</ItemGroup>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
- <package id="ObjectFabric" version="0.9.0.2" targetFramework="net45" />
+ <package id="ObjectFabric" version="0.9.0.3" targetFramework="net45" />
</packages>
@@ -16,6 +16,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample Images", "Sample Ima
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Site Demo", "Site Demo\Site Demo.csproj", "{C299E1C3-5933-4AFD-BAD3-6E77A197E5B8}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample Chat", "Sample Chat\Sample Chat.csproj", "{DBD895AC-83C1-4A97-87D3-837F2D81257F}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -66,6 +68,16 @@ Global
{C299E1C3-5933-4AFD-BAD3-6E77A197E5B8}.Release|Mixed Platforms.Build.0 = Release|x86
{C299E1C3-5933-4AFD-BAD3-6E77A197E5B8}.Release|x86.ActiveCfg = Release|x86
{C299E1C3-5933-4AFD-BAD3-6E77A197E5B8}.Release|x86.Build.0 = Release|x86
+ {DBD895AC-83C1-4A97-87D3-837F2D81257F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {DBD895AC-83C1-4A97-87D3-837F2D81257F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {DBD895AC-83C1-4A97-87D3-837F2D81257F}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {DBD895AC-83C1-4A97-87D3-837F2D81257F}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {DBD895AC-83C1-4A97-87D3-837F2D81257F}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {DBD895AC-83C1-4A97-87D3-837F2D81257F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {DBD895AC-83C1-4A97-87D3-837F2D81257F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {DBD895AC-83C1-4A97-87D3-837F2D81257F}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {DBD895AC-83C1-4A97-87D3-837F2D81257F}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {DBD895AC-83C1-4A97-87D3-837F2D81257F}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <startup>
+ <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
+ </startup>
+</configuration>
@@ -0,0 +1,42 @@
+using ObjectFabric;
+using System;
+
+namespace Sample_Chat
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ // Like opening a browser
+ Workspace w = new Workspace();
+
+ // Enables network connections
+ w.AddURIHandler(new WebSocketURIHandler());
+
+ // Get a room
+ Resource resource = w.Resolve("ws://localhost:8888/room1");
+ TSet<string> messages = (TSet<string>) resource.Get();
+
+ // A room is a set of messages. Adding a message to a
+ // set raises the 'onPut' callback on all clients who
+ // share the the same URI
+
+ // Display messages that get added to the set
+ messages.Added += s =>
+ {
+ Console.WriteLine(s);
+ };
+
+ // Listen for typed messages and add them to the set
+ Console.Write("my name? ");
+ string me = Console.ReadLine();
+ messages.Add("New user: " + me);
+
+ for (; ; )
+ {
+ string s = Console.ReadLine();
+ messages.Add(me + ": " + s);
+ }
+ }
+ }
+}
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Sample Chat")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Sample Chat")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("a38b685f-28bb-4816-8135-0b302182a095")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{DBD895AC-83C1-4A97-87D3-837F2D81257F}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Sample_Chat</RootNamespace>
+ <AssemblyName>Sample Chat</AssemblyName>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="IKVM.OpenJDK.Core">
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\IKVM.OpenJDK.Core.dll</HintPath>
+ </Reference>
+ <Reference Include="IKVM.Runtime">
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\IKVM.Runtime.dll</HintPath>
+ </Reference>
+ <Reference Include="Java">
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\Java.dll</HintPath>
+ </Reference>
+ <Reference Include="ObjectFabric">
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\ObjectFabric.dll</HintPath>
+ </Reference>
+ <Reference Include="Shared1">
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\Shared1.dll</HintPath>
+ </Reference>
+ <Reference Include="Shared2">
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\Shared2.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="App.config" />
+ <None Include="packages.config" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <Import Project="$(SolutionDir)\.nuget\nuget.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="ObjectFabric" version="0.9.0.3" targetFramework="net45" />
+</packages>
@@ -38,27 +38,27 @@
<ItemGroup>
<Reference Include="IKVM.OpenJDK.Core, Version=7.1.4532.2, Culture=neutral, PublicKeyToken=13235d27fcbfff58, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\IKVM.OpenJDK.Core.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\IKVM.OpenJDK.Core.dll</HintPath>
</Reference>
<Reference Include="IKVM.Runtime, Version=7.1.4532.2, Culture=neutral, PublicKeyToken=13235d27fcbfff58, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\IKVM.Runtime.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\IKVM.Runtime.dll</HintPath>
</Reference>
<Reference Include="Java, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\Java.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\Java.dll</HintPath>
</Reference>
<Reference Include="ObjectFabric, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\ObjectFabric.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\ObjectFabric.dll</HintPath>
</Reference>
<Reference Include="Shared1, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\Shared1.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\Shared1.dll</HintPath>
</Reference>
<Reference Include="Shared2, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\Shared2.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\Shared2.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
- <package id="ObjectFabric" version="0.9.0.2" targetFramework="net45" />
+ <package id="ObjectFabric" version="0.9.0.3" targetFramework="net45" />
</packages>
@@ -15,11 +15,22 @@ static void Main(string[] args)
// Get live array of numbers through WebSocket
string uri = "ws://test.objectfabric.org/array";
- TArray<long> a = (TArray<long>) w.resolve(uri).get();
+ TArray<long> a = (TArray<long>) w.Resolve(uri).Get();
// Add a listener on array, called when an element is
// set to a new value server side
- a.Set += i => { Console.WriteLine(a[i]); };
+ a.Set += i =>
+ {
+ switch (i)
+ {
+ case 0:
+ Console.WriteLine("World population: " + a[i]);
+ break;
+ case 1:
+ Console.WriteLine("Internet Users: " + a[i]);
+ break;
+ }
+ };
}
}
}
@@ -41,26 +41,27 @@
<ItemGroup>
<Reference Include="IKVM.OpenJDK.Core, Version=7.1.4532.2, Culture=neutral, PublicKeyToken=13235d27fcbfff58, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\IKVM.OpenJDK.Core.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\IKVM.OpenJDK.Core.dll</HintPath>
</Reference>
<Reference Include="IKVM.Runtime, Version=7.1.4532.2, Culture=neutral, PublicKeyToken=13235d27fcbfff58, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\IKVM.Runtime.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\IKVM.Runtime.dll</HintPath>
</Reference>
<Reference Include="Java, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\Java.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\Java.dll</HintPath>
</Reference>
- <Reference Include="ObjectFabric">
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\ObjectFabric.dll</HintPath>
+ <Reference Include="ObjectFabric, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\ObjectFabric.dll</HintPath>
</Reference>
<Reference Include="Shared1, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\Shared1.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\Shared1.dll</HintPath>
</Reference>
<Reference Include="Shared2, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\ObjectFabric.0.9.0.2\lib\net45\Shared2.dll</HintPath>
+ <HintPath>..\packages\ObjectFabric.0.9.0.3\lib\net45\Shared2.dll</HintPath>
</Reference>
<Reference Include="System" />
</ItemGroup>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
- <package id="ObjectFabric" version="0.9.0.2" targetFramework="net45" />
+ <package id="ObjectFabric" version="0.9.0.3" targetFramework="net45" />
</packages>
Oops, something went wrong.

0 comments on commit 7537294

Please sign in to comment.