@@ -74,7 +74,7 @@ public NamedPipeClientStream (string serverName, string pipeName, PipeDirection
74
74
}
75
75
76
76
public NamedPipeClientStream ( string serverName , string pipeName , PipeDirection direction , PipeOptions options , TokenImpersonationLevel impersonationLevel , HandleInheritability inheritability )
77
- #if MOBILE
77
+ #if MOBILE && ! UNITY_AOT
78
78
: base ( direction , DefaultBufferSize )
79
79
{
80
80
throw new NotImplementedException ( ) ;
@@ -88,13 +88,17 @@ public NamedPipeClientStream (string serverName, string pipeName, PipeDirection
88
88
public NamedPipeClientStream ( PipeDirection direction , bool isAsync , bool isConnected , SafePipeHandle safePipeHandle )
89
89
: base ( direction , DefaultBufferSize )
90
90
{
91
- #if MOBILE
91
+ #if MOBILE && ! UNITY_AOT
92
92
throw new NotImplementedException ( ) ;
93
93
#else
94
94
if ( IsWindows )
95
95
impl = new Win32NamedPipeClient ( this , safePipeHandle ) ;
96
96
else
97
+ #if UNITY_AOT
98
+ throw new NotImplementedException ( ) ;
99
+ #else
97
100
impl = new UnixNamedPipeClient ( this , safePipeHandle ) ;
101
+ #endif
98
102
IsConnected = isConnected ;
99
103
InitializeHandle ( safePipeHandle , true , isAsync ) ;
100
104
#endif
@@ -106,13 +110,17 @@ public NamedPipeClientStream (string serverName, string pipeName, PipeAccessRigh
106
110
if ( impersonationLevel != TokenImpersonationLevel . None ||
107
111
inheritability != HandleInheritability . None )
108
112
throw ThrowACLException ( ) ;
109
- #if MOBILE
113
+ #if MOBILE && ! UNITY_AOT
110
114
throw new NotImplementedException ( ) ;
111
115
#else
112
116
if ( IsWindows )
113
117
impl = new Win32NamedPipeClient ( this , serverName , pipeName , desiredAccessRights , options , inheritability ) ;
114
118
else
119
+ #if UNITY_AOT
120
+ throw new NotImplementedException ( ) ;
121
+ #else
115
122
impl = new UnixNamedPipeClient ( this , serverName , pipeName , desiredAccessRights , options , inheritability ) ;
123
+ #endif
116
124
#endif
117
125
118
126
}
@@ -121,13 +129,13 @@ public NamedPipeClientStream (string serverName, string pipeName, PipeAccessRigh
121
129
Dispose ( false ) ;
122
130
}
123
131
124
- #if ! MOBILE
132
+ #if ! MOBILE || UNITY_AOT
125
133
INamedPipeClient impl ;
126
134
#endif
127
135
128
136
public void Connect ( )
129
137
{
130
- #if MOBILE
138
+ #if MOBILE && ! UNITY_AOT
131
139
throw new NotImplementedException ( ) ;
132
140
#else
133
141
impl . Connect ( ) ;
@@ -138,7 +146,7 @@ public void Connect ()
138
146
139
147
public void Connect ( int timeout )
140
148
{
141
- #if MOBILE
149
+ #if MOBILE && ! UNITY_AOT
142
150
throw new NotImplementedException ( ) ;
143
151
#else
144
152
impl . Connect ( timeout ) ;
@@ -174,7 +182,7 @@ protected override internal void CheckPipePropertyOperations () {
174
182
public int NumberOfServerInstances {
175
183
get {
176
184
CheckPipePropertyOperations ( ) ;
177
- #if MOBILE
185
+ #if MOBILE && ! UNITY_AOT
178
186
throw new NotImplementedException ( ) ;
179
187
#else
180
188
return impl . NumberOfServerInstances ;
0 commit comments