예제 #1
0
        /// <summary>
        /// Initializes this instance.
        /// </summary>
        /// <param name="hubConnection">The hub connection.</param>
        /// <param name="clientEventShim">The client event shim.</param>
        public static void Initialise(
            HubConnection hubConnection,
            IClientEventShim clientEventShim)
        {
            hubProxy = hubConnection.CreateHubProxy(Constants.HubName);
            hubProxy.On <EventWrapper>("PubSubBusEvent", EventReceived);

            shim = clientEventShim;
        }
예제 #2
0
 private void Initialise(HubConnection hubConnection, IClientEventShim clientEventShim)
 {
     _hubProxy = hubConnection.CreateHubProxy(_hubName);
     _hubProxy.On <EventWrapper>("PubSubBusEvent", EventReceived);
     _shim = clientEventShim;
 }