forked from ServiceStack/ServiceStack.Text
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPclExport.Xbox.cs
More file actions
33 lines (28 loc) · 810 Bytes
/
Copy pathPclExport.Xbox.cs
File metadata and controls
33 lines (28 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//Copyright (c) Service Stack LLC. All Rights Reserved.
//License: https://raw.github.com/ServiceStack/ServiceStack/master/license.txt
#if XBOX
using System.IO;
namespace ServiceStack
{
public class XboxPclExport : PclExport
{
public static XboxPclExport Provider = new XboxPclExport();
public XboxPclExport()
{
this.PlatformName = "XBOX";
}
public static PclExport Configure()
{
Configure(Provider);
return Provider;
}
public override string ReadAllText(string filePath)
{
using (var fileStream = new FileStream(filePath, FileMode.Open, FileAccess.Read))
{
return new StreamReader(fileStream).ReadToEnd();
}
}
}
}
#endif