C# Class Unity.Core.IO.AbstractIO

Inheritance: IIo
Datei anzeigen Open project: Appverse/appverse-mobile

Public Methods

Method Description
ClearCookieContainer ( ) : void
GetAttachmentFullPath ( String referenceUrl ) : String
GetConfigFileBinaryData ( ) : byte[]

Default method, to be overrided by platform implementation.

GetDirectoryRoot ( ) : String
GetDirectoryRoot ( ) : Task
GetService ( string name ) : Unity.Core.IO.IOService

Get the IO Service that matches the given name.

GetService ( string name, ServiceType type ) : Unity.Core.IO.IOService

Get the IO Service that matches the given name and type.

GetService ( string name ) : Task
GetService ( string name, ServiceType type ) : Task
GetServices ( ) : Unity.Core.IO.IOService[]

GetServices ( ) : Task
InvokeService ( IORequest request, Unity.Core.IO.IOService service ) : Unity.Core.IO.IOResponse

InvokeService ( IORequest request, string serviceName ) : Unity.Core.IO.IOResponse

Invokes service, given its name, using the provided request.

InvokeService ( IORequest request, string serviceName, ServiceType type ) : Unity.Core.IO.IOResponse

Invokes service, given its name and type, using the provided request.

InvokeService ( IORequest request, Unity.Core.IO.IOService service, IOResponseHandler handler ) : Unity.Core.IO.IOResponseHandle
InvokeService ( IORequest request, string serviceName, IOResponseHandler handler ) : Unity.Core.IO.IOResponseHandle
InvokeService ( IORequest request, string serviceName, ServiceType type, IOResponseHandler handler ) : Unity.Core.IO.IOResponseHandle
InvokeService ( IORequest request, Unity.Core.IO.IOService service ) : Task
InvokeService ( IORequest request, string serviceName ) : Task
InvokeService ( IORequest request, string serviceName, ServiceType type ) : Task
InvokeService ( IORequest request, Unity.Core.IO.IOService service, IOResponseHandler handler ) : Task
InvokeService ( IORequest request, string serviceName, IOResponseHandler handler ) : Task
InvokeService ( IORequest request, string serviceName, ServiceType type, IOResponseHandler handler ) : Task
InvokeServiceForBinary ( IORequest request, Unity.Core.IO.IOService service, string storePath ) : Task
InvokeServiceForBinary ( IORequest request, Unity.Core.IO.IOService service, string storePath ) : string

Invokes a service for getting a big binary, storing it into filesystem and returning the reference url. Only OCTET_BINARY service types are allowed.

ValidateWebCertificates ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool

Callback to accept all certificates

WriteMultipartFormData_FromFile ( FileInfo file, Stream stream, string mimeBoundary, string mimeType, string formKey ) : void

Protected Methods

Method Description
LoadServicesConfig ( ) : void

removeFingerprints ( ) : void
removePublicKeys ( ) : void

Private Methods

Method Description
AbstractIO ( ) : System
BuildMultipartWebRequest ( HttpWebRequest webReq, IORequest request, Unity.Core.IO.IOService service, string requestUriString ) : HttpWebRequest
BuildWebRequest ( IORequest request, Unity.Core.IO.IOService service, string requestUriString, string reqMethod ) : HttpWebRequest
CheckInvokeTimeout ( object requestObject ) : void

Checks the invoke timeout.

CreateFormDataBoundary ( ) : string

Creates a multipart/form-data boundary.

FormatRequestUriString ( IORequest request, Unity.Core.IO.IOService service, string reqMethod ) : string
ReadWebResponse ( HttpWebRequest webRequest, HttpWebResponse webResponse, Unity.Core.IO.IOService service ) : Unity.Core.IO.IOResponse
ReadWebResponseAndStore ( HttpWebRequest webRequest, HttpWebResponse webResponse, Unity.Core.IO.IOService service, string storePath ) : string
WriteMultipartFormData_FromDict ( string>.Dictionary dictionary, Stream stream, string mimeBoundary ) : void

Method Details

ClearCookieContainer() public method

public ClearCookieContainer ( ) : void
return void

GetAttachmentFullPath() public abstract method

public abstract GetAttachmentFullPath ( String referenceUrl ) : String
referenceUrl String
return String

GetConfigFileBinaryData() public method

Default method, to be overrided by platform implementation.
public GetConfigFileBinaryData ( ) : byte[]
return byte[]

GetDirectoryRoot() public abstract method

public abstract GetDirectoryRoot ( ) : String
return String

GetDirectoryRoot() public abstract method

public abstract GetDirectoryRoot ( ) : Task
return Task

GetService() public method

Get the IO Service that matches the given name.
public GetService ( string name ) : Unity.Core.IO.IOService
name string Service name to match.
return Unity.Core.IO.IOService

GetService() public method

Get the IO Service that matches the given name and type.
public GetService ( string name, ServiceType type ) : Unity.Core.IO.IOService
name string Service name to match.
type ServiceType Service type to match.
return Unity.Core.IO.IOService

GetService() public abstract method

public abstract GetService ( string name ) : Task
name string
return Task

GetService() public abstract method

public abstract GetService ( string name, ServiceType type ) : Task
name string
type ServiceType
return Task

GetServices() public method

public GetServices ( ) : Unity.Core.IO.IOService[]
return Unity.Core.IO.IOService[]

GetServices() public abstract method

public abstract GetServices ( ) : Task
return Task

InvokeService() public method

public InvokeService ( IORequest request, Unity.Core.IO.IOService service ) : Unity.Core.IO.IOResponse
request IORequest
service Unity.Core.IO.IOService
return Unity.Core.IO.IOResponse

InvokeService() public method

Invokes service, given its name, using the provided request.
public InvokeService ( IORequest request, string serviceName ) : Unity.Core.IO.IOResponse
request IORequest IO request.
serviceName string Service Name.
return Unity.Core.IO.IOResponse

InvokeService() public method

Invokes service, given its name and type, using the provided request.
public InvokeService ( IORequest request, string serviceName, ServiceType type ) : Unity.Core.IO.IOResponse
request IORequest IO request.
serviceName string
type ServiceType
return Unity.Core.IO.IOResponse

InvokeService() public method

public InvokeService ( IORequest request, Unity.Core.IO.IOService service, IOResponseHandler handler ) : Unity.Core.IO.IOResponseHandle
request IORequest
service Unity.Core.IO.IOService
handler IOResponseHandler
return Unity.Core.IO.IOResponseHandle

InvokeService() public method

public InvokeService ( IORequest request, string serviceName, IOResponseHandler handler ) : Unity.Core.IO.IOResponseHandle
request IORequest
serviceName string
handler IOResponseHandler
return Unity.Core.IO.IOResponseHandle

InvokeService() public method

public InvokeService ( IORequest request, string serviceName, ServiceType type, IOResponseHandler handler ) : Unity.Core.IO.IOResponseHandle
request IORequest
serviceName string
type ServiceType
handler IOResponseHandler
return Unity.Core.IO.IOResponseHandle

InvokeService() public abstract method

public abstract InvokeService ( IORequest request, Unity.Core.IO.IOService service ) : Task
request IORequest
service Unity.Core.IO.IOService
return Task

InvokeService() public abstract method

public abstract InvokeService ( IORequest request, string serviceName ) : Task
request IORequest
serviceName string
return Task

InvokeService() public abstract method

public abstract InvokeService ( IORequest request, string serviceName, ServiceType type ) : Task
request IORequest
serviceName string
type ServiceType
return Task

InvokeService() public abstract method

public abstract InvokeService ( IORequest request, Unity.Core.IO.IOService service, IOResponseHandler handler ) : Task
request IORequest
service Unity.Core.IO.IOService
handler IOResponseHandler
return Task

InvokeService() public abstract method

public abstract InvokeService ( IORequest request, string serviceName, IOResponseHandler handler ) : Task
request IORequest
serviceName string
handler IOResponseHandler
return Task

InvokeService() public abstract method

public abstract InvokeService ( IORequest request, string serviceName, ServiceType type, IOResponseHandler handler ) : Task
request IORequest
serviceName string
type ServiceType
handler IOResponseHandler
return Task

InvokeServiceForBinary() public abstract method

public abstract InvokeServiceForBinary ( IORequest request, Unity.Core.IO.IOService service, string storePath ) : Task
request IORequest
service Unity.Core.IO.IOService
storePath string
return Task

InvokeServiceForBinary() public method

Invokes a service for getting a big binary, storing it into filesystem and returning the reference url. Only OCTET_BINARY service types are allowed.
public InvokeServiceForBinary ( IORequest request, Unity.Core.IO.IOService service, string storePath ) : string
request IORequest Request.
service Unity.Core.IO.IOService Service.
storePath string Store path.
return string

LoadServicesConfig() protected method

protected LoadServicesConfig ( ) : void
return void

ValidateWebCertificates() public method

Callback to accept all certificates
public ValidateWebCertificates ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool
sender object /// Sender. ///
certificate System.Security.Cryptography.X509Certificates.X509Certificate /// Certificate. ///
chain System.Security.Cryptography.X509Certificates.X509Chain /// Chain. ///
sslPolicyErrors SslPolicyErrors /// Ssl policy errors. ///
return bool

WriteMultipartFormData_FromFile() public method

public WriteMultipartFormData_FromFile ( FileInfo file, Stream stream, string mimeBoundary, string mimeType, string formKey ) : void
file System.IO.FileInfo
stream Stream
mimeBoundary string
mimeType string
formKey string
return void

removeFingerprints() protected method

protected removeFingerprints ( ) : void
return void

removePublicKeys() protected method

protected removePublicKeys ( ) : void
return void