Nancy.Response.GetStringContents C# (CSharp) 메소드

GetStringContents() 보호된 정적인 메소드

Converts a string content value to a response action.
protected static GetStringContents ( string contents ) : Action
contents string The string containing the content.
리턴 Action
        protected static Action<Stream> GetStringContents(string contents)
        {
            return stream =>
            {
                var writer = new StreamWriter(stream) { AutoFlush = true };
                writer.Write(contents);
            };
        }