// 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;
        }
예제 #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);
        }
 /// <summary>
 /// Creates an IThread instance.
 /// </summary>
 /// <returns></returns>
 public static IThread Create()
 {
     IThread file = new BasicThread();
     return file;
 }
예제 #4
0
        /// <summary>
        /// Creates an IThread instance.
        /// </summary>
        /// <returns></returns>
        public static IThread Create()
        {
            IThread file = new BasicThread();

            return(file);
        }