public IMessagingSession GetMessagingSession(string transportId, string name, Action onFailure = null) { ResolvedTransport transport = ResolveTransport(transportId); try { return(transport.GetSession(transportId, name, onFailure)); } catch (Exception e) { throw new TransportException(string.Format("Failed to create processing group {0} on transport {1}", name, transportId), e); } }
public IMessagingSession GetMessagingSession(Endpoint endpoint, string name, Action onFailure = null) { ResolvedTransport transport = ResolveTransport(endpoint.TransportId); try { return(transport.GetSession(endpoint, name, onFailure)); } catch (Exception e) { throw new TransportException($"Failed to create processing group {name} on transport {endpoint.TransportId}", e); } }