public MashupInfoRepository(ILogManager logManager, IPluginContext context, ITpBus bus, IMashupScriptStorage scriptStorage)
 {
     _bus = bus;
     _scriptStorage = scriptStorage;
     _log = logManager.GetLogger(GetType());
     _context = context;
 }
		public MashupInfoRepository(ILogManager logManager, IPluginContext context, ITpBus bus, IMashupScriptStorage scriptStorage)
		{
			_bus = bus;
			_scriptStorage = scriptStorage;
			_context = context;
			_lazyMashupManagerProfile =
				Lazy.Create(() => ObjectFactory.GetInstance<ISingleProfile>().Profile.GetProfile<MashupManagerProfile>());
			_log = logManager.GetLogger(GetType());
		}
 public MashupInfoRepository(ILogManager logManager, IPluginContext context, ITpBus bus, IMashupScriptStorage scriptStorage)
 {
     _bus                      = bus;
     _scriptStorage            = scriptStorage;
     _context                  = context;
     _lazyMashupManagerProfile =
         Lazy.Create(() => ObjectFactory.GetInstance <ISingleProfile>().Profile.GetProfile <MashupManagerProfile>());
     _log = logManager.GetLogger(GetType());
 }
		public static PluginProfileErrorCollection Save(IMashupScriptStorage scriptStorage, Mashup mashup)
		{
			return ReifyError(() => scriptStorage.SaveMashup(mashup));
		}
		public static PluginProfileErrorCollection Delete(IMashupScriptStorage scriptStorage, string mashup)
		{
			return ReifyError(() => scriptStorage.DeleteMashup(mashup));
		}