Show / Hide Table of Contents

Class ServerEndPoint

Represents a server endpoint that accepts client requests. This is a sealed class

Inheritance
System.Object
DisposableObject
EndPoint
ServerEndPoint
Implements
System.IDisposable
IConfigurable
INamed
Inherited Members
EndPoint.m_Glue
EndPoint.m_Node
EndPoint.m_Binding
EndPoint.Glue
EndPoint.Node
EndPoint.Binding
DisposableObject.DisposeAndNull<T>(T)
DisposableObject.DisposeStarted
DisposableObject.Disposed
DisposableObject.EnsureObjectNotDisposed()
DisposableObject.Dispose()
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: NFX.Glue
Assembly: NFX.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

ServerEndPoint(Node, IEnumerable<Type>, Binding)

Declaration
public ServerEndPoint(Node node, IEnumerable<Type> contractServers, Binding binding = null)
Parameters
Type Name Description
Node node
System.Collections.Generic.IEnumerable<System.Type> contractServers
Binding binding

ServerEndPoint(String, Node, IEnumerable<Type>, Binding)

Declaration
public ServerEndPoint(string name, Node node, IEnumerable<Type> contractServers, Binding binding = null)
Parameters
Type Name Description
System.String name
Node node
System.Collections.Generic.IEnumerable<System.Type> contractServers
Binding binding

ServerEndPoint(String, IEnumerable<Type>, Binding)

Declaration
public ServerEndPoint(string node, IEnumerable<Type> contractServers, Binding binding = null)
Parameters
Type Name Description
System.String node
System.Collections.Generic.IEnumerable<System.Type> contractServers
Binding binding

ServerEndPoint(String, String, IEnumerable<Type>, Binding)

Declaration
public ServerEndPoint(string name, string node, IEnumerable<Type> contractServers, Binding binding = null)
Parameters
Type Name Description
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
DisposableObject.Destructor()

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
IConfigurable
INamed

Extension Methods

MiscUtils.NonNull<T>(T, Func<Exception>, String)
ObjectValueConversion.AsString(Object, String, ConvertErrorHandling)
ObjectValueConversion.AsNonNullOrEmptyString(Object)
ObjectValueConversion.AsLaconicConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsJSONConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsXMLConfig(Object, ConfigSectionNode, ConvertErrorHandling)
ObjectValueConversion.AsChar(Object, Char, ConvertErrorHandling)
ObjectValueConversion.AsNullableChar(Object, Nullable<Char>, ConvertErrorHandling)
ObjectValueConversion.AsByte(Object, Byte, ConvertErrorHandling)
ObjectValueConversion.AsNullableByte(Object, Nullable<Byte>, ConvertErrorHandling)
ObjectValueConversion.AsSByte(Object, SByte, ConvertErrorHandling)
ObjectValueConversion.AsNullableSByte(Object, Nullable<SByte>, ConvertErrorHandling)
ObjectValueConversion.AsShort(Object, Int16, ConvertErrorHandling)
ObjectValueConversion.AsNullableShort(Object, Nullable<Int16>, ConvertErrorHandling)
ObjectValueConversion.AsUShort(Object, UInt16, ConvertErrorHandling)
ObjectValueConversion.AsNullableUShort(Object, Nullable<UInt16>, ConvertErrorHandling)
ObjectValueConversion.AsInt(Object, Int32, ConvertErrorHandling)
ObjectValueConversion.AsNullableInt(Object, Nullable<Int32>, ConvertErrorHandling)
ObjectValueConversion.AsUInt(Object, UInt32, ConvertErrorHandling)
ObjectValueConversion.AsNullableUInt(Object, Nullable<UInt32>, ConvertErrorHandling)
ObjectValueConversion.AsLong(Object, Int64, ConvertErrorHandling)
ObjectValueConversion.AsNullableLong(Object, Nullable<Int64>, ConvertErrorHandling)
ObjectValueConversion.AsULong(Object, UInt64, ConvertErrorHandling)
ObjectValueConversion.AsNullableULong(Object, Nullable<UInt64>, ConvertErrorHandling)
ObjectValueConversion.AsDouble(Object, Double, ConvertErrorHandling)
ObjectValueConversion.AsNullableDouble(Object, Nullable<Double>, ConvertErrorHandling)
ObjectValueConversion.AsFloat(Object, Single, ConvertErrorHandling)
ObjectValueConversion.AsNullableFloat(Object, Nullable<Single>, ConvertErrorHandling)
ObjectValueConversion.AsDecimal(Object, Decimal, ConvertErrorHandling)
ObjectValueConversion.AsNullableDecimal(Object, Nullable<Decimal>, ConvertErrorHandling)
ObjectValueConversion.AsBool(Object, Boolean, ConvertErrorHandling)
ObjectValueConversion.AsNullableBool(Object, Nullable<Boolean>, ConvertErrorHandling)
ObjectValueConversion.AsGUID(Object, Guid, ConvertErrorHandling)
ObjectValueConversion.AsNullableGUID(Object, Nullable<Guid>, ConvertErrorHandling)
ObjectValueConversion.AsDateTime(Object)
ObjectValueConversion.AsDateTime(Object, DateTime, ConvertErrorHandling)
ObjectValueConversion.AsNullableDateTime(Object, Nullable<DateTime>, ConvertErrorHandling)
ObjectValueConversion.AsGDID(Object)
ObjectValueConversion.AsGDID(Object, GDID, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDID(Object, Nullable<GDID>, ConvertErrorHandling)
ObjectValueConversion.AsGDIDSymbol(Object)
ObjectValueConversion.AsGDIDSymbol(Object, GDIDSymbol, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDIDSymbol(Object, Nullable<GDIDSymbol>, ConvertErrorHandling)
ObjectValueConversion.AsTimeSpan(Object)
ObjectValueConversion.AsTimeSpan(Object, TimeSpan, ConvertErrorHandling)
ObjectValueConversion.AsNullableTimeSpan(Object, Nullable<TimeSpan>, ConvertErrorHandling)
ObjectValueConversion.AsEnum<TEnum>(Object, TEnum, ConvertErrorHandling)
ObjectValueConversion.AsNullableEnum<TEnum>(Object, Nullable<TEnum>, ConvertErrorHandling)
ObjectValueConversion.AsUri(Object, Uri, ConvertErrorHandling)
JSONExtensions.ToJSON(Object, JSONWritingOptions)
JSONExtensions.ToJSON(Object, TextWriter, JSONWritingOptions)
JSONExtensions.ToJSON(Object, Stream, JSONWritingOptions, Encoding)
ErlObject.ToErlObject(Object)
ErlObject.ToErlObject(Object, ErlTypeOrder, Boolean)
Back to top Copyright © 2006-2018 Agnicore Inc
Generated by DocFX