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;
 }
Exemplo n.º 3
0
 /// <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);
 }
Exemplo n.º 4
0
 public GrpcServer(string hubAddress, IDictionary <string, object> exposedObjects, IHubClientConfigurator configurator, string serviceName, bool useExtendedProxying) : this(hubAddress, exposedObjects, configurator, serviceName, useExtendedProxying, false, null)
 {
 }
Exemplo n.º 5
0
 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)
 {
 }
Exemplo n.º 6
0
 public GrpcServer(string hubAddress, PluginFactory factory, IHubClientConfigurator configurator, string serviceName, bool useExtendedProxying) : this(hubAddress, factory, configurator, serviceName, useExtendedProxying, false, null)
 {
 }
Exemplo n.º 7
0
 public GrpcServer(string hubAddress, PluginFactory factory, IHubClientConfigurator configurator, string serviceName) : this(hubAddress, factory, configurator, serviceName, false, false, null)
 {
 }
Exemplo n.º 8
0
 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)
 {
 }
Exemplo n.º 9
0
 public GrpcClient(string hubAddress, IHubClientConfigurator configurator, string targetService, IIdentityProvider identityProvider, bool useEvents) :
     base(new GrpcHubConnectionFactory(hubAddress, targetService, configurator, useEvents), targetService, identityProvider, useEvents)
 {
 }
Exemplo n.º 10
0
 /// <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)
 {
 }
Exemplo n.º 11
0
 /// <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;
 }
Exemplo n.º 12
0
 /// <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);
 }