本文整理汇总了C#中IBufferPool类的典型用法代码示例。如果您正苦于以下问题:C# IBufferPool类的具体用法?C# IBufferPool怎么用?C# IBufferPool使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IBufferPool类属于命名空间,在下文中一共展示了IBufferPool类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ChatClientNetChannel
public ChatClientNetChannel(IActorSystem<IRoomActor> rooms, ICallbacksGatewayNode callbacksNode, INetNode node,
ITransportChannel transportChannel, IMessageSerializer serializer, ICoreEvents logger, INetNodeConfig config, IBufferPool bufferPool)
: base(node, transportChannel, serializer, logger, config, bufferPool)
{
_rooms = rooms;
_callbacksNode = callbacksNode;
}
示例2: GeneralStorageActions
public GeneralStorageActions(TableStorage storage, Reference<WriteBatch> writeBatch, Reference<SnapshotReader> snapshot, IBufferPool bufferPool)
: base(snapshot, bufferPool)
{
this.storage = storage;
this.writeBatch = writeBatch;
this.snapshot = snapshot;
}
示例3: QueueStorageActions
public QueueStorageActions(TableStorage tableStorage, IUuidGenerator generator, Reference<SnapshotReader> snapshot, Reference<WriteBatch> writeBatch, IBufferPool bufferPool)
: base(snapshot, bufferPool)
{
this.tableStorage = tableStorage;
this.writeBatch = writeBatch;
this.generator = generator;
}
示例4: TableStorage
public TableStorage(StorageEnvironment environment, IBufferPool bufferPool)
{
this.bufferPool = bufferPool;
env = environment;
Initialize();
}
示例5: AsyncProcessingNetChannel
public AsyncProcessingNetChannel(Func<IMessageProcessingPipeBuilder, IMessageProcessingPipeBuilder> configureProcesssingPipe, INetNode node,
ITransportChannel transportChannel, IMessageSerializer serializer, ICoreEvents logger, INetNodeConfig config, IBufferPool bufferPool)
: base(node, transportChannel, serializer, logger, config, bufferPool)
{
_pipeBuilder = configureProcesssingPipe(new MessageProcessingPipeBuilder());
_processor = _pipeBuilder.Build();
}
示例6: TsPesPacketPool
public TsPesPacketPool(IBufferPool bufferPool)
{
if (null == bufferPool)
throw new ArgumentNullException(nameof(bufferPool));
_bufferPool = bufferPool;
}
示例7: StorageActionsAccessor
public StorageActionsAccessor(TableStorage storage, Reference<WriteBatch> writeBatch, Reference<SnapshotReader> snapshot, IdGenerator generator, IBufferPool bufferPool, OrderedPartCollection<AbstractFileCodec> fileCodecs)
: base(snapshot, generator, bufferPool)
{
this.storage = storage;
this.writeBatch = writeBatch;
this.fileCodecs = fileCodecs;
}
示例8: TcpConnection
public TcpConnection(Socket socket, SocketSetting setting, IBufferPool receiveDataBufferPool, Action<ITcpConnection, byte[]> messageArrivedHandler, Action<ITcpConnection, SocketError> connectionClosedHandler)
{
Ensure.NotNull(socket, "socket");
Ensure.NotNull(setting, "setting");
Ensure.NotNull(receiveDataBufferPool, "receiveDataBufferPool");
Ensure.NotNull(messageArrivedHandler, "messageArrivedHandler");
Ensure.NotNull(connectionClosedHandler, "connectionClosedHandler");
_socket = socket;
_setting = setting;
_receiveDataBufferPool = receiveDataBufferPool;
_localEndPoint = socket.LocalEndPoint;
_remotingEndPoint = socket.RemoteEndPoint;
_messageArrivedHandler = messageArrivedHandler;
_connectionClosedHandler = connectionClosedHandler;
_sendSocketArgs = new SocketAsyncEventArgs();
_sendSocketArgs.AcceptSocket = _socket;
_sendSocketArgs.Completed += OnSendAsyncCompleted;
_receiveSocketArgs = new SocketAsyncEventArgs();
_receiveSocketArgs.AcceptSocket = socket;
_receiveSocketArgs.Completed += OnReceiveAsyncCompleted;
_logger = ObjectContainer.Resolve<ILoggerFactory>().Create(GetType().FullName);
_framer = ObjectContainer.Resolve<IMessageFramer>();
_framer.RegisterMessageArrivedCallback(OnMessageArrived);
TryReceive();
TrySend();
}
示例9: TableBase
protected TableBase(string tableName, IBufferPool bufferPool)
{
if (string.IsNullOrEmpty(tableName))
throw new ArgumentNullException(tableName);
BufferPool = bufferPool;
TableName = tableName;
}
示例10: IndexingStorageActions
public IndexingStorageActions(TableStorage tableStorage, IUuidGenerator generator, Reference<SnapshotReader> snapshot, Reference<WriteBatch> writeBatch, IStorageActionsAccessor storageActionsAccessor, IBufferPool bufferPool)
: base(snapshot, bufferPool)
{
this.tableStorage = tableStorage;
this.generator = generator;
this.writeBatch = writeBatch;
this.currentStorageActionsAccessor = storageActionsAccessor;
}
示例11: ServiceSocket
/// <summary>
/// Initializes a new instance of the ServiceSocket class.
/// </summary>
/// <param name="socket">The .NET Socket object to encapsulate</param>
/// <param name="IsPeerSocket">Indicates if this socket was spawned from the state server peer port</param>
public ServiceSocket(Socket socket, bool IsPeerSocket, IBufferPool Buffers)
{
this.socket = socket;
fromPeerListener = IsPeerSocket;
sessionKey = null;
id = Guid.NewGuid();
bufferPool = Buffers;
}
示例12: MappedResultsStorageActions
public MappedResultsStorageActions(TableStorage tableStorage, IUuidGenerator generator, OrderedPartCollection<AbstractDocumentCodec> documentCodecs, Reference<SnapshotReader> snapshot, Reference<WriteBatch> writeBatch, IBufferPool bufferPool)
: base(snapshot, bufferPool)
{
this.tableStorage = tableStorage;
this.generator = generator;
this.documentCodecs = documentCodecs;
this.writeBatch = writeBatch;
}
示例13: HttpListenerContextAdpater
public HttpListenerContextAdpater(HttpListenerContext ctx, InMemoryRavenConfiguration configuration, IBufferPool bufferPool)
{
this.ctx = ctx;
this.configuration = configuration;
this.bufferPool = bufferPool;
ResponseInternal = new HttpListenerResponseAdapter(ctx.Response, bufferPool);
RequestInternal = new HttpListenerRequestAdapter(ctx.Request);
SetMaxAge();
}
示例14: MappedResultsStorageActions
public MappedResultsStorageActions(TableStorage tableStorage, IUuidGenerator generator, OrderedPartCollection<AbstractDocumentCodec> documentCodecs, Reference<SnapshotReader> snapshot,
Reference<WriteBatch> writeBatch, IBufferPool bufferPool, IStorageActionsAccessor storageActionsAccessor, ConcurrentDictionary<int, RemainingReductionPerLevel> ScheduledReductionsPerViewAndLevel)
: base(snapshot, bufferPool)
{
this.tableStorage = tableStorage;
this.generator = generator;
this.documentCodecs = documentCodecs;
this.writeBatch = writeBatch;
this.storageActionsAccessor = storageActionsAccessor;
this.scheduledReductionsPerViewAndLevel = ScheduledReductionsPerViewAndLevel;
}
示例15: TableStorage
public TableStorage(StorageEnvironmentOptions options, IBufferPool bufferPool)
{
if (options == null)
throw new ArgumentNullException("options");
_options = options;
this.bufferPool = bufferPool;
env = new StorageEnvironment(_options);
Initialize();
}