Пример #1
0
 private void OnPlanChanged(PlanChanged planChanged) {
     Clients.Group(planChanged.OrganizationId).planChanged(planChanged);
 }
        private Task OnPlanChangedAsync(PlanChanged planChanged, CancellationToken cancellationToken = default(CancellationToken)) {
            if (planChanged != null)
                return Context.Groups.TypedSend(planChanged.OrganizationId, planChanged);

            return TaskHelper.Completed();
        }
Пример #3
0
        private Task OnPlanChangedAsync(PlanChanged planChanged, CancellationToken cancellationToken = default(CancellationToken)) {
            if (planChanged != null)
                return GroupSendAsync(planChanged.OrganizationId, planChanged);

            return Task.CompletedTask;
        }