Пример #1
0
            public CoreCustomConnectionDelegate(CoreCustomUrlProtocol handler)
            {
                this.handler = handler;
#if MAC
                client = (INSUrlProtocolClient)handler.WeakClient;
#else
                client = handler.Client;
#endif
            }
Пример #2
0
 public CoreCustomUrlProtocol(NSUrlRequest request, NSCachedUrlResponse cachedResponse,
                              INSUrlProtocolClient client)
     : base(request, cachedResponse, client)
 {
 }
Пример #3
0
 public NSUrlProtocol(NSUrlRequest request, NSCachedUrlResponse cachedResponse, NSUrlProtocolClient client)
     : base(NSObjectFlag.Empty)
 {
     if (request == null)
     {
         throw new ArgumentNullException("request");
     }
     if (client == null)
     {
         throw new ArgumentNullException("client");
     }
     if (IsDirectBinding)
     {
         InitializeHandle(global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(this.Handle, selInitWithRequest_CachedResponse_Client_Handle, request.Handle, cachedResponse == null ? IntPtr.Zero : cachedResponse.Handle, client.Handle), "initWithRequest:cachedResponse:client:");
     }
     else
     {
         InitializeHandle(global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(this.SuperHandle, selInitWithRequest_CachedResponse_Client_Handle, request.Handle, cachedResponse == null ? IntPtr.Zero : cachedResponse.Handle, client.Handle), "initWithRequest:cachedResponse:client:");
     }
 }