public HttpCQRSClient(NetworkType networkType, ContentType contentType, string serviceUrl, IHttpApiAuthorizer apiAuthorizer) : base(serviceUrl) { this.networkType = networkType; this.contentType = contentType; this.apiAuthorizer = apiAuthorizer; _ = Log.TraceAsync($"{nameof(HttpCQRSClient)} Started For {this.networkType} {this.contentType} {this.endpoint}"); }
public HttpCQRSServer(NetworkType networkType, ContentType?contentType, string serverUrl, IHttpApiAuthorizer apiAuthorizer, string[] allowOrigins) : base(serverUrl) { this.networkType = networkType; this.contentType = contentType; this.apiAuthorizer = apiAuthorizer; if (allowOrigins != null && !allowOrigins.Contains("*")) { this.allowOrigins = allowOrigins.Select(x => x.ToLower()).ToArray(); } else { allowOrigins = null; } }
public static HttpCQRSServer CreateDefault(string serverUrl, IHttpApiAuthorizer apiAuthorizer, string[] allowOrigins) { return(new HttpCQRSServer(NetworkType.Api, ContentType.Json, serverUrl, apiAuthorizer, allowOrigins)); }
public TcpApiServiceCreator(IHttpApiAuthorizer apiAuthorizer, string[] allowOrigins) { this.apiAuthorizer = apiAuthorizer; this.allowOrigins = allowOrigins; }
public static HttpCQRSClient CreateDefault(string endpoint, IHttpApiAuthorizer apiAuthorizer) { return(new HttpCQRSClient(NetworkType.Api, ContentType.Json, endpoint, apiAuthorizer)); }