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"))); }
public ChatCollectServiceCreationPresetEntity(string name, string serviceEntryId, ChatCollectServiceEntry.IChatCollectServiceCreationOption creationOption) { this.Name = name; this.ServiceEntryId = serviceEntryId; this.CreationOption = creationOption; }
public ChatCollectServiceCreationPreset(string name, ChatCollectServiceEntry.IChatCollectServiceEntry serviceEntry, ChatCollectServiceEntry.IChatCollectServiceCreationOption creationOption) { this.Name = name; this.ServiceEntry = serviceEntry; this.CreationOption = creationOption; }
public void AddCreationPreset(string name, ChatCollectServiceEntry.IChatCollectServiceEntry serviceEntry, ChatCollectServiceEntry.IChatCollectServiceCreationOption creationOption) { creationPresets.Add(new ChatCollectServiceCreationPreset(name, serviceEntry, creationOption)); }
public void AddService(ChatCollectServiceEntry.IChatCollectServiceEntry serviceEntry, ChatCollectServiceEntry.IChatCollectServiceCreationOption creationOption) { try { registeredServices.Add(serviceEntry.GetNewService(creationOption)); } catch (ChatCollectServiceEntry.ChatCollectServiceCreationException e) { ErrorOccurredInServiceCreation?.Invoke(serviceEntry, e.Message); } }