Skip to content

Instantly share code, notes, and snippets.

View ptupitsyn's full-sized avatar

Pavel Tupitsyn ptupitsyn

View GitHub Profile
FROM microsoft/dotnet:2.1-sdk
WORKDIR /app
RUN apt update && apt install default-jdk -y --no-install-recommends
COPY *.csproj ./
RUN dotnet restore
COPY . ./
ENTRYPOINT ["dotnet", "run"]
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Apache.Ignite.Core.Cache;
using Apache.Ignite.Core.Cache.Event;
using Apache.Ignite.Core.Cache.Query.Continuous;
namespace IgniteAsyncStreams
@ptupitsyn
ptupitsyn / IgniteAsyncStreamExtensions.cs
Last active July 23, 2020 13:19
IgniteAsyncStreams
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading;
using Apache.Ignite.Core.Cache;
using Apache.Ignite.Core.Cache.Event;
using Apache.Ignite.Core.Cache.Query.Continuous;
namespace IgniteAsyncStreams
{
@ptupitsyn
ptupitsyn / IgniteAsyncStreamExtensions.cs
Created November 6, 2019 12:03
IgniteAsyncStreamExtensions with System.Threading.Channels
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Channels;
using Apache.Ignite.Core.Cache;
using Apache.Ignite.Core.Cache.Event;
using Apache.Ignite.Core.Cache.Query.Continuous;
namespace IgniteAsyncStreams
@ptupitsyn
ptupitsyn / Program.cs
Created July 5, 2020 09:25
Ignite.NET server + Ignite Java client with SQL query
using System;
using System.Threading;
using Apache.Ignite.Core;
using Apache.Ignite.Core.Binary;
using Apache.Ignite.Core.Cache.Affinity;
using Apache.Ignite.Core.Cache.Configuration;
using Apache.Ignite.Core.Events;
namespace IgniteSimpleNameMapperTest
{
@ptupitsyn
ptupitsyn / IgniteGroBuf.csproj
Created July 28, 2020 10:12
Apache Ignite.NET GroBuf Serialization
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Apache.Ignite" Version="2.8.1" />
<PackageReference Include="AutoMapper" Version="10.0.0" />
@ptupitsyn
ptupitsyn / IgniteExpiredEventTest.csproj
Created August 13, 2020 11:03
Ignite RemoteListen workaround with Messaging
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Apache.Ignite" Version="2.8.1" />
</ItemGroup>
@ptupitsyn
ptupitsyn / BenchContext.cs
Last active September 14, 2020 08:45
Dapper vs EF Core on Sqlite In-Memory
using Microsoft.EntityFrameworkCore;
namespace DapperVsEf
{
public class BenchContext : DbContext
{
public BenchContext(DbContextOptions options) : base(options)
{
}
@ptupitsyn
ptupitsyn / Program.cs
Created December 6, 2020 13:58
Apache Ignite PeerAssemblyLoading demo - Server
using System;
using System.Threading;
using Apache.Ignite.Core;
using Apache.Ignite.Core.Deployment;
namespace server
{
class Program
{
static void Main(string[] args)
@ptupitsyn
ptupitsyn / Program.cs
Created December 6, 2020 13:58
Apache Ignite PeerAssemblyLoading demo - Client
using System;
using Apache.Ignite.Core;
using Apache.Ignite.Core.Compute;
using Apache.Ignite.Core.Deployment;
namespace client
{
class HelloAction : IComputeAction
{
public void Invoke()