Ejemplo n.º 1
0
        public Task <int> ProcessInt(int v)
        {
            _trace.RegisterServiceInvocation(typeof(ISerDeserService), nameof(ProcessInt), v);

            //adds to make sure that server's value was actually seen by client
            return(Task.FromResult(v + MagicsForTests.Serialization.Int.ServerAdd));
        }
Ejemplo n.º 2
0
        public Task <Unit> Publish(SomeNotif inp)
        {
            _trace.RegisterServiceInvocation(typeof(IServerSentEventsService), nameof(Publish), inp);

            _subs.SendMessage(inp);
            return(Task.FromResult(Unit.Instance));
        }
Ejemplo n.º 3
0
        public Task <string> SayHello(string toWhom)
        {
            _trace.RegisterServiceInvocation(typeof(IHelloWorldService), nameof(SayHello), toWhom);

            return(Task.FromResult($"Hello {toWhom}. How are you?"));
        }