Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

signature of ServiceRoute constructor, used in Thinktecture

$
0
0
<div>I am looking at line 152-162</div> <div>https://github.com/thinktecture/Thinktecture.IdentityServer.v2/blob/master/src/OnPremise/WebSite/App_Start/ProtocolConfig.cs</div><div></div> <div> <div id="LC152">            // ws-trust</div> <div id="LC153">            if (configuration.WSTrust.Enabled)</div> <div id="LC154">            {</div><div id="LC155">                routes.Add(new ServiceRoute(</div> <div id="LC156">                    Thinktecture.IdentityServer.Endpoints.Paths.WSTrustBase,</div><div id="LC157">                    new TokenServiceHostFactory(),</div> <div id="LC158">                    typeof(TokenServiceConfiguration))</div><div id="LC159">                );</div> <div id="LC160">            }</div> <div id="LC161">            #endregion</div> <div id="LC162">        }</div> <div></div> <div>I look at contructor signature of ServiceRoute:</div> <div></div> <div>
public ServiceRoute(string routePrefix, ServiceHostFactoryBase serviceHostFactory, Type serviceType);
</div> <div>So  I feel strange, </div> <div>last parameter, typeof(TokenServiceConfiguration)  seems does not fit to be a Type serviceType. <div></div> <div></div> <div>I serach other example online, this one seems fit: </div> <div>        RouteTable.Routes.Add(new ServiceRoute(""
            new WebServiceHostFactory(), typeof(TaskService))); </div> <div></div> <div>Can anyone explain to me?</div> <div></div> <div>Thanks,</div><div></div> </div> </div>

Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>