当前位置: 首页>>代码示例>>VB.NET>>正文


VB.NET ServerProcessing枚举代码示例

本文整理汇总了VB.NET中System.Runtime.Remoting.Channels.ServerProcessing枚举的典型用法代码示例。如果您正苦于以下问题:VB.NET ServerProcessing枚举的具体用法?VB.NET ServerProcessing怎么用?VB.NET ServerProcessing使用的例子?那么恭喜您, 这里精选的枚举代码示例或许可以为您提供帮助。


在下文中一共展示了ServerProcessing枚举的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。

示例1: ProcessMessage

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
         myServerChannelSinkStack.Pop(Me)
         If myBoolEnabled Then
            LoggingHelper.PrintResponse(myTextWriterOutput, responseHeaders, responseStream)
         End If

      Case ServerProcessing.OneWay
         myServerChannelSinkStack.Pop(Me)

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

   End Select
   Return myServerProcessing
End Function 'ProcessMessage
开发者ID:VB.NET开发者,项目名称:System.Runtime.Remoting.Channels,代码行数:31,代码来源:ServerProcessing


注:本文中的System.Runtime.Remoting.Channels.ServerProcessing枚举示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。