/// <summary>
 /// Initializes a new instance of the ServiceHubProvider class
 /// </summary>
 /// <param name="hubAddresses">the hub-addresses for this serviceHub</param>
 /// <param name="hubFactory">the factory object that is used to create a service hub that handles incoming messages</param>
 /// <param name="factory">a factory that provides access to other plugins</param>
 public ServiceHubProvider(string hubAddresses, IHubFactory hubFactory, PluginFactory factory)
 {
     this.hubAddresses = hubAddresses;
     this.hubFactory   = hubFactory;
     this.factory      = factory;
     Broker            = new EndPointBroker();
 }
 /// <summary>
 /// Initializes a new instance of the ServiceHubProvider class
 /// </summary>
 /// <param name="parent">the parent hub-provider</param>
 /// <param name="hubAddresses">the hub-addresses for this serviceHub</param>
 /// <param name="hubFactory">the factory object that is used to create a service hub that handles incoming messages</param>
 /// <param name="factory">a factory that provides access to other plugins</param>
 public ServiceHubProvider(ITVComponents.InterProcessCommunication.MessagingShared.Hub.IServiceHubProvider parent, string hubAddresses, IHubFactory hubFactory, PluginFactory factory)
 {
     this.hubAddresses = hubAddresses;
     this.hubFactory   = hubFactory;
     this.factory      = factory;
     Broker            = parent.Broker;
     ownsBroker        = false;
 }
예제 #3
0
 public MemoryHubConnectionFactory(string hubAddress, string serviceName, IHubFactory factory, ICustomServerSecurity security)
 {
     this.hubAddress    = hubAddress;
     this.targetService = serviceName;
     this.hubFactory    = factory;
     this.security      = security;
     clientMode         = false;
 }
예제 #4
0
 public MemoryHubConnectionFactory(string hubAddress, string targetService, IHubFactory factory, bool useEvents)
 {
     this.hubAddress    = hubAddress;
     this.targetService = targetService;
     this.hubFactory    = factory;
     this.useEvents     = useEvents;
     clientMode         = true;
 }
예제 #5
0
 public ServiceClient(IMemoryChannel channel, IMemoryChannel baseChannel, IHubFactory hubFactory, AsyncBackStream backStream)
 {
     this.channel                     = channel;
     this.baseChannel                 = baseChannel;
     this.hubFactory                  = hubFactory;
     this.backStream                  = backStream;
     channel.ObjectReceived          += IncomingChannelData;
     channel.ConnectionStatusChanged += LosingConnection;
 }
 /// <summary>
 /// Initializes a new instance of the ServiceConsumer class
 /// </summary>
 /// <param name="serviceAddr">the address of the Hub</param>
 /// <param name="factory">a hub-connection factory 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 InMemoryServiceHubConsumer(string serviceAddr, IHubFactory factory, string consumedService, ICustomServerSecurity customServerSecurity)
 {
     channel                   = new AsyncBackStream();
     this.serviceAddr          = serviceAddr;
     this.factory              = factory;
     this.consumedService      = consumedService;
     this.customServerSecurity = customServerSecurity;
     tickTimer                 = new Timer(SendTick, null, Timeout.Infinite, Timeout.Infinite);
     //reconnector = new Timer(ReConnect, null, Timeout.Infinite, Timeout.Infinite);
 }
예제 #7
0
 public HubDispatcher(IHubFactory hubFactory,
                      IMessageStore store,
                      Signaler signaler,
                      IActionResolver actionResolver,
                      IJavaScriptProxyGenerator proxyGenerator,
                      IJsonStringifier jsonStringifier,
                      string url)
     : base(signaler, store, jsonStringifier)
 {
     _hubFactory = hubFactory;
     _store = store;
     _signaler = signaler;
     _actionResolver = actionResolver;
     _proxyGenerator = proxyGenerator;
     _url = VirtualPathUtility.ToAbsolute(url);
 }
예제 #8
0
 public HubDispatcher(IHubFactory hubFactory,
                      IMessageStore store,
                      Signaler signaler,
                      IClientIdFactory clientIdFactory,
                      IActionResolver actionResolver,
                      IJavaScriptProxyGenerator proxyGenerator,
                      IJsonStringifier jsonStringifier,
                      IHubLocator hubLocator,
                      string url)
     : base(signaler, clientIdFactory, store, jsonStringifier)
 {
     _hubFactory     = hubFactory;
     _store          = store;
     _signaler       = signaler;
     _actionResolver = actionResolver;
     _proxyGenerator = proxyGenerator;
     _hubLocator     = hubLocator;
     _url            = VirtualPathUtility.ToAbsolute(url);
 }
예제 #9
0
 public HubDispatcher(IHubFactory hubFactory,
                      IMessageStore store,
                      Signaler signaler,
                      IConnectionIdFactory connectionIdFactory,
                      IActionResolver actionResolver,
                      IJavaScriptProxyGenerator proxyGenerator,
                      IJsonSerializer jsonSerializer,
                      IHubLocator hubLocator,
                      IHubTypeResolver hubTypeResolver,
                      string url)
     : base(signaler, connectionIdFactory, store, jsonSerializer)
 {
     _hubFactory = hubFactory;
     _store = store;
     _jsonSerializer = jsonSerializer;
     _signaler = signaler;
     _actionResolver = actionResolver;
     _proxyGenerator = proxyGenerator;
     _hubLocator = hubLocator;
     _hubTypeResolver = hubTypeResolver;
     _url = VirtualPathUtility.ToAbsolute(url);
 }
예제 #10
0
 public HubDispatcher(IHubFactory hubFactory,
                      IMessageStore store,
                      Signaler signaler,
                      IConnectionIdFactory connectionIdFactory,
                      IActionResolver actionResolver,
                      IJavaScriptProxyGenerator proxyGenerator,
                      IJsonSerializer jsonSerializer,
                      IHubLocator hubLocator,
                      IHubTypeResolver hubTypeResolver,
                      string url)
     : base(signaler, connectionIdFactory, store, jsonSerializer)
 {
     _hubFactory      = hubFactory;
     _store           = store;
     _jsonSerializer  = jsonSerializer;
     _signaler        = signaler;
     _actionResolver  = actionResolver;
     _proxyGenerator  = proxyGenerator;
     _hubLocator      = hubLocator;
     _hubTypeResolver = hubTypeResolver;
     _url             = url;
 }
예제 #11
0
 public InMemoryServer(string hubAddress, IDictionary <string, object> exposedObjects, IHubFactory configurator, string serviceName, bool useExtendedProxying, bool useSecurity, ICustomServerSecurity security) : base(new MemoryHubConnectionFactory(hubAddress, serviceName, configurator, security), exposedObjects, useExtendedProxying, useSecurity, security)
 {
 }
예제 #12
0
 public XsltCacheBroadcaster(IHubFactory <IHubContext> factory)
 {
     _factory = factory;
 }
예제 #13
0
 public InMemoryClient(string hubAddress, IHubFactory hubFactory, string targetService, IIdentityProvider identityProvider, bool useEvents) :
     base(new MemoryHubConnectionFactory(hubAddress, targetService, hubFactory, useEvents), targetService, identityProvider, useEvents)
 {
 }
예제 #14
0
 public InMemoryClient(string hubAddress, IHubFactory hubFactory, string targetService, bool useEvents) :
     base(new MemoryHubConnectionFactory(hubAddress, targetService, hubFactory, useEvents), targetService, null, useEvents)
 {
 }
예제 #15
0
 public Connections(Func <List <string> > fetchComputersFn, IHubFactory hubFactory)
 {
     _fetchComputers = fetchComputersFn;
     _hubFactory     = hubFactory;
 }
예제 #16
0
 public InMemoryServer(string hubAddress, PluginFactory factory, IHubFactory configurator, string serviceName, bool useExtendedProxying, bool useSecurity, ICustomServerSecurity security) : base(new MemoryHubConnectionFactory(hubAddress, serviceName, configurator, security), factory, useExtendedProxying, useSecurity, security)
 {
 }
예제 #17
0
 public InMemoryServer(string hubAddress, PluginFactory factory, IHubFactory configurator, string serviceName) : this(hubAddress, factory, configurator, serviceName, false, false, null)
 {
 }
 /// <summary>
 /// Initializes a new instance of the ServiceConsumer class
 /// </summary>
 /// <param name="serviceAddr">the address of the Hub</param>
 /// <param name="factory">a hub-connection factory that configures the channel options for this consumer object</param>
 /// <param name="consumedService">the remote-service that is being consumed</param>
 public InMemoryServiceHubConsumer(string serviceAddr, IHubFactory factory, string consumedService) : this(serviceAddr, factory, 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="factory">a hub-connection factory that configures the channel options for this consumer object</param>
 public InMemoryServiceHubConsumer(string serviceAddr, string serviceName, IHubFactory factory, ICustomServerSecurity customServerSecurity) : this(serviceAddr, factory, null, customServerSecurity)
 {
     this.myServiceName = serviceName;
 }
예제 #20
0
 public InMemoryServer(string hubAddress, IDictionary <string, object> exposedObjects, IHubFactory configurator, string serviceName, bool useExtendedProxying) : this(hubAddress, exposedObjects, configurator, serviceName, useExtendedProxying, false, null)
 {
 }
예제 #21
0
 public InMemoryServer(string hubAddress, PluginFactory factory, IHubFactory configurator, string serviceName, bool useExtendedProxying) : this(hubAddress, factory, configurator, serviceName, useExtendedProxying, false, null)
 {
 }