RemotingConfiguration.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. //
  2. // System.Runtime.Remoting.RemotingConfiguration.cs
  3. //
  4. // Author: Jaime Anguiano Olarra ([email protected])
  5. //
  6. // (C) 2002, Jaime Anguiano Olarra
  7. //
  8. // FIXME: This is just the skeleton for practical purposes
  9. using System;
  10. using System.IO;
  11. using System.Security.Cryptography;
  12. namespace System.Runtime.Remoting
  13. {
  14. [MonoTODO]
  15. public class RemotingConfiguration
  16. {
  17. static string applicationID = null;
  18. static string applicationName = null;
  19. static string processId = null;
  20. static string configFile = "";
  21. static MiniParser parser = null;
  22. // public properties
  23. // At this time the ID will be the application name
  24. public static string ApplicationId
  25. {
  26. get
  27. {
  28. applicationID = AppDomain.CurrentDomain.SetupInformation.ApplicationName;
  29. return applicationID;
  30. }
  31. }
  32. public static string ApplicationName
  33. {
  34. get {
  35. try {
  36. applicationName = AppDomain.CurrentDomain.SetupInformation.ApplicationName;
  37. }
  38. catch (Exception e) {
  39. throw e;
  40. }
  41. // We return null if the application name has not been set.
  42. return null;
  43. }
  44. set { applicationName = value; }
  45. }
  46. public static string ProcessId
  47. {
  48. get {
  49. processId = AppDomain.CurrentDomain.SetupInformation.ApplicationName;
  50. return processId;
  51. }
  52. }
  53. // public methods
  54. public static void Configure (string filename)
  55. {
  56. throw new NotImplementedException ();
  57. }
  58. public static ActivatedClientTypeEntry GetRegisteredActivatedClientTypes () {
  59. throw new NotImplementedException ();
  60. }
  61. public static ActivatedServiceTypeEntry GetRegisteredActivatedServiceTypes () {
  62. throw new NotImplementedException ();
  63. }
  64. public static WellKnownClientTypeEntry GetRegisteredWellKnownClientTypes () {
  65. throw new NotImplementedException ();
  66. }
  67. public static WellKnownServiceTypeEntry GetRegisteredWellKnownServiceTypes () {
  68. throw new NotImplementedException ();
  69. }
  70. public static bool IsActivationAllowed (Type serverType) {
  71. throw new NotImplementedException ();
  72. }
  73. public static ActivatedClientTypeEntry IsRemotelyActivatedClientType (Type serviceTypes) {
  74. throw new NotImplementedException ();
  75. }
  76. public static ActivatedClientTypeEntry IsRemotelyActivatedClientType (string typeName, string assemblyName) {
  77. throw new NotImplementedException ();
  78. }
  79. public static WellKnownClientTypeEntry IsWellKnownClientType (Type serviceType) {
  80. throw new NotImplementedException ();
  81. }
  82. public static WellKnownClientTypeEntry IsWellKnownClientType (string typeName, string assemblyName) {
  83. throw new NotImplementedException ();
  84. }
  85. public static void RegisterActivatedClientType (ActivatedClientTypeEntry entry) {
  86. throw new NotImplementedException ();
  87. }
  88. public static void RegisterActivatedClientType (Type type, string appUrl) {
  89. throw new NotImplementedException ();
  90. }
  91. public static void RegisterActivatedServiceType (ActivatedServiceTypeEntry entry) {
  92. throw new NotImplementedException ();
  93. }
  94. public static void RegisterActivatedServiceType (Type type) {
  95. throw new NotImplementedException ();
  96. }
  97. public static void RegisterWellKnownClientType (WellKnownClientTypeEntry entry) {
  98. throw new NotImplementedException ();
  99. }
  100. public static void RegisterWellKnownServiceType (Type type, string objectUrl) {
  101. throw new NotImplementedException ();
  102. }
  103. }
  104. }