Skip to content

Commit

Permalink
Moved opening of the stream to after the subscription is created
Browse files Browse the repository at this point in the history
  • Loading branch information
abnanda1 committed Sep 30, 2013
1 parent c6ffb08 commit 730aa53
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ private void CreateTopic(ServiceBusConnectionContext connectionContext, int topi
// Create a client for this topic
TopicClient topicClient = TopicClient.CreateFromConnectionString(_configuration.ConnectionString, topicName);
connectionContext.SetTopicClients(topicClient, topicIndex);
openStream(topicIndex);

_trace.TraceInformation("Creation of a new topic client {0} completed successfully.", topicName);
}

CreateSubscription(connectionContext, topicIndex);
openStream(topicIndex);
}

private void CreateSubscription(ServiceBusConnectionContext connectionContext, int topicIndex)
Expand Down

0 comments on commit 730aa53

Please sign in to comment.