コード例 #1
0
        public override Task OnConnected()
        {
            //$.connection.hub.qs = { "token" : tokenValue };
            //$.connection.hub.start().done(function() { /* ... */ });
            var serviceFullName = GetServiceFullName(true);

            if (!string.IsNullOrEmpty(serviceFullName))
            {
                GetMyServer(serviceFullName);
                //Heartbeat();
                //SubscribeGroup(serviceFullName);
            }
            _slabLogger.Info("OnConnected", Context.ConnectionId);
            return(base.OnConnected());
        }
コード例 #2
0
 protected override bool OnBeforeIncoming(IHubIncomingInvokerContext context)
 {
     _slabLogger.Info("LoggingPipelineModule.OnBeforeIncoming", "=> Invoking " + context.MethodDescriptor.Name + " on hub " + context.MethodDescriptor.Hub.Name);
     return(base.OnBeforeIncoming(context));
 }