本文整理汇总了C#中MessageDirection类的典型用法代码示例。如果您正苦于以下问题:C# MessageDirection类的具体用法?C# MessageDirection怎么用?C# MessageDirection使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MessageDirection类属于命名空间,在下文中一共展示了MessageDirection类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: IsDefined
internal static bool IsDefined(MessageDirection value)
{
if (value != MessageDirection.Input)
{
return (value == MessageDirection.Output);
}
return true;
}
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:8,代码来源:MessageDirectionHelper.cs
示例17: ReceiveSecurityHeader
protected ReceiveSecurityHeader(Message message, string actor, bool mustUnderstand, bool relay,
SecurityStandardsManager standardsManager,
SecurityAlgorithmSuite algorithmSuite,
int headerIndex,
MessageDirection direction)
: base(message, actor, mustUnderstand, relay, standardsManager, algorithmSuite, direction)
{
throw ExceptionHelper.PlatformNotSupported();
}
开发者ID:weshaggard,项目名称:wcf,代码行数:9,代码来源:ReceiveSecurityHeader.cs
示例18: MessageDescription
internal MessageDescription(string action, MessageDirection direction, MessageDescriptionItems items)
{
if (!MessageDirectionHelper.IsDefined(direction))
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("direction"));
this.action = action;
this.direction = direction;
this.items = items;
}
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:9,代码来源:MessageDescription.cs
示例19: Publish
/// <summary>
/// Publish the message to the scaleout so that other servers can receive it
/// </summary>
/// <param name="message"></param>
public override async Task Publish(MessageDirection direction, IMessage message, ScaleOutOrigin scaleOutOrigin)
{
if (!InitSuccess) return;
try
{
await ScaleToMongoDb(message);
}
catch (Exception ex)
{
Composable.GetExport<IXLogger>().Error(ex, "Failed to publish in MongoDB ScaleOut");
}
}
开发者ID:uffebjorklund,项目名称:MongoDbScaleOut,代码行数:16,代码来源:MongoDbScaleOut.cs
示例20: OverrideFlow
internal static void OverrideFlow(BindingParameterCollection parameters, string action, MessageDirection direction, TransactionFlowOption option)
{
Dictionary<DirectionalAction, TransactionFlowOption> dictionary = EnsureDictionary(parameters);
DirectionalAction key = new DirectionalAction(direction, action);
if (dictionary.ContainsKey(key))
{
dictionary[key] = option;
}
else
{
dictionary.Add(key, option);
}
}
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:13,代码来源:TransactionFlowAttribute.cs
注:本文中的MessageDirection类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论