ValueServices.cs 738 B

1234567891011121314151617181920212223242526272829303132
  1. namespace Xilium.CefGlue.Common.Shared.Serialization
  2. {
  3. public static class ValueServices
  4. {
  5. internal static IValueProvider ValueProxy { private get; set; }
  6. static ValueServices()
  7. {
  8. Reset();
  9. }
  10. internal static void Reset()
  11. {
  12. ValueProxy = new ValueProvider();
  13. }
  14. public static ICefBinaryValue CreateBinary(byte[] data)
  15. {
  16. return ValueProxy.CreateBinary(data);
  17. }
  18. public static ICefDictionaryValue CreateDictionary()
  19. {
  20. return ValueProxy.CreateDictionary();
  21. }
  22. public static ICefListValue CreateList()
  23. {
  24. return ValueProxy.CreateList();
  25. }
  26. }
  27. }