API Diff between 1.4.2 and 2.5.1
246 Additions
145 Removals
ECommon.Components
-
public interface IObjectContainer
- void Build()
- void Register<TService, TImplementer>(string serviceName = null, LifeStyle life = 1) where TImplementer : TService
- void RegisterInstance<TService, TImplementer>(TImplementer instance, string serviceName = null) where TImplementer : TService
- void RegisterType(Type implementationType, string serviceName = null, LifeStyle life = 1)
- void RegisterType(Type serviceType, Type implementationType, string serviceName = null, LifeStyle life = 1)
- void Register<TService, TImplementer>(LifeStyle life = 1) where TImplementer : TService
- void RegisterInstance<TService, TImplementer>(TImplementer instance) where TImplementer : TService
- void RegisterType(Type implementationType, LifeStyle life = 1)
- void RegisterType(Type serviceType, Type implementationType, LifeStyle life = 1)
- TService ResolveNamed<TService>(string serviceName)
- object ResolveNamed(string serviceName, Type serviceType)
- bool TryResolve<TService>(out TService instance)
- bool TryResolve(Type serviceType, out object instance)
- bool TryResolveNamed(string serviceName, Type serviceType, out object instance)
-
public class ObjectContainer
- public static void Build()
- public static void Register<TService, TImplementer>(string serviceName = null, LifeStyle life = 1) where TImplementer : TService
- public static void RegisterInstance<TService, TImplementer>(TImplementer instance, string serviceName = null) where TImplementer : TService
- public static void RegisterType(Type implementationType, string serviceName = null, LifeStyle life = 1)
- public static void RegisterType(Type serviceType, Type implementationType, string serviceName = null, LifeStyle life = 1)
- public static void Register<TService, TImplementer>(LifeStyle life = 1) where TImplementer : TService
- public static void RegisterInstance<TService, TImplementer>(TImplementer instance) where TImplementer : TService
- public static void RegisterType(Type implementationType, LifeStyle life = 1)
- public static void RegisterType(Type serviceType, Type implementationType, LifeStyle life = 1)
- public static TService ResolveNamed<TService>(string serviceName)
- public static object ResolveNamed(string serviceName, Type serviceType)
- public static bool TryResolve<TService>(out TService instance)
- public static bool TryResolve(Type serviceType, out object instance)
- public static bool TryResolveNamed(string serviceName, Type serviceType, out object instance)
ECommon.Configurations
ECommon.Extensions
ECommon.IO
ECommon.Remoting
-
public class
-
public interface IRemotingServerMessageHandler
-
public interface IRequestHandlerContext
-
public interface IResponseHandler
-
public interface ISocketChannel
-
public class RemotingClientSetting
-
public class RemotingMessage
-
public class RemotingRequest : RemotingMessage
- public byte[] Body { get; set; }
- public short Code { get; set; }
- public DateTime CreatedTime { get; set; }
- public IDictionary<string, string> { get; set; }
- public string Id { get; set; }
- public long Sequence { get; set; }
- public short Type { get; set; }
- public RemotingRequest()
- public RemotingRequest(short code, byte[] body, IDictionary<string, string> header = null)
- public RemotingRequest(string id, short code, long sequence, byte[] body, DateTime createdTime, IDictionary<string, string> header)
- public bool IsOneway { get; set; }
- public RemotingRequest(int code, byte[] body)
- public RemotingRequest(int code, byte[] body, bool isOneway)
- public RemotingRequest(int code, long sequence, byte[] body, bool isOneway)
-
public class RemotingRequestType
-
public class RemotingResponse : RemotingMessage
- public short RequestCode { get; set; }
- public IDictionary<string, string> { get; set; }
- public long RequestSequence { get; set; }
- public DateTime RequestTime { get; set; }
- public short RequestType { get; set; }
- public byte[] ResponseBody { get; set; }
- public short ResponseCode { get; set; }
- public IDictionary<string, string> { get; set; }
- public DateTime ResponseTime { get; set; }
- public RemotingResponse()
- public RemotingResponse(short requestType, short requestCode, long requestSequence, DateTime requestTime, short responseCode, byte[] responseBody, DateTime responseTime, IDictionary<string, string> requestHeader, IDictionary<string, string> responseHeader)
- public RemotingResponse(int code, long sequence, byte[] body)
-
public class RemotingServerMessage
-
public class RemotingServerMessageType
-
public class RemotingUtil
-
public class ResponseFuture
-
public class SocketChannel : ISocketChannel
-
public class SocketRemotingClient : ISocketClientEventListener
-
public class SocketRemotingServer
-
public class SocketRequestHandlerContext : IRequestHandlerContext
ECommon.Remoting.Exceptions
ECommon.Retring
ECommon.Scheduling
ECommon.Socketing
ECommon.Socketing.BufferManagement
ECommon.Socketing.Framing
ECommon.Storage
ECommon.Storage.Exceptions
ECommon.Storage.FileNamingStrategies
ECommon.TcpTransport
-
public interface ITcpConnection : ITcpConnectionInfo
-
public interface ITcpConnectionInfo
-
public class TcpClient
-
public class TcpClientConnector
-
public class TcpConfiguration
-
public class TcpConnection : TcpConnectionBase, ITcpConnection, ITcpConnectionInfo
- public Guid ConnectionId { get; }
- public int SendQueueSize { get; }
- public event Action<ITcpConnection, SocketError> ConnectionClosed
- public static ITcpConnection CreateAcceptedTcpConnection(Guid connectionId, IPEndPoint remoteEndPoint, Socket socket)
- public static ITcpConnection CreateConnectingTcpConnection(Guid connectionId, IPEndPoint localEndPoint, IPEndPoint remoteEndPoint, TcpClientConnector connector, Action<ITcpConnection> onConnectionEstablished, Action<ITcpConnection, SocketError> onConnectionFailed)
- public void Close()
- public void Close(SocketError socketError, string reason)
- public void EnqueueSend(IEnumerable<ArraySegment<byte>> data)
- public void ReceiveAsync(Action<ITcpConnection, IEnumerable<ArraySegment<byte>>> callback)
-
public class TcpConnectionBase
-
public enum TcpConnectionStatus
-
public class TcpServerListener
-
public class TcpStats
ECommon.TcpTransport.BufferManagement
-
public class BufferManager
-
public class BufferPool : IDisposable
- public int Capacity { get; }
- public IEnumerable<ArraySegment<byte>> EffectiveBuffers { get; }
- public byte this[int index] { get; set; }
- public int Length { get; }
- public BufferPool()
- public BufferPool(BufferManager bufferManager)
- public BufferPool(int initialBufferCount, BufferManager bufferManager)
- public void Append(byte[] data)
- public void Append(byte[] data, int offset, int count)
- public void Dispose()
- protected virtual void DisposeInternal()
- public int ReadFrom(int position, byte[] data, int offset, int count)
- public int ReadFrom(int position, ArraySegment<byte> data)
- public void SetLength(int newLength)
- public void SetLength(int newLength, bool releaseMemory)
- public byte[] ToByteArray()
- public void Write(int position, byte[] data, int offset, int count)
- public void Write(int position, ArraySegment<byte> data)
-
public class BufferPoolStream : Stream
-
public class UnableToAllocateBufferException : Exception
-
public class UnableToCreateMemoryException : Exception
ECommon.TcpTransport.Framing
ECommon.TcpTransport.Utils
ECommon.Utilities