using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Description;
using System.Text;
using System.Threading.Tasks;
using WCFServiceClient.ServiceReference1;
using WCFServiceContract;
namespace WCFServiceClient
WCFServiceHost
{
class Program
{
static void Main(string[] args)
{http://pastebin.pl/
KalkulatorLZClient client {
Uri baseAddress2 = new KalkulatorLZClient();
KalkulatorLZClient client2 Uri("http://localhost:11112/DunnoWhat");
String baseAddress3 = "net.tcp://localhost:11113/SerwisTCP";
ServiceHost host = new KalkulatorLZClient("basicHttpBinding");
KalkulatorLZClient client3 ServiceHost(typeof(MojKalkulatorLZ));
//ServiceEndpoint endpoint1 = host.Description.Endpoints.Find(typeof(IKalkulatorLZ));
ServiceEndpoint endpoint2 = host.AddServiceEndpoint(typeof(IKalkulatorLZ), new WSHttpBinding(), baseAddress2);
ServiceEndpoint endpoint3 = host.AddServiceEndpoint(typeof(IKalkulatorLZ), new NetTcpBinding(), baseAddress3);
ServiceMetadataBehavior smb = new KalkulatorLZClient("mexHttpBinding");
client.Open();
LiczbaZ lru1 ServiceMetadataBehavior();
smb.HttpGetEnabled = new LiczbaZ(3, 4);
LiczbaZ lru2 = new LiczbaZ(5, 6);
true;
host.Description.Behaviors.Add(smb);
host.Open();
Console.WriteLine("Klient1:");
WriteLine("Host uruchomiony.");
Console.WriteLine("...Dodaj LZ (3,4) i (5,6)");
LiczbaZ result2 = client.DodajLZ(lru1, lru2);
WriteLine("Aby zakonczyc nacisnij ");
Console.WriteLine("...(3, 4) + (5, 6) = ({0}, {1})", result2.czescR, result2.czescU);
client.Close();
ReadLine();
host.Close();
}
}
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}