ce fini
This commit is contained in:
parent
9d74f05f79
commit
f38027398c
@ -1,5 +1,4 @@
|
|||||||
using Microsoft.CodeAnalysis.Operations;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using Orleans.Configuration;
|
using Orleans.Configuration;
|
||||||
|
|||||||
@ -2,12 +2,7 @@
|
|||||||
using Orleans.Runtime;
|
using Orleans.Runtime;
|
||||||
using Orleans.Streams;
|
using Orleans.Streams;
|
||||||
using StackExchange.Redis;
|
using StackExchange.Redis;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Provider
|
namespace Provider
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,12 +1,7 @@
|
|||||||
using Orleans.Runtime;
|
using Orleans.Runtime;
|
||||||
using Orleans.Streams;
|
using Orleans.Streams;
|
||||||
using StackExchange.Redis;
|
using StackExchange.Redis;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Provider
|
namespace Provider
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using Orleans;
|
|
||||||
using Orleans.Configuration;
|
using Orleans.Configuration;
|
||||||
using Orleans.Providers.Streams.Common;
|
using Orleans.Providers.Streams.Common;
|
||||||
using Orleans.Streams;
|
using Orleans.Streams;
|
||||||
@ -56,7 +55,7 @@ namespace Provider
|
|||||||
|
|
||||||
public IQueueAdapterCache GetQueueAdapterCache()
|
public IQueueAdapterCache GetQueueAdapterCache()
|
||||||
{
|
{
|
||||||
return new SimpleQueueAdapterCache(_simpleQueueCacheOptions,_providerName, _loggerFactory);
|
return new SimpleQueueAdapterCache(_simpleQueueCacheOptions, _providerName, _loggerFactory);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IStreamQueueMapper GetStreamQueueMapper()
|
public IStreamQueueMapper GetStreamQueueMapper()
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using Orleans.Runtime;
|
using Orleans.Runtime;
|
||||||
using Orleans.Streams;
|
using Orleans.Streams;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Provider
|
namespace Provider
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,11 +1,5 @@
|
|||||||
using Orleans;
|
using Orleans.Streams;
|
||||||
using Orleans.Streams;
|
|
||||||
using StackExchange.Redis;
|
using StackExchange.Redis;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Provider
|
namespace Provider
|
||||||
{
|
{
|
||||||
@ -15,7 +9,7 @@ namespace Provider
|
|||||||
[Id(0)]
|
[Id(0)]
|
||||||
public override long SequenceNumber { get; protected set; }
|
public override long SequenceNumber { get; protected set; }
|
||||||
[Id(1)]
|
[Id(1)]
|
||||||
public override int EventIndex { get ; protected set ; }
|
public override int EventIndex { get; protected set; }
|
||||||
|
|
||||||
public RedisStreamSequenceToken(RedisValue id)
|
public RedisStreamSequenceToken(RedisValue id)
|
||||||
{
|
{
|
||||||
@ -31,10 +25,10 @@ namespace Provider
|
|||||||
}
|
}
|
||||||
public override int CompareTo(StreamSequenceToken other)
|
public override int CompareTo(StreamSequenceToken other)
|
||||||
{
|
{
|
||||||
if(other is null) throw new ArgumentNullException(nameof(other));
|
if (other is null) throw new ArgumentNullException(nameof(other));
|
||||||
if(other is RedisStreamSequenceToken token)
|
if (other is RedisStreamSequenceToken token)
|
||||||
{
|
{
|
||||||
if(SequenceNumber == token.SequenceNumber)
|
if (SequenceNumber == token.SequenceNumber)
|
||||||
{
|
{
|
||||||
return EventIndex.CompareTo(token.EventIndex);
|
return EventIndex.CompareTo(token.EventIndex);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,12 +1,9 @@
|
|||||||
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using Orleans.Configuration;
|
using Orleans.Configuration;
|
||||||
using Orleans.Runtime;
|
using Orleans.Runtime;
|
||||||
using Orleans.Streams;
|
using Orleans.Streams;
|
||||||
using Provider;
|
|
||||||
using StackExchange.Redis;
|
using StackExchange.Redis;
|
||||||
|
|
||||||
var builder = new HostBuilder()
|
var builder = new HostBuilder()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user