All Downloads are FREE. Search and download functionalities are using the official Maven repository.

runtime.csharp.IRT.Transport.Client.IClientTranport.cs Maven / Gradle / Ivy


using System;
using System.Collections.Generic;
using IRT.Transport.Authorization;

namespace IRT.Transport.Client {
    public interface IClientTransport where C: class, IClientTransportContext {
        void Send(string service, string method, I payload, ClientTransportCallback callback, C ctx = null);
        
        void SetAuthorization(AuthMethod method);
        AuthMethod GetAuthorization();
        void SetHeaders(Dictionary headers);
        Dictionary GetHeaders();
    }

    public interface IClientSocketTransport: IClientTransport where C: class, IClientTransportContext {
        bool RegisterBuzzer(IServiceDispatcher buzzer);
        bool UnregisterBuzzer(string id);
        void SetBuzzerContext(C context);
        C GetBuzzerContext();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy