Package system.servicemodel.channels
Class IDuplexSessionChannelImplementation
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.servicemodel.channels.IDuplexSessionChannelImplementation
-
- All Implemented Interfaces:
IJCOBridgeReflected
,IChannel
,IDuplexChannel
,IDuplexSessionChannel
,IInputChannel
,IOutputChannel
,ICommunicationObject
public class IDuplexSessionChannelImplementation extends NetObject implements IDuplexSessionChannel
The base .NET class managing System.ServiceModel.Channels.IDuplexSessionChannel, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.See: https://docs.microsoft.com/en-us/dotnet/api/System.ServiceModel.Channels.IDuplexSessionChannel
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static String
assemblyShortName
Assembly name: System.ServiceModelstatic String
className
Qualified class name: System.ServiceModel.Channels.IDuplexSessionChannelstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description IDuplexSessionChannelImplementation(Object instance)
Internal constructor.
-
Method Summary
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
cast, Equals, Equals, GetHashCode, GetType, hashCode, setJCOInstance, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: System.ServiceModel- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.ServiceModel.Channels.IDuplexSessionChannel- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIChannel
- Specified by:
getJCOAssemblyName
in interfaceICommunicationObject
- Specified by:
getJCOAssemblyName
in interfaceIDuplexChannel
- Specified by:
getJCOAssemblyName
in interfaceIDuplexSessionChannel
- Specified by:
getJCOAssemblyName
in interfaceIInputChannel
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOAssemblyName
in interfaceIOutputChannel
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIChannel
- Specified by:
getJCOClassName
in interfaceICommunicationObject
- Specified by:
getJCOClassName
in interfaceIDuplexChannel
- Specified by:
getJCOClassName
in interfaceIDuplexSessionChannel
- Specified by:
getJCOClassName
in interfaceIInputChannel
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOClassName
in interfaceIOutputChannel
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIChannel
- Specified by:
getJCOObjectName
in interfaceICommunicationObject
- Specified by:
getJCOObjectName
in interfaceIDuplexChannel
- Specified by:
getJCOObjectName
in interfaceIDuplexSessionChannel
- Specified by:
getJCOObjectName
in interfaceIInputChannel
- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOObjectName
in interfaceIOutputChannel
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIChannel
- Specified by:
getJCOInstance
in interfaceICommunicationObject
- Specified by:
getJCOInstance
in interfaceIDuplexChannel
- Specified by:
getJCOInstance
in interfaceIDuplexSessionChannel
- Specified by:
getJCOInstance
in interfaceIInputChannel
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Specified by:
getJCOInstance
in interfaceIOutputChannel
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIChannel
- Specified by:
getJCOType
in interfaceICommunicationObject
- Specified by:
getJCOType
in interfaceIDuplexChannel
- Specified by:
getJCOType
in interfaceIDuplexSessionChannel
- Specified by:
getJCOType
in interfaceIInputChannel
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Specified by:
getJCOType
in interfaceIOutputChannel
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
ToIDuplexSessionChannel
public static IDuplexSessionChannel ToIDuplexSessionChannel(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoIDuplexSessionChannel
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
IDuplexSessionChannel
instance- Throws:
Throwable
- in case of error during cast operation
-
EndTryReceive
public boolean EndTryReceive(IAsyncResult result, JCORefOut<Message> message) throws Throwable
- Specified by:
EndTryReceive
in interfaceIInputChannel
- Throws:
Throwable
-
EndWaitForMessage
public boolean EndWaitForMessage(IAsyncResult result) throws Throwable
- Specified by:
EndWaitForMessage
in interfaceIInputChannel
- Throws:
Throwable
-
TryReceive
public boolean TryReceive(TimeSpan timeout, JCORefOut<Message> message) throws Throwable
- Specified by:
TryReceive
in interfaceIInputChannel
- Throws:
Throwable
-
WaitForMessage
public boolean WaitForMessage(TimeSpan timeout) throws Throwable
- Specified by:
WaitForMessage
in interfaceIInputChannel
- Throws:
Throwable
-
BeginClose
public IAsyncResult BeginClose(AsyncCallback callback, NetObject state) throws Throwable
- Specified by:
BeginClose
in interfaceICommunicationObject
- Throws:
Throwable
-
BeginClose
public IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, NetObject state) throws Throwable
- Specified by:
BeginClose
in interfaceICommunicationObject
- Throws:
Throwable
-
BeginOpen
public IAsyncResult BeginOpen(AsyncCallback callback, NetObject state) throws Throwable
- Specified by:
BeginOpen
in interfaceICommunicationObject
- Throws:
Throwable
-
BeginOpen
public IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, NetObject state) throws Throwable
- Specified by:
BeginOpen
in interfaceICommunicationObject
- Throws:
Throwable
-
BeginReceive
public IAsyncResult BeginReceive(AsyncCallback callback, NetObject state) throws Throwable
- Specified by:
BeginReceive
in interfaceIInputChannel
- Throws:
Throwable
-
BeginReceive
public IAsyncResult BeginReceive(TimeSpan timeout, AsyncCallback callback, NetObject state) throws Throwable
- Specified by:
BeginReceive
in interfaceIInputChannel
- Throws:
Throwable
-
BeginSend
public IAsyncResult BeginSend(Message message, AsyncCallback callback, NetObject state) throws Throwable
- Specified by:
BeginSend
in interfaceIOutputChannel
- Throws:
Throwable
-
BeginSend
public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, NetObject state) throws Throwable
- Specified by:
BeginSend
in interfaceIOutputChannel
- Throws:
Throwable
-
BeginTryReceive
public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, NetObject state) throws Throwable
- Specified by:
BeginTryReceive
in interfaceIInputChannel
- Throws:
Throwable
-
BeginWaitForMessage
public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, NetObject state) throws Throwable
- Specified by:
BeginWaitForMessage
in interfaceIInputChannel
- Throws:
Throwable
-
EndReceive
public Message EndReceive(IAsyncResult result) throws Throwable
- Specified by:
EndReceive
in interfaceIInputChannel
- Throws:
Throwable
-
Receive
public Message Receive() throws Throwable
- Specified by:
Receive
in interfaceIInputChannel
- Throws:
Throwable
-
Receive
public Message Receive(TimeSpan timeout) throws Throwable
- Specified by:
Receive
in interfaceIInputChannel
- Throws:
Throwable
-
Abort
public void Abort() throws Throwable
- Specified by:
Abort
in interfaceICommunicationObject
- Throws:
Throwable
-
Close
public void Close() throws Throwable
- Specified by:
Close
in interfaceICommunicationObject
- Throws:
Throwable
-
Close
public void Close(TimeSpan timeout) throws Throwable
- Specified by:
Close
in interfaceICommunicationObject
- Throws:
Throwable
-
EndClose
public void EndClose(IAsyncResult result) throws Throwable
- Specified by:
EndClose
in interfaceICommunicationObject
- Throws:
Throwable
-
EndOpen
public void EndOpen(IAsyncResult result) throws Throwable
- Specified by:
EndOpen
in interfaceICommunicationObject
- Throws:
Throwable
-
EndSend
public void EndSend(IAsyncResult result) throws Throwable
- Specified by:
EndSend
in interfaceIOutputChannel
- Throws:
Throwable
-
Open
public void Open() throws Throwable
- Specified by:
Open
in interfaceICommunicationObject
- Throws:
Throwable
-
Open
public void Open(TimeSpan timeout) throws Throwable
- Specified by:
Open
in interfaceICommunicationObject
- Throws:
Throwable
-
Send
public void Send(Message message) throws Throwable
- Specified by:
Send
in interfaceIOutputChannel
- Throws:
Throwable
-
Send
public void Send(Message message, TimeSpan timeout) throws Throwable
- Specified by:
Send
in interfaceIOutputChannel
- Throws:
Throwable
-
getState
public CommunicationState getState() throws Throwable
- Specified by:
getState
in interfaceICommunicationObject
- Throws:
Throwable
-
getLocalAddress
public EndpointAddress getLocalAddress() throws Throwable
- Specified by:
getLocalAddress
in interfaceIInputChannel
- Throws:
Throwable
-
getRemoteAddress
public EndpointAddress getRemoteAddress() throws Throwable
- Specified by:
getRemoteAddress
in interfaceIOutputChannel
- Throws:
Throwable
-
getVia
public Uri getVia() throws Throwable
- Specified by:
getVia
in interfaceIOutputChannel
- Throws:
Throwable
-
addClosed
public void addClosed(EventHandler handler) throws Throwable
- Specified by:
addClosed
in interfaceICommunicationObject
- Throws:
Throwable
-
removeClosed
public void removeClosed(EventHandler handler) throws Throwable
- Specified by:
removeClosed
in interfaceICommunicationObject
- Throws:
Throwable
-
addClosing
public void addClosing(EventHandler handler) throws Throwable
- Specified by:
addClosing
in interfaceICommunicationObject
- Throws:
Throwable
-
removeClosing
public void removeClosing(EventHandler handler) throws Throwable
- Specified by:
removeClosing
in interfaceICommunicationObject
- Throws:
Throwable
-
addFaulted
public void addFaulted(EventHandler handler) throws Throwable
- Specified by:
addFaulted
in interfaceICommunicationObject
- Throws:
Throwable
-
removeFaulted
public void removeFaulted(EventHandler handler) throws Throwable
- Specified by:
removeFaulted
in interfaceICommunicationObject
- Throws:
Throwable
-
addOpened
public void addOpened(EventHandler handler) throws Throwable
- Specified by:
addOpened
in interfaceICommunicationObject
- Throws:
Throwable
-
removeOpened
public void removeOpened(EventHandler handler) throws Throwable
- Specified by:
removeOpened
in interfaceICommunicationObject
- Throws:
Throwable
-
addOpening
public void addOpening(EventHandler handler) throws Throwable
- Specified by:
addOpening
in interfaceICommunicationObject
- Throws:
Throwable
-
removeOpening
public void removeOpening(EventHandler handler) throws Throwable
- Specified by:
removeOpening
in interfaceICommunicationObject
- Throws:
Throwable
-
-