public Client(MessagePublicationNotificationService msgPubService, IWasInteropServiceCallback callback, string applicationPath, int listenerChannelId, Guid id)
 {
     CreationTime = DateTimeOffset.Now;
     _msgPubSvc = msgPubService;
     _callback = callback;
     ApplicationPath = applicationPath;
     ListenerChannelId = listenerChannelId;
     Id = id;
 }
 private void AutoStartServices(string appName, IWasInteropServiceCallback callback)
 {
     if (!appName.EndsWith("/"))
     {
         appName += "/";
     }
     var svcPaths = Directory.GetFiles(HttpRuntime.AppDomainAppPath, "*.svc", SearchOption.AllDirectories)
         .Select(f => appName + f.Substring(HttpRuntime.AppDomainAppPath.Length));
     foreach (var svcPath in svcPaths)
     {
         callback.EnsureServiceAvailable(svcPath);
     }
 }