Asset manager for Alexandria.
Inheritance: AssetManager
        /// <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;
        }
示例#2
0
 /// <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;
 }
示例#3
0
        /// <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;
            }
        }
示例#4
0
 /// <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;
 }
示例#5
0
 /// <summary>Initialise the <see cref="State"/>.</summary>
 /// <param name="manager"></param>
 public State(AlexandriaManager manager)
     : this(manager, FileManager.System)
 {
 }
示例#6
0
 /// <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;
 }
示例#7
0
 /// <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;
 }
示例#8
0
 /// <summary>Initialise the <see cref="State"/>.</summary>
 /// <param name="manager"></param>
 public State(AlexandriaManager manager)
     : this(manager, FileManager.System)
 {
 }