// If we ever want to make an implementation of IThread that we want in core, /// <summary> /// Creates an IThread instance of the specified thread type. /// </summary> /// <param name="threadType">Type of the file.</param> /// <returns></returns> public static IThread Create(ThreadType threadType) { IThread thread = new BasicThread(); switch (threadType) { case ThreadType.MockThread: thread = new MockThread(); break; default: // returns the default - BasicFile implementation break; } return thread; }
// If we ever want to make an implementation of IThread that we want in core, /// <summary> /// Creates an IThread instance of the specified thread type. /// </summary> /// <param name="threadType">Type of the file.</param> /// <returns></returns> public static IThread Create(ThreadType threadType) { IThread thread = new BasicThread(); switch (threadType) { case ThreadType.MockThread: thread = new MockThread(); break; default: // returns the default - BasicFile implementation break; } return(thread); }
/// <summary> /// Creates an IThread instance. /// </summary> /// <returns></returns> public static IThread Create() { IThread file = new BasicThread(); return file; }
/// <summary> /// Creates an IThread instance. /// </summary> /// <returns></returns> public static IThread Create() { IThread file = new BasicThread(); return(file); }