Export (0) Print
Expand All

ServerProcessing Enumeration

Indicates the status of the server message processing.

Namespace:  System.Runtime.Remoting.Channels
Assembly:  mscorlib (in mscorlib.dll)

<SerializableAttribute> _
<ComVisibleAttribute(True)> _
Public Enumeration ServerProcessing
Dim instance As ServerProcessing

Member nameDescription
CompleteThe server synchronously processed the message.
OneWayThe message was dispatched and no response can be sent.
AsyncThe call was dispatched asynchronously, which indicates that the sink must store response data on the stack for later processing.

Public Function ProcessMessage(ByVal myServerChannelSinkStack As IServerChannelSinkStack, _
            ByVal requestMsg As IMessage, ByVal requestHeaders As ITransportHeaders, ByVal requestStream As Stream, ByRef _
            msg As IMessage, ByRef responseHeaders As ITransportHeaders, ByRef responseStream _
            As Stream) As ServerProcessing Implements IServerChannelSink.ProcessMessage
   If myBoolEnabled Then
      LoggingHelper.PrintRequest(myTextWriterOutput, requestHeaders, requestStream)
   End If
   myServerChannelSinkStack.Push(Me, Nothing)
   Dim myServerProcessing As ServerProcessing = myNewNextSink.ProcessMessage( _
    myServerChannelSinkStack, requestMsg, requestHeaders, requestStream, msg, responseHeaders, responseStream)

   Console.WriteLine("ServerProcessing.Complete value is:   " + ServerProcessing.Complete.Tostring())
   Console.WriteLine("ServerProcessing.OneWay Value is:     " + ServerProcessing.OneWay.Tostring())
   Console.WriteLine("ServerProcessing.Async value is:      " + ServerProcessing.Async.Tostring())

   Select Case myServerProcessing
      Case ServerProcessing.Complete
         If myBoolEnabled Then
            LoggingHelper.PrintResponse(myTextWriterOutput, responseHeaders, responseStream)
         End If 

      Case ServerProcessing.OneWay

      Case ServerProcessing.Async
         myServerChannelSinkStack.Store(Me, Nothing)

   End Select 
   Return myServerProcessing
End Function 'ProcessMessage

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0

Community Additions

© 2015 Microsoft