public override async Task DispatchAsync(RequestContext context)
        {
            SecurityRequestContext    securedMessage           = (SecurityRequestContext)ProcessReceivedRequest(context);
            IServiceChannelDispatcher serviceChannelDispatcher =
                await SecurityServiceDispatcher.GetAuthChannelDispatcher(this);

            await serviceChannelDispatcher.DispatchAsync(securedMessage);
        }
Exemple #2
0
        public override async Task DispatchAsync(RequestContext context)
        {
            SecurityRequestContext securedMessage = (SecurityRequestContext)(await ProcessReceivedRequestAsync(context));

            if (SecurityServiceDispatcher.SessionMode) // for SCT, sessiontoken is created so we channel the call to SecurityAuthentication and evevntually SecurityServerSession.
            {
                IServiceChannelDispatcher serviceChannelDispatcher =
                    await SecurityServiceDispatcher.GetAuthChannelDispatcher(this);

                await serviceChannelDispatcher.DispatchAsync(securedMessage);
            }
            else
            {
                IServiceChannelDispatcher serviceChannelDispatcher =
                    await SecurityServiceDispatcher.GetInnerServiceChannelDispatcher(this);

                await serviceChannelDispatcher.DispatchAsync(securedMessage);
            }
        }