/// <summary> /// Creates an instance of the service associated with this contract /// </summary> /// <param name="contructorServicePort">Contractor Service that will create the instance</param> /// <param name="partners">Optional list of service partners for new service instance</param> /// <returns>Result PortSet for retrieving service creation response</returns> public static DsspResponsePort<CreateResponse> CreateService(constructor.ConstructorPort contructorServicePort, params PartnerType[] partners) { DsspResponsePort<CreateResponse> result = new DsspResponsePort<CreateResponse>(); ServiceInfoType si = new ServiceInfoType(Contract.Identifier, null); if (partners != null) { si.PartnerList = new List<PartnerType>(partners); } Microsoft.Dss.Services.Constructor.Create create = new Microsoft.Dss.Services.Constructor.Create(si, result); contructorServicePort.Post(create); return result; }
/// <summary> /// Creates an instance of the service associated with this contract /// </summary> /// <param name="contructorServicePort">Contractor Service that will create the instance</param> /// <returns>Result PortSet for retrieving service creation response</returns> public static DsspResponsePort<CreateResponse> CreateService(constructor.ConstructorPort contructorServicePort) { return Contract.CreateService(contructorServicePort, null); }