You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by pt...@apache.org on 2016/11/14 09:26:33 UTC
[21/33] ignite git commit: IGNITE-4123 .NET: Remove [Serializable]
from Employee in examples
IGNITE-4123 .NET: Remove [Serializable] from Employee in examples
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/74f8308d
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/74f8308d
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/74f8308d
Branch: refs/heads/master
Commit: 74f8308d10fc011c00e52efcdb315b35cc79e60a
Parents: d5e15af
Author: Pavel Tupitsyn <pt...@apache.org>
Authored: Wed Nov 2 15:59:15 2016 +0300
Committer: Pavel Tupitsyn <pt...@apache.org>
Committed: Wed Nov 2 15:59:15 2016 +0300
----------------------------------------------------------------------
.../Apache.Ignite.Core/Impl/Messaging/MessageListenerHolder.cs | 6 ------
.../dotnet/examples/Apache.Ignite.Examples/App.config | 1 +
.../examples/Apache.Ignite.ExamplesDll/Binary/Employee.cs | 3 +--
.../Apache.Ignite.ExamplesDll/Compute/AverageSalaryJob.cs | 5 ++---
4 files changed, 4 insertions(+), 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/74f8308d/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Messaging/MessageListenerHolder.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Messaging/MessageListenerHolder.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Messaging/MessageListenerHolder.cs
index 8b67462..1a2c18a 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Messaging/MessageListenerHolder.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Messaging/MessageListenerHolder.cs
@@ -102,12 +102,6 @@ namespace Apache.Ignite.Core.Impl.Messaging
DestroyAction();
}
- /** <inheritDoc /> */
- public bool Released
- {
- get { return false; } // Multiple releases are allowed.
- }
-
/// <summary>
/// Creates local holder instance.
/// </summary>
http://git-wip-us.apache.org/repos/asf/ignite/blob/74f8308d/modules/platforms/dotnet/examples/Apache.Ignite.Examples/App.config
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/App.config b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/App.config
index 1d180e8..8b16df3 100644
--- a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/App.config
+++ b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/App.config
@@ -37,6 +37,7 @@
<string>Apache.Ignite.ExamplesDll.Binary.Employee</string>
<string>Apache.Ignite.ExamplesDll.Binary.EmployeeKey</string>
<string>Apache.Ignite.ExamplesDll.Binary.Organization</string>
+ <string>Apache.Ignite.ExamplesDll.Compute.AverageSalaryJob</string>
</types>
</binaryConfiguration>
http://git-wip-us.apache.org/repos/asf/ignite/blob/74f8308d/modules/platforms/dotnet/examples/Apache.Ignite.ExamplesDll/Binary/Employee.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/examples/Apache.Ignite.ExamplesDll/Binary/Employee.cs b/modules/platforms/dotnet/examples/Apache.Ignite.ExamplesDll/Binary/Employee.cs
index 4cff2a8..b746bdf 100644
--- a/modules/platforms/dotnet/examples/Apache.Ignite.ExamplesDll/Binary/Employee.cs
+++ b/modules/platforms/dotnet/examples/Apache.Ignite.ExamplesDll/Binary/Employee.cs
@@ -17,7 +17,6 @@
namespace Apache.Ignite.ExamplesDll.Binary
{
- using System;
using System.Collections.Generic;
using System.Linq;
using Apache.Ignite.Core.Cache.Configuration;
@@ -25,7 +24,6 @@ namespace Apache.Ignite.ExamplesDll.Binary
/// <summary>
/// Employee.
/// </summary>
- [Serializable]
public class Employee
{
/// <summary>
@@ -35,6 +33,7 @@ namespace Apache.Ignite.ExamplesDll.Binary
/// <param name="salary">Salary.</param>
/// <param name="address">Address.</param>
/// <param name="departments">Departments.</param>
+ /// <param name="organizationId">The organization identifier.</param>
public Employee(string name, long salary, Address address, ICollection<string> departments,
int organizationId = 0)
{
http://git-wip-us.apache.org/repos/asf/ignite/blob/74f8308d/modules/platforms/dotnet/examples/Apache.Ignite.ExamplesDll/Compute/AverageSalaryJob.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/examples/Apache.Ignite.ExamplesDll/Compute/AverageSalaryJob.cs b/modules/platforms/dotnet/examples/Apache.Ignite.ExamplesDll/Compute/AverageSalaryJob.cs
index 2685df0..491f3c1 100644
--- a/modules/platforms/dotnet/examples/Apache.Ignite.ExamplesDll/Compute/AverageSalaryJob.cs
+++ b/modules/platforms/dotnet/examples/Apache.Ignite.ExamplesDll/Compute/AverageSalaryJob.cs
@@ -18,18 +18,17 @@
namespace Apache.Ignite.ExamplesDll.Compute
{
using System;
- using System.Collections.Generic;
+ using System.Collections;
using Apache.Ignite.Core.Compute;
using Apache.Ignite.ExamplesDll.Binary;
/// <summary>
/// Average salary job.
/// </summary>
- [Serializable]
public class AverageSalaryJob : ComputeJobAdapter<Tuple<long, int>>
{
/// <summary> Employees. </summary>
- private readonly ICollection<Employee> _employees = new List<Employee>();
+ private readonly ArrayList _employees = new ArrayList();
/// <summary>
/// Adds employee.