public GrpcHubConnectionFactory(string hubAddress, string serviceName, IHubClientConfigurator configurator, ICustomServerSecurity security) { this.hubAddress = hubAddress; this.targetService = serviceName; this.configurator = configurator; this.security = security; clientMode = false; }
public GrpcHubConnectionFactory(string hubAddress, string targetService, IHubClientConfigurator configurator, bool useEvents) { this.hubAddress = hubAddress; this.targetService = targetService; this.configurator = configurator; this.useEvents = useEvents; clientMode = true; }
/// <summary> /// Initializes a new instance of the ServiceConsumer class /// </summary> /// <param name="serviceAddr">the address of the Hub</param> /// <param name="configurator">a hub-configurator that configures the channel options for this consumer object</param> /// <param name="consumedService">the remote-service that is being consumed</param> /// <param name="customServerSecurity">a security-repo that allows this object to perform user-transformations</param> public ServiceHubConsumer(string serviceAddr, IHubClientConfigurator configurator, string consumedService, ICustomServerSecurity customServerSecurity) { this.serviceAddr = serviceAddr; this.configurator = configurator; this.consumedService = consumedService; this.customServerSecurity = customServerSecurity; tickTimer = new Timer(SendTick, null, Timeout.Infinite, Timeout.Infinite); //reconnector = new Timer(ReConnect, null, Timeout.Infinite, Timeout.Infinite); }
public GrpcServer(string hubAddress, IDictionary <string, object> exposedObjects, IHubClientConfigurator configurator, string serviceName, bool useExtendedProxying) : this(hubAddress, exposedObjects, configurator, serviceName, useExtendedProxying, false, null) { }
public GrpcServer(string hubAddress, IDictionary <string, object> exposedObjects, IHubClientConfigurator configurator, string serviceName, bool useExtendedProxying, bool useSecurity, ICustomServerSecurity security) : base(new GrpcHubConnectionFactory(hubAddress, serviceName, configurator, security), exposedObjects, useExtendedProxying, useSecurity, security) { }
public GrpcServer(string hubAddress, PluginFactory factory, IHubClientConfigurator configurator, string serviceName, bool useExtendedProxying) : this(hubAddress, factory, configurator, serviceName, useExtendedProxying, false, null) { }
public GrpcServer(string hubAddress, PluginFactory factory, IHubClientConfigurator configurator, string serviceName) : this(hubAddress, factory, configurator, serviceName, false, false, null) { }
public GrpcServer(string hubAddress, PluginFactory factory, IHubClientConfigurator configurator, string serviceName, bool useExtendedProxying, bool useSecurity, ICustomServerSecurity security) : base(new GrpcHubConnectionFactory(hubAddress, serviceName, configurator, security), factory, useExtendedProxying, useSecurity, security) { }
public GrpcClient(string hubAddress, IHubClientConfigurator configurator, string targetService, IIdentityProvider identityProvider, bool useEvents) : base(new GrpcHubConnectionFactory(hubAddress, targetService, configurator, useEvents), targetService, identityProvider, useEvents) { }
/// <summary> /// Initializes a new instance of the ServiceConsumer class /// </summary> /// <param name="serviceAddr">the address of the Hub</param> /// <param name="configurator">a hub-configurator that configures the channel options for this consumer object</param> /// <param name="consumedService">the remote-service that is being consumed</param> public ServiceHubConsumer(string serviceAddr, IHubClientConfigurator configurator, string consumedService) : this(serviceAddr, configurator, consumedService, null) { }
/// <summary> /// Initializes a new instance of the ServiceConsumer class /// </summary> /// <param name="serviceAddr">the address of the Hub</param> /// <param name="serviceName">the name of this service</param> /// <param name="configurator">a hub-configurator that configures the channel options for this consumer object</param> public ServiceHubConsumer(string serviceAddr, string serviceName, IHubClientConfigurator configurator, ICustomServerSecurity customServerSecurity) : this(serviceAddr, configurator, null, customServerSecurity) { this.myServiceName = serviceName; }
/// <summary> /// Registers a configurator that will be invoied when a configuration-method is called /// </summary> /// <param name="configurator"></param> public void RegisterConfigurator(IHubClientConfigurator configurator) { innerConfigurators.Add(configurator); }