Search Results for

    Show / Hide Table of Contents

    Class DataPortClientBase

    Client base

    Inheritance
    System.Object
    DataPortClientBase
    DataPortAuthClient
    DataPortClient
    Implements
    System.IDisposable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Simplic.Framework.Flow.DataPort
    Assembly: Simplic.Framework.Flow.dll
    Syntax
    public abstract class DataPortClientBase : IDisposable

    Constructors

    | Improve this Doc View Source

    DataPortClientBase()

    Initialize client base

    Declaration
    public DataPortClientBase()
    | Improve this Doc View Source

    DataPortClientBase(DataPortClientBase)

    Initialize new client base and copy important information

    Declaration
    public DataPortClientBase(DataPortClientBase clientBase)
    Parameters
    Type Name Description
    DataPortClientBase clientBase

    Client base instance

    Exceptions
    Type Condition
    System.ArgumentNullException

    Null check for argument.

    | Improve this Doc View Source

    DataPortClientBase(String)

    Initialize client base with custom url

    Declaration
    public DataPortClientBase(string url)
    Parameters
    Type Name Description
    System.String url

    Base url

    Fields

    | Improve this Doc View Source

    DefaultUrl

    Declaration
    public const string DefaultUrl = "https://dataport.simplic.io/api"
    Field Value
    Type Description
    System.String

    Properties

    | Improve this Doc View Source

    HttpClient

    Gets the http client instance

    Declaration
    protected HttpClient HttpClient { get; }
    Property Value
    Type Description
    HttpClient
    | Improve this Doc View Source

    Url

    Gets the client url

    Declaration
    public string Url { get; protected set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    User

    Gets or sets the current jwt. Get is protected for security reason. However, the getter can be accesses by using reflection.

    Declaration
    public DataPortUser User { protected get; set; }
    Property Value
    Type Description
    DataPortUser

    Methods

    | Improve this Doc View Source

    DeleteAsync<T>(String, String, String, IDictionary<String, String>)

    Get async

    Declaration
    protected async Task<T> DeleteAsync<T>(string api, string controller, string action, IDictionary<string, string> parameters)
    Parameters
    Type Name Description
    System.String api

    Api path

    System.String controller

    Controller

    System.String action

    Action

    System.Collections.Generic.IDictionary<System.String, System.String> parameters

    List of optional parameter

    Returns
    Type Description
    System.Threading.Tasks.Task<T>

    Return model

    Type Parameters
    Name Description
    T

    Return type

    | Improve this Doc View Source

    Dispose()

    Dispose object

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    GetAsync<T>(String, String, String, IDictionary<String, String>)

    Get async

    Declaration
    protected async Task<T> GetAsync<T>(string api, string controller, string action, IDictionary<string, string> parameters)
    Parameters
    Type Name Description
    System.String api

    Api path

    System.String controller

    Controller

    System.String action

    Action

    System.Collections.Generic.IDictionary<System.String, System.String> parameters

    List of optional parameter

    Returns
    Type Description
    System.Threading.Tasks.Task<T>

    Return model

    Type Parameters
    Name Description
    T

    Return type

    | Improve this Doc View Source

    PostAsync<T, I>(String, String, String, I)

    Post async

    Declaration
    protected async Task<T> PostAsync<T, I>(string api, string controller, string action, I model)
    Parameters
    Type Name Description
    System.String api

    Api path

    System.String controller

    Controller

    System.String action

    Action

    I model

    Model to post

    Returns
    Type Description
    System.Threading.Tasks.Task<T>

    Return model

    Type Parameters
    Name Description
    T

    Return type

    I

    Model type

    | Improve this Doc View Source

    PostMultipartAsync(String, String, String, Byte[], IDictionary<String, String>)

    Declaration
    protected async Task PostMultipartAsync(string api, string controller, string action, byte[] blob, IDictionary<string, string> formData)
    Parameters
    Type Name Description
    System.String api
    System.String controller
    System.String action
    System.Byte[] blob
    System.Collections.Generic.IDictionary<System.String, System.String> formData
    Returns
    Type Description
    System.Threading.Tasks.Task

    Implements

    System.IDisposable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx