/// <summary> /// Initialise the object. /// </summary> /// <param name="manager"></param> /// <param name="name"></param> /// <param name="description"></param> /// <param name="callbacks"></param> public BackgroundOperation(AlexandriaManager manager, string name, string description, BackgroundOperationCallback[] callbacks) { if (name == null) throw new ArgumentNullException("name"); Name = name; Description = description; foreach (BackgroundOperationCallback callback in callbacks) Execute += callback; }
/// <summary>Initialise the <see cref="State"/>.</summary> /// <param name="manager"></param> /// <param name="fileManager"></param> public State(AlexandriaManager manager, FileManager fileManager) : base(manager, "State") { if (manager == null) { throw new ArgumentNullException("manager"); } if (fileManager == null) { throw new ArgumentNullException("fileManager"); } Manager = manager; FileManager = fileManager; }
/// <summary> /// Initialise the object. /// </summary> /// <param name="manager"></param> /// <param name="name"></param> /// <param name="description"></param> /// <param name="callbacks"></param> public BackgroundOperation(AlexandriaManager manager, string name, string description, BackgroundOperationCallback[] callbacks) { if (name == null) { throw new ArgumentNullException("name"); } Name = name; Description = description; foreach (BackgroundOperationCallback callback in callbacks) { Execute += callback; } }
/// <summary>Initialise the <see cref="PathState"/>.</summary> /// <param name="manager"></param> /// <param name="rootPath"></param> /// <param name="fileManager"></param> public PathState(AlexandriaManager manager, string rootPath, FileManager fileManager) : base(manager, fileManager) { RootPath = rootPath; }
/// <summary>Initialise the <see cref="State"/>.</summary> /// <param name="manager"></param> public State(AlexandriaManager manager) : this(manager, FileManager.System) { }
/// <summary>Initialise the <see cref="State"/>.</summary> /// <param name="manager"></param> /// <param name="fileManager"></param> public State(AlexandriaManager manager, FileManager fileManager) : base(manager, "State") { if (manager == null) throw new ArgumentNullException("manager"); if (fileManager == null) throw new ArgumentNullException("fileManager"); Manager = manager; FileManager = fileManager; }