// 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;
        }
Beispiel #2
0
        // 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);
        }