#pragma warning restore 1591 // Xml Comments


        bool EventTypeExists(EventSubscriptionHolder holder)
        {
            var eventType = Type.GetType(holder.EventType);
            return eventType != null;
        }
 EventSubscription ConvertToEventSubscription(EventSubscriptionHolder holder)
 {
     var eventType = Type.GetType(holder.EventType);
     var ownerType = Type.GetType(holder.Owner);
     return new EventSubscription
     {
         EventName = holder.EventName,
         EventType = eventType,
         Owner = ownerType,
         Method = ownerType.GetMethod(ProcessMethodInvoker.ProcessMethodName, new[] { eventType }),
         Versions = _serializer.FromJson<Dictionary<string,EventSourceVersion>>(holder.EventSourceVersions??string.Empty)
     };
 }
 EventSubscriptionHolder ConvertToEventSubscriptionHolder(EventSubscription subscription)
 {
     var holder = new EventSubscriptionHolder();
     CopyToEventSubscriptionHolder(subscription, holder);
     return holder;
 }
 void CopyToEventSubscriptionHolder(EventSubscription subscription, EventSubscriptionHolder holder)
 {
     holder.Owner = subscription.Owner.AssemblyQualifiedName;
     holder.Method = subscription.Method.Name;
     holder.EventType = subscription.EventType.AssemblyQualifiedName;
     holder.EventName = subscription.EventName;
     holder.EventSourceVersions = _serializer.ToJson(subscription.Versions);
 }
 bool EventSubscriberExists(EventSubscriptionHolder holder)
 {
     var ownerType = Type.GetType(holder.Owner);
     return ownerType != null;
 }