Class ServerEndPoint
Represents a server endpoint that accepts client requests. This is a sealed class
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Glue
Assembly: Azos.dll
Syntax
public sealed class ServerEndPoint : EndPoint, IDisposable, IConfigurable, INamed
Constructors
ServerEndPoint(IGlue, Node, IEnumerable<Type>, Binding)
Declaration
public ServerEndPoint(IGlue glue, Node node, IEnumerable<Type> contractServers, Binding binding = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IGlue | glue | |
| Node | node | |
| System.Collections.Generic.IEnumerable<System.Type> | contractServers | |
| Binding | binding |
ServerEndPoint(IGlue, String, Node, IEnumerable<Type>, Binding)
Declaration
public ServerEndPoint(IGlue glue, string name, Node node, IEnumerable<Type> contractServers, Binding binding = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IGlue | glue | |
| System.String | name | |
| Node | node | |
| System.Collections.Generic.IEnumerable<System.Type> | contractServers | |
| Binding | binding |
ServerEndPoint(IGlue, String, IEnumerable<Type>, Binding)
Declaration
public ServerEndPoint(IGlue glue, string node, IEnumerable<Type> contractServers, Binding binding = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IGlue | glue | |
| System.String | node | |
| System.Collections.Generic.IEnumerable<System.Type> | contractServers | |
| Binding | binding |
ServerEndPoint(IGlue, String, String, IEnumerable<Type>, Binding)
Declaration
public ServerEndPoint(IGlue glue, string name, string node, IEnumerable<Type> contractServers, Binding binding = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IGlue | glue | |
| System.String | name | |
| System.String | node | |
| System.Collections.Generic.IEnumerable<System.Type> | contractServers | |
| Binding | binding |
Fields
CONFIG_BINDING_ATTR
Declaration
public const string CONFIG_BINDING_ATTR = "binding"
Field Value
| Type | Description |
|---|---|
| System.String |
CONFIG_CONTRACT_SERVERS_ATTR
Declaration
public const string CONFIG_CONTRACT_SERVERS_ATTR = "contract-servers"
Field Value
| Type | Description |
|---|---|
| System.String |
CONFIG_NAME_ATTR
Declaration
public const string CONFIG_NAME_ATTR = "name"
Field Value
| Type | Description |
|---|---|
| System.String |
CONFIG_NODE_ATTR
Declaration
public const string CONFIG_NODE_ATTR = "node"
Field Value
| Type | Description |
|---|---|
| System.String |
Properties
ContractServers
Returns types that implement/serve contracts that this endpoint accepts
Declaration
public Type[] ContractServers { get; }
Property Value
| Type | Description |
|---|---|
| System.Type[] |
IsOpen
Indicates whether endpoint is open and is accepting incoming requests
Declaration
public bool IsOpen { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
MsgInspectors
Returns server message inspectors for this instance
Declaration
public OrderedRegistry<IServerMsgInspector> MsgInspectors { get; }
Property Value
| Type | Description |
|---|---|
| OrderedRegistry<IServerMsgInspector> |
Name
Returns name of the endpoint. Named endpoints must be unique in the context, if name was not supplied in .ctor then it is auto-generated
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Transport
Returns server transport that services this endpoint
Declaration
public ServerTransport Transport { get; }
Property Value
| Type | Description |
|---|---|
| ServerTransport |
Methods
Close()
Declaration
public void Close()
Configure(IConfigSectionNode)
Declaration
public void Configure(IConfigSectionNode node)
Parameters
| Type | Name | Description |
|---|---|---|
| IConfigSectionNode | node |
Destructor()
Declaration
protected override void Destructor()
Overrides
Open()
Opens endpoint by allocating transports (if necessary). ServerEndpoint can be Close() or Dispose() after it was open
Declaration
public void Open()
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()
Implements
System.IDisposable