本文整理汇总了C#中Trade.GetTradeListInfo方法的典型用法代码示例。如果您正苦于以下问题:C# Trade.GetTradeListInfo方法的具体用法?C# Trade.GetTradeListInfo怎么用?C# Trade.GetTradeListInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Trade
的用法示例。
在下文中一共展示了Trade.GetTradeListInfo方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Main
static void Main(string[] args)
{
//Service1Client client = new Service1Client("BasicHttpBinding_IService1");
//WCFATest.CompositeType value = new WCFATest.CompositeType();
//value.BoolValue = true;
//value.StringValue = "TEST!!!!";
//String reString = client.GetData(333);
//WCFATest.CompositeType reComposite = client.GetDataUsingDataContract(value);
ChannelFactory<IRoom> factory = new ChannelFactory<IRoom>(new ServiceEndpoint(
ContractDescription.GetContract(typeof(IRoom)),
new NetTcpBinding(),
new EndpointAddress(new Uri("net.tcp://localhost/wcf/roomwcfservice"))));
String result;
try
{
TRADE_SEARCH_INFO search = new TRADE_SEARCH_INFO();
search.item_index = 1;
search.category = 1;
search.kind = 1;
search.section = 1;
search.item_rank = 1;
search.req_level = 1;
search.page_no = 1;
search.page_size = 1;
Trade trade = new Trade();
//try
//{
System.Xml.XmlNode node = trade.GetTradeListInfo( search );
//}
//catch( Exception e )
//{
// Console.WriteLine( e.Message );
//}
RoomService.RoomSearchKey key = new RoomService.RoomSearchKey();
key._category = 1;
key._location_main = 2;
key._location_sub = 3;
//IRoom proxy = factory.CreateChannel();
//ROOM_RESULT rr2 = proxy.CreateRoomDb("9CA1A2F4-AA7C-462C-96D2-1F5FE26D691D", key, "첫방", "아무나오지말고", "1111111", 10);
//(proxy as IDisposable).Dispose();
RoomClient test = new RoomClient("BasicHttpBinding_IRoom");
RoomClient testTcp = new RoomClient("NetTcpBinding_IRoomLocal");
ROOM_RESULT rr = new ROOM_RESULT();
String resultString = test.Test2("콜콜");
ROOM_RESULT test2 = test.Test("UISEREWRWERWE");
bool test3 = test.LoginUser("test_userno1", "[email protected]", "최진혁", new DateTime(), 1, "wefwefwefwe");
bool test4 = test.LoginUser("test_userno2", "[email protected]", "두번째", new DateTime(), 1, "wefwefwefwe");
JOIN_ROOM_DETAIL detail = test.GetLoginUser();
ROOM_INFO_LIST room_info_list = test.MyRoomList(" TEST");
ROOM_RESULT result12 = test.CreateRoomDb("410fba26-f787-421e-9bbe-1e13f9866da8", key, "내방은", "아무나와요", "1111111", 10);
//ROOM_RESULT result12 = test.CreateRoomDb("9CA1A2F4-AA7C-462C-96D2-1F5FE26D691D", key, "웹에서", "아무나오지말고", "1111111", 10);
//410fba26-f787-421e-9bbe-1e13f9866da8
//ROOM_RESULT result111 = test.Push("f34d46277322e73b8e67b23c8339158a1621f1c49a05127fd839e4d0f7c4f6c6", "좋다", 1);
IRoom proxy = factory.CreateChannel();
//ROOM_RESULT rr2 = proxy.Push("f34d46277322e73b8e67b23c8339158a1621f1c49a05127fd839e4d0f7c4f6c6", "잇힝", 1);
ROOM_RESULT rr2 = proxy.Push("a2df3ffc3a216b535907d042412c75694a704a82d18d61ab85d081d06073e857", "잇힝", 1);
(proxy as IDisposable).Dispose();
}
catch (FaultException<RoomService.MyFaultException> ee)
{
result = "Exception : " + ee.Detail.Reason ;
Console.WriteLine(result);
}
}