コード例 #1
0
 private void WriteCancelInvocationMessage(CancelInvocationMessage cancelInvocationMessage, Packer packer)
 {
     packer.PackArrayHeader(3);
     packer.Pack(HubProtocolConstants.CancelInvocationMessageType);
     packer.PackString(cancelInvocationMessage.InvocationId);
     packer.PackDictionary(cancelInvocationMessage.Metadata);
 }
コード例 #2
0
 private void WriteCancelInvocationMessage(CancelInvocationMessage message, Packer packer)
 {
     packer.PackArrayHeader(3);
     packer.Pack(HubProtocolConstants.CancelInvocationMessageType);
     PackHeaders(packer, message.Headers);
     packer.PackString(message.InvocationId);
 }
コード例 #3
0
        private CancelInvocationMessage BindCancelInvocationMessage(JObject json)
        {
            var invocationId = JsonUtils.GetRequiredProperty <string>(json, InvocationIdPropertyName, JTokenType.String);
            var message      = new CancelInvocationMessage(invocationId);

            ReadHeaders(json, message.Headers);
            return(message);
        }
コード例 #4
0
 private void WriteCancelInvocationMessage(CancelInvocationMessage message, JsonTextWriter writer)
 {
     writer.WriteStartObject();
     WriteHubInvocationMessageCommon(message, writer, HubProtocolConstants.CancelInvocationMessageType);
     writer.WriteEndObject();
 }
コード例 #5
0
 private void WriteCancelInvocationMessage(CancelInvocationMessage cancelInvocationMessage, Packer packer)
 {
     packer.PackArrayHeader(2);
     packer.Pack(CancelInvocationMessageType);
     packer.PackString(cancelInvocationMessage.InvocationId);
 }
コード例 #6
0
 private void WriteCancelInvocationMessage(CancelInvocationMessage message, JsonTextWriter writer)
 {
     WriteInvocationId(message, writer);
 }
コード例 #7
0
ファイル: JsonHubProtocol.cs プロジェクト: YipingRuan/SignalR
 private void WriteCancelInvocationMessage(CancelInvocationMessage message, JsonTextWriter writer)
 {
     writer.WriteStartObject();
     WriteHubMessageCommon(message, writer, CancelInvocationMessageType);
     writer.WriteEndObject();
 }