Example #1
0
        public void HelloIndigo(string message)
        {
            Console.WriteLine("OperationContext SessionId = {0}", OperationContext.Current.SessionId);

            IHelloIndigoServiceCallback callback = OperationContext.Current.GetCallbackChannel <IHelloIndigoServiceCallback>();
            IContextChannel             ctx      = callback as IContextChannel;

            Console.WriteLine("CallbackChannel SessionId = {0}", ctx.SessionId);
            callback.HelloIndigoCallback(message);
        }
        public void HelloIndigo()
        {
            Console.WriteLine("Invoking callback");

            CustomEventArgs args = new CustomEventArgs();

            args.ArgValue = "Callback argument";

            IHelloIndigoServiceCallback callback = OperationContext.Current.GetCallbackChannel <IHelloIndigoServiceCallback>();

            callback.Event(args);
        }
Example #3
0
        public void HelloIndigo(string message)
        {
            IHelloIndigoServiceCallback callback = OperationContext.Current.GetCallbackChannel <IHelloIndigoServiceCallback>();

            callback.HelloIndigoCallback(message);
        }