私はServiceContract
、
using System.Collections.Generic;
using System.ServiceModel;
namespace MainModule.Sub.Communication
{
[ServiceContract]
public interface IWebMethod
{
[OperationContract(IsOneWay = false)]
bool InvokeAlert(List<int> userIds);
[OperationContract(IsOneWay = false, Name = "InvokeAlertByMainID")]
bool InvokeAlert(List<int> userIds, int mainId);
[OperationContract(IsOneWay = true)]
void DeletePopupNotifications(System.Data.DataSet deletedNotifications);
}
}
以下のコマンドを使用してプロキシを生成しました(command-line
経由ではなく、Add Service Reference
.
SvcUtil.exe http://localhost/MainCommunicationServer/wm /ct:System.Collections.Generic.List`1 /out:HTTPRouterServerProxy.cs
ct
スイッチ (collectionType)を追加しても、プロキシは配列として生成されます ( int[]
)。Add Service Reference
VSでウィンドウを使用せずにそれを行うにはどうすればよいですか