Phoenix.Channel.ReplyEventName C# (CSharp) 메소드

ReplyEventName() 개인적인 메소드

private ReplyEventName ( string ref_ ) : string
ref_ string
리턴 string
    internal string ReplyEventName(string ref_)
    {
      return $"chan_reply_{ref_}";
    }
  }

Usage Example

예제 #1
0
파일: Push.cs 프로젝트: Mazyod/PhoenixSharp
        internal void StartTimeout()
        {
            // PhoenixJS: null check implicit
            CancelTimeout();

            Ref       = _channel.Socket.MakeRef();
            _refEvent = Channel.ReplyEventName(Ref);

            var serializer = _channel.Socket.Opts.MessageSerializer;

            _channel.On(_refEvent, message =>
            {
                CancelRefEvent();
                CancelTimeout();
                _receivedResp = serializer.MapReply(message.Payload);
                MatchReceive(_receivedResp);
            });

            _delayedExecution =
                _channel.Socket.Opts.DelayedExecutor.Execute(() => { Trigger(ReplyStatus.Timeout); }, _timeout);
        }
All Usage Examples Of Phoenix.Channel::ReplyEventName