Exemplo n.º 1
0
 public override Task <ByeReply> SayGoodBye(ByeRequest request, ServerCallContext context)
 {
     return(Task.FromResult(new ByeReply
     {
         Message = "GoodBye " + request.Name
     }));
 }
Exemplo n.º 2
0
 public override Task <ByeReply> SayBye(ByeRequest request, ServerCallContext context)
 {
     return(Task.FromResult(new ByeReply
     {
         Message = string.Join(',', Enumerable.Repeat(request.NAME, request.Reps))
     }));
 }
Exemplo n.º 3
0
        public void Bye(ref EndpointReferenceType EndpointReference, string Types, ScopesType Scopes, string XAddrs, uint MetadataVersion, ref System.Xml.XmlElement[] Any, ref System.Xml.XmlAttribute[] AnyAttr)
        {
            ByeRequest inValue = new ByeRequest();

            inValue.EndpointReference = EndpointReference;
            inValue.Types             = Types;
            inValue.Scopes            = Scopes;
            inValue.XAddrs            = XAddrs;
            inValue.MetadataVersion   = MetadataVersion;
            inValue.Any     = Any;
            inValue.AnyAttr = AnyAttr;
            ByeResponse retVal = ((RemoteDiscoveryPort)(this)).Bye(inValue);

            EndpointReference = retVal.EndpointReference;
            Any     = retVal.Any;
            AnyAttr = retVal.AnyAttr;
        }
Exemplo n.º 4
0
 ByeResponse RemoteDiscoveryPort.Bye(ByeRequest request)
 {
     return(base.Channel.Bye(request));
 }