1

私の ServiceHost クラスは、同時 HTTP 呼び出しを処理できるようにするために、 AppHostHttpListenerLongRunningBase から継承しています。ただし、私のサービスはまだ並行 API 呼び出しをシリアルに処理しています。私のサービスは、win32 コンソール アプリケーションで自己ホストされています。ここで何を見逃したのですか?初期化および構成機能のコード スニピットを以下に示します。

 public ServicesHost() : base("MiTrendz Backend Services", 500, typeof(KeywordsManager).Assembly) { }
public override void Configure(Funq.Container container)
        {
            //Signal advanced web browsers what HTTP Methods you accept
            base.SetConfig(new EndpointHostConfig
            {
                GlobalResponseHeaders =
                {
                    { "Access-Control-Allow-Origin", "*" },
                    { "Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS" },
                },
                WsdlServiceNamespace = "http://www.......",
                DebugMode = true,
            });
            container.Register(new MyService());


            container.Register<ICacheClient>(new MemoryCacheClient());
            Plugins.Add(new ValidationFeature());
            //This method scans the assembly for validators
            container.RegisterValidators(typeof(My Validator).Assembly);

        }
4

0 に答える 0