Exemple #1
0
 protected ChatCollectServiceCreationPresetEntity(SerializationInfo info, StreamingContext context)
 {
     Name           = info.GetString("Name");
     ServiceEntryId = info.GetString("ServiceEntryId");
     CreationOption = (ChatCollectServiceEntry.IChatCollectServiceCreationOption)info.GetValue("CreationOption", Type.GetType(info.GetString("CreationOptionType")));
 }
Exemple #2
0
 public ChatCollectServiceCreationPresetEntity(string name, string serviceEntryId, ChatCollectServiceEntry.IChatCollectServiceCreationOption creationOption)
 {
     this.Name           = name;
     this.ServiceEntryId = serviceEntryId;
     this.CreationOption = creationOption;
 }
Exemple #3
0
 public ChatCollectServiceCreationPreset(string name, ChatCollectServiceEntry.IChatCollectServiceEntry serviceEntry, ChatCollectServiceEntry.IChatCollectServiceCreationOption creationOption)
 {
     this.Name           = name;
     this.ServiceEntry   = serviceEntry;
     this.CreationOption = creationOption;
 }
Exemple #4
0
 public void AddCreationPreset(string name, ChatCollectServiceEntry.IChatCollectServiceEntry serviceEntry, ChatCollectServiceEntry.IChatCollectServiceCreationOption creationOption)
 {
     creationPresets.Add(new ChatCollectServiceCreationPreset(name, serviceEntry, creationOption));
 }
Exemple #5
0
 public void AddService(ChatCollectServiceEntry.IChatCollectServiceEntry serviceEntry, ChatCollectServiceEntry.IChatCollectServiceCreationOption creationOption)
 {
     try
     {
         registeredServices.Add(serviceEntry.GetNewService(creationOption));
     }
     catch (ChatCollectServiceEntry.ChatCollectServiceCreationException e)
     {
         ErrorOccurredInServiceCreation?.Invoke(serviceEntry, e.Message);
     }
 }