1
// Copyright 2004-2008 Castle Project - http://www.castleproject.org/
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle
.Facilities
.WcfIntegration
19 using System
.ServiceModel
;
22 /// The contract for building service hosts.
24 /// <typeparam name="M">The <see cref="IWcfServiceModel"/> type.</typeparam>
25 public interface IServiceHostBuilder
<M
> where M
: IWcfServiceModel
28 /// Builds a service host.
30 /// <param name="model">The component model.</param>
31 /// <param name="serviceModel">The service model.</param>
32 /// <param name="baseAddresses">The base addresses.</param>
33 /// <returns>The service host.</returns>
35 ServiceHost
Build(ComponentModel model
, M serviceModel
, params Uri
[] baseAddresses
);
38 /// Builds a service host for a hosted environment.
40 /// <param name="model">The component model.</param>
41 /// <param name="baseAddresses">The base addresses.</param>
42 /// <returns>The service host.</returns>
43 ServiceHost
Build(ComponentModel model
, params Uri
[] baseAddresses
);
46 /// Builds a service host for a hosted environment.
48 /// <param name="serviceType">The service type.</param>
49 /// <param name="baseAddresses">The base addresses.</param>
50 /// <returns>The service host.</returns>
51 ServiceHost
Build(Type serviceType
, params Uri
[] baseAddresses
);