public static void SetCorrelationIds(this IRequest request) { if (string.IsNullOrEmpty(request.RequestId)) { request.RequestId = Guid.NewGuid().ToString(); } request.RequesterId = RequesterId.Create(); }
private Dictionary <string, string> BuildDefaultQueryParams() { var dic = new Dictionary <string, string> { { "v", ApiVersion }, { "requesterid", RequesterId.ToString() }, { "dateformat", "iso" } }; if (TokenInfo != null) { dic.Add("t", TokenInfo.Token.ToString()); } return(dic); }
public IObservable <IResponse> GetResponses(IRequest request) { request.RequestId = Guid.NewGuid().ToString(); request.RequesterId = RequesterId.Create(); return(Observable.Create <IResponse>(observer => { IDisposable disposable = _responseSource.Messages .Where(response => response.RequestId == request.RequestId && response.RequesterId == request.RequesterId) .Subscribe(observer); _requestPublisher.Publish(request); return disposable; })); }
public RequestY(RequesterId requesterId, RequestId requestId) : base(requesterId, requestId) { }
public RequestY(RequesterId requesterId, RequestId requestId) : base(requesterId, requestId) { }
public Request(RequesterId requesterId, RequestId requestId) { RequestId = requestId; RequesterId = requesterId; }
public Request(RequesterId requesterId, RequestId requestId) { RequestId = requestId; RequesterId = requesterId; }