public void Init() { string[] strArray = Utility.GetConfig().AppSettings.Settings["AttachmentImpl"].Value.Split(new char[] { ' ' }); ConstructorInfo constructor = Assembly.Load(strArray[0]).GetType(strArray[1]).GetConstructor(new Type[0]); this.m_IAttachmentStorage = constructor.Invoke(new object[0]) as IAttachmentStorage; }
public ActivitiesController(IUserRepository userRepository, IActivityRepository activityRepository, IAttachmentRepository attachmentRepository, IAttachmentStorage attachmentStorage) : base(userRepository) { _userRepository = userRepository; _activityRepository = activityRepository; _attachmentRepository = attachmentRepository; _attachmentStorage = attachmentStorage; }