private static bool CreateFactoryComplete(IAsyncResult result) { ServiceBusOutputChannel.OpenMessagingFactoryAndMessageSenderAsyncResult asyncState = (ServiceBusOutputChannel.OpenMessagingFactoryAndMessageSenderAsyncResult)result.AsyncState; asyncState.outputChannel.messagingFactory = MessagingFactory.EndCreate(result); IAsyncResult asyncResult = asyncState.outputChannel.messagingFactory.BeginCreateMessageSender(asyncState.outputChannel.messagingAddress.EntityName, asyncState.timeoutHelper.RemainingTime(), asyncState.PrepareAsyncCompletion(ServiceBusOutputChannel.OpenMessagingFactoryAndMessageSenderAsyncResult.createSenderComplete), asyncState); return(asyncState.SyncContinue(asyncResult)); }
public MessagingFactory EndCreateMessagingFactory(IAsyncResult asyncResult) { return(MessagingFactory.EndCreate(asyncResult)); }