当前位置: 首页>>代码示例>>C#>>正文


C# MessageDirection类代码示例

本文整理汇总了C#中MessageDirection的典型用法代码示例。如果您正苦于以下问题:C# MessageDirection类的具体用法?C# MessageDirection怎么用?C# MessageDirection使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


MessageDirection类属于命名空间,在下文中一共展示了MessageDirection类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: MethodInfoOperationSelector

            internal MethodInfoOperationSelector(ContractDescription description, MessageDirection directionThatRequiresClientOpSelection)
            {
                operationMap = new Dictionary<object, string>();

                for (int i = 0; i < description.Operations.Count; i++)
                {
                    OperationDescription operation = description.Operations[i];
                    if (operation.Messages[0].Direction == directionThatRequiresClientOpSelection)
                    {
                        if (operation.SyncMethod != null)
                        {
                            if (!operationMap.ContainsKey(operation.SyncMethod.MethodHandle))
                                operationMap.Add(operation.SyncMethod.MethodHandle, operation.Name);
                        }
    
                        if (operation.BeginMethod != null)
                        {
                            if (!operationMap.ContainsKey(operation.BeginMethod.MethodHandle))
                            {
                                operationMap.Add(operation.BeginMethod.MethodHandle, operation.Name);
                                operationMap.Add(operation.EndMethod.MethodHandle, operation.Name);                    
                            }
                        }

                        if (operation.TaskMethod != null)
                        {
                            if (!operationMap.ContainsKey(operation.TaskMethod.MethodHandle))
                            {
                                operationMap.Add(operation.TaskMethod.MethodHandle, operation.Name);
                            }
                        }
                    }
                }
            }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:34,代码来源:OperationSelectorBehavior.cs

示例2: WSSecurityOneDotZeroSendSecurityHeader

 public WSSecurityOneDotZeroSendSecurityHeader(Message message, string actor, bool mustUnderstand, bool relay,
     SecurityStandardsManager standardsManager,
     SecurityAlgorithmSuite algorithmSuite,
     MessageDirection direction)
     : base(message, actor, mustUnderstand, relay, standardsManager, algorithmSuite, direction)
 {
 }
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:7,代码来源:WSSecurityOneDotZeroSendSecurityHeader.cs

示例3: DebugInfo

 public DebugInfo(MessageDirection Direction, string FromID, string FromIP, Message Content)
 {
     this.FromID = FromID;
     this.FromIP = FromIP;
     this.Content = Content;
     this.Direction = Direction;
 }
开发者ID:codebutler,项目名称:meshwork,代码行数:7,代码来源:DebugInfo.cs

示例4: InferMessageDescription

 internal override void InferMessageDescription(OperationDescription operation, object owner, MessageDirection direction)
 {
     ContractInferenceHelper.CheckForDisposableParameters(operation, this.InternalDeclaredMessageType);
     string overridingAction = null;
     SerializerOption dataContractSerializer = SerializerOption.DataContractSerializer;
     Receive receive = owner as Receive;
     if (receive != null)
     {
         overridingAction = receive.Action;
         dataContractSerializer = receive.SerializerOption;
     }
     else
     {
         ReceiveReply reply = owner as ReceiveReply;
         overridingAction = reply.Action;
         dataContractSerializer = reply.Request.SerializerOption;
     }
     if (direction == MessageDirection.Input)
     {
         ContractInferenceHelper.AddInputMessage(operation, overridingAction, this.InternalDeclaredMessageType, dataContractSerializer);
     }
     else
     {
         ContractInferenceHelper.AddOutputMessage(operation, overridingAction, this.InternalDeclaredMessageType, dataContractSerializer);
     }
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:26,代码来源:ReceiveMessageContent.cs

示例5: WSSecurityOneDotOneReceiveSecurityHeader

 public WSSecurityOneDotOneReceiveSecurityHeader(Message message, string actor, bool mustUnderstand, bool relay,
     SecurityStandardsManager standardsManager,
     SecurityAlgorithmSuite algorithmSuite,
     int headerIndex, MessageDirection direction)
     : base(message, actor, mustUnderstand, relay, standardsManager, algorithmSuite, headerIndex, direction)
 {
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:7,代码来源:WSSecurityOneDotOneReceiveSecurityHeader.cs

示例6: QueuedMessage

 public QueuedMessage(MessageDirection direction, int chunk_stream_id, RTMPMessage msg)
 {
   this.Direction     = direction;
   this.ChunkStreamId = chunk_stream_id;
   this.Message       = msg;
   this.TimeStamp     = Stopwatch.Elapsed;
 }
开发者ID:kumaryu,项目名称:peercaststation,代码行数:7,代码来源:RTMPConnection.cs

示例7: GmailEmail

 public GmailEmail(DateTimeOffset timestamp, MessageDirection direction, string subject, string content)
 {
     _timestamp = timestamp;
     _direction = direction;
     _subject = subject;
     _content = content;
 }
开发者ID:CallWall,项目名称:CallWall.Windows,代码行数:7,代码来源:GmailCommunicationQueryProvider.cs

示例8: UserCommandMessage

		public UserCommandMessage(StringDictionary StringResources, MessageDirection Direction, byte[] Buffer, int StartIndex = 0) 
            : base () 
        {
            this.TransferDirection = Direction;
            this.StringResources = StringResources;
            ReadFrom(Buffer, StartIndex);
        }
开发者ID:GJiin,项目名称:meridian59-dotnet,代码行数:7,代码来源:UserCommandMessage.cs

示例9: MessageBufferEventArgs

 public MessageBufferEventArgs(byte[] MessageBuffer, int Length, IntPtr MemoryAddress, MessageDirection Direction = MessageDirection.ServerToClient)
 {
     this.MessageBuffer = MessageBuffer;
     this.Length = Length;
     this.MemoryAddress = MemoryAddress;
     this.Direction = Direction;
 }
开发者ID:GJiin,项目名称:meridian59-dotnet,代码行数:7,代码来源:MessageBufferEvent.cs

示例10: Message

        public Message()
        {
            this._headNumber = 1;
            this._messageNumber = 1;
            this._messageTitle = DateTime.Now.Ticks.ToString().Substring(0, 8);

            this._generalParametersPresent = true;
            this._messageTestPresent = true;
            this._numberOfCounters = 0;
            this._numberOfPostdates = 0;
            this._presentTimeCodes = false;
            this._numberOfBarcodes = 0;

            this._messageDirection = MessageDirection.Normal;
            this._horizontalDirection = HorizontalDirection.Normal;
            this._verticalDirection = VerticalDirection.Normal;
            this._tachoMode = TachoMode.No;
            this._manualTrigger = ManualTrigger.Yes;
            this._triggerMode = TriggerMode.Object;
            this._unitForMargins = UnitForMargins.Millimeters;
            this._dinMode = DINMode.No;

            this._mulitTopValue = 0;
            this._objectTopFilter = 1;
            this._tachoDivision = 1;
            this._forwardMargin = 3;
            this._returnMargin = 3;
            this._interval = 3;
            this._printingSpeed = 100;
            this._algorithmNumber = 0;

            this.Lines = new List<Line>();
        }
开发者ID:harrywong,项目名称:Imaje9040Interface.Net,代码行数:33,代码来源:Message.cs

示例11: SecurityHeader

        public SecurityHeader(Message message,
            string actor, bool mustUnderstand, bool relay,
            SecurityStandardsManager standardsManager, SecurityAlgorithmSuite algorithmSuite,
            MessageDirection transferDirection)
        {
            if (message == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("message");
            }
            if (actor == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("actor");
            }
            if (standardsManager == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("standardsManager");
            }
            if (algorithmSuite == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("algorithmSuite");
            }

            _message = message;
            _actor = actor;
            _mustUnderstand = mustUnderstand;
            _relay = relay;
            _standardsManager = standardsManager;
            _algorithmSuite = algorithmSuite;
            _transferDirection = transferDirection;
        }
开发者ID:weshaggard,项目名称:wcf,代码行数:30,代码来源:SecurityHeader.cs

示例12: GmailEmail

 public GmailEmail(DateTimeOffset timestamp, MessageDirection direction, string subject, string deeplink)
 {
     _timestamp = timestamp;
     _direction = direction;
     _subject = subject;
     _deepLink = deeplink;
 }
开发者ID:CallWall,项目名称:CallWall.Web,代码行数:7,代码来源:GmailEmail.cs

示例13: Opposite

 internal static MessageDirection Opposite(MessageDirection d)
 {
     if (d != MessageDirection.Input)
     {
         return MessageDirection.Input;
     }
     return MessageDirection.Output;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:8,代码来源:MessageDirectionHelper.cs

示例14: SendSecurityHeader

 protected SendSecurityHeader(Message message, string actor, bool mustUnderstand, bool relay,
     SecurityStandardsManager standardsManager,
     SecurityAlgorithmSuite algorithmSuite,
     MessageDirection transferDirection)
     : base(message, actor, mustUnderstand, relay, standardsManager, algorithmSuite, transferDirection)
 {
     throw ExceptionHelper.PlatformNotSupported();
 }
开发者ID:SoumikMukherjeeDOTNET,项目名称:wcf,代码行数:8,代码来源:SendSecurityHeader.cs

示例15: SendSecurityHeader

 protected SendSecurityHeader(Message message, string actor, bool mustUnderstand, bool relay,
     SecurityStandardsManager standardsManager,
     SecurityAlgorithmSuite algorithmSuite, 
     MessageDirection transferDirection)
     : base(message, actor, mustUnderstand, relay, standardsManager, algorithmSuite, transferDirection)
 {
     this.elementContainer = new SendSecurityHeaderElementContainer();
 }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:8,代码来源:SendSecurityHeader.cs


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