Beispiel #1
0
 /// <summary>
 /// Adds specified type of service object to map.
 /// </summary>
 /// <param name="xmlElementName">Name of the XML element.</param>
 /// <param name="type">The ServiceObject type.</param>
 /// <param name="createServiceObjectWithServiceParam">Delegate to create service object with service param.</param>
 /// <param name="createServiceObjectWithAttachmentParam">Delegate to create service object with attachment param.</param>
 private void AddServiceObjectType(
     string xmlElementName,
     Type type,
     CreateServiceObjectWithServiceParam createServiceObjectWithServiceParam,
     CreateServiceObjectWithAttachmentParam createServiceObjectWithAttachmentParam)
 {
     this.xmlElementNameToServiceObjectClassMap.Add(xmlElementName, type);
     this.serviceObjectConstructorsWithServiceParam.Add(type, createServiceObjectWithServiceParam);
     if (createServiceObjectWithAttachmentParam != null)
     {
         this.serviceObjectConstructorsWithAttachmentParam.Add(type, createServiceObjectWithAttachmentParam);
     }
 }
 /// <summary>
 /// Adds specified type of service object to map.
 /// </summary>
 /// <param name="xmlElementName">Name of the XML element.</param>
 /// <param name="type">The ServiceObject type.</param>
 /// <param name="createServiceObjectWithServiceParam">Delegate to create service object with service param.</param>
 /// <param name="createServiceObjectWithAttachmentParam">Delegate to create service object with attachment param.</param>
 private void AddServiceObjectType(
     string xmlElementName,
     Type type,
     CreateServiceObjectWithServiceParam createServiceObjectWithServiceParam,
     CreateServiceObjectWithAttachmentParam createServiceObjectWithAttachmentParam)
 {
     this.xmlElementNameToServiceObjectClassMap.Add(xmlElementName, type);
     this.serviceObjectConstructorsWithServiceParam.Add(type, createServiceObjectWithServiceParam);
     if (createServiceObjectWithAttachmentParam != null)
     {
         this.serviceObjectConstructorsWithAttachmentParam.Add(type, createServiceObjectWithAttachmentParam);
     }
 }