2002-01-23 Miguel de Icaza <miguel@ximian.com>
[mono.git] / mcs / class / corlib / System / AppDomainSetup.cs
1 //
2 // System/AppDomainSetup.cs
3 //
4 // Author:
5 //   Dietmar Maurer (dietmar@ximian.com)
6 //
7 // (C) 2001 Ximian, Inc.  http://www.ximian.com
8 //
9
10 using System;
11 using System.Runtime.CompilerServices;
12
13 namespace System {
14
15
16         public sealed class AppDomainSetup : IAppDomainSetup {
17                 string application_base;
18                 string application_name;
19                 string cache_path;
20                 string configuration_file;
21                 string dynamic_base;
22                 string license_file;
23                 string private_bin_path;
24                 string private_bin_path_probe;
25                 string shadow_copy_directories;
26                 string shadow_copy_files;
27                 bool publisher_policy;
28                 
29                 [MethodImplAttribute(MethodImplOptions.InternalCall)]
30                 private static extern AppDomainSetup InitAppDomainSetup (AppDomainSetup setup);
31
32                 public AppDomainSetup ()
33                 {
34                         InitAppDomainSetup (this);
35                 }
36                 
37                 public string ApplicationBase {
38
39                         get {
40                                 return application_base;
41                         }
42
43                         set {
44                                 application_base = value;
45                         }
46                 }
47
48                 public string ApplicationName {
49
50                         get {
51                                 return application_name;
52                         }
53
54                         set {
55                                 application_name = value;
56                         }
57                 }
58
59                 public string CachePath {
60
61                         get {
62                                 return cache_path;
63                         }
64
65                         set {
66                                 cache_path = value;
67                         }
68                 }
69
70                 public string ConfigurationFile {
71
72                         get {
73                                 return configuration_file;
74                         }
75
76                         set {
77                                 configuration_file = value;
78                         }
79                 }
80
81                 public bool DisallowPublisherPolicy {
82                         get {
83                                 return publisher_policy;
84                         }
85
86                         set {
87                                 publisher_policy = value;
88                         }
89                 }
90                 
91                 public string DynamicBase {
92
93                         get {
94                                 return dynamic_base;
95                         }
96
97                         set {
98                                 dynamic_base = value;
99                         }
100                 }
101
102                 public string LicenseFile {
103
104                         get {
105                                 return license_file;
106                         }
107
108                         set {
109                                 license_file = value;
110                         }
111                 }
112
113                 
114
115                 public string PrivateBinPath {
116
117                         get {
118                                 return private_bin_path;
119                         }
120
121                         set {
122                                 private_bin_path = value;
123                         }
124                 }
125
126                 public string PrivateBinPathProbe {
127
128                         get {
129                                 return private_bin_path_probe;
130                         }
131
132                         set {
133                                 private_bin_path_probe = value;
134                         }
135                 }
136
137                 public string ShadowCopyDirectories {
138
139                         get {
140                                 return shadow_copy_directories;
141                         }
142
143                         set {
144                                 shadow_copy_directories = value;
145                         }
146                 }
147
148                 public string ShadowCopyFiles {
149
150                         get {
151                                 return shadow_copy_files;
152                         }
153
154                         set {
155                                 shadow_copy_files = value;
156                         }
157                 }
158                 
159         }
160 }