Esempio n. 1
0
        public void OnSessionAsync(Func <IMessageSession, Message, CancellationToken, Task> callback, Func <ExceptionReceivedEventArgs, Task> exceptionHandler)
        {
            _queueClient.RegisterSessionHandler(callback, _settings.GetSessionHandlerOptions(exceptionHandler));

            _unregisterSessionHandler = true;
        }
Esempio n. 2
0
 public Task RegisterSessionHandlerFactoryAsync(IMessageSessionAsyncHandlerFactory factory, EventHandler <ExceptionReceivedEventArgs> exceptionHandler)
 {
     return(_client.RegisterSessionHandlerFactoryAsync(factory, _settings.GetSessionHandlerOptions(exceptionHandler)));
 }