/// <summary> /// Creates Instance of Action block /// </summary> /// <typeparam name="TInput">Specifies the type of data received by the block</typeparam> /// <param name="action">action logic</param> /// <returns>ActionBlock</returns> public static ActionBlock <TInput> CreateInstance <TInput>(Action <TInput> action) { var actionBlock = new ActionBlock <TInput>(action); actionBlock.Log(); return(actionBlock); }