コード例 #1
0
ファイル: service.cs プロジェクト: yongzhao1/dotnet-samples
        public System.IO.Stream GetReversedStream()
        {
            //this file path assumes the image is in
            // the Service folder and the service is executing
            // in Service/bin
            string filePath = Path.Combine(
                System.Environment.CurrentDirectory,
                ".\\image.jpg");

            ReverseStream stream = new ReverseStream(filePath);

            return(stream);
        }
コード例 #2
0
ファイル: service.cs プロジェクト: tian1ll1/WPF_Examples
        public System.IO.Stream GetReversedStream()
        {
            //this file path assumes the image is in
            // the Service folder and the service is executing
            // in Service/bin
            string filePath = Path.Combine(
                System.Environment.CurrentDirectory,
                ".\\image.jpg");

            ReverseStream stream = new ReverseStream(filePath);
            return stream;
        }