public ApplicationInfo(string applicationKey, string applicationPath, int siteId, string applicationPoolName, ApplicationPoolStates applicationPoolState, ApplicationRequestsBlockedStates requestsBlockedState, Uri messagePublicationNotificationServiceUri, Func<int> channelIdFactory)
 {
     CreationTime = DateTimeOffset.Now;
     _requestsBlockedState = requestsBlockedState;
     ApplicationKey = applicationKey;
     ApplicationPath = applicationPath;
     ApplicationPoolName = applicationPoolName;
     ApplicationPoolState = applicationPoolState;
     ListenerChannelSetup = new ListenerChannelSetup(applicationKey, applicationPath, messagePublicationNotificationServiceUri);
     ListenerChannelId = new Lazy<int>(channelIdFactory);
     SiteId = siteId;
     CanOpenNewListenerChannelInstance = true;
 }
 public void UpdateApplicationPool(string applicationPoolName, ApplicationPoolStates applicationPoolState)
 {
     ApplicationPoolName = applicationPoolName;
     ApplicationPoolState = applicationPoolState;
     UpdateCanOpenNewListenerChannelInstance();
 }
 public ApplicationPoolStateChangedEventArgs(string applicationPoolId, ApplicationPoolStates applicationPoolState)
 {
     ApplicationPoolId = applicationPoolId;
     State = applicationPoolState;
 }