Auto.Server.WatcherServiceNotifyDispatcher.Dispatch C# (CSharp) Method

Dispatch() public method

public Dispatch ( IRpcImplInstnce impl, RpcMethod method, ServiceImplementStub cont ) : void
impl IRpcImplInstnce
method RPCBase.RpcMethod
cont ServiceImplementStub
return void
        public void Dispatch(IRpcImplInstnce impl, RpcMethod method, ServiceImplementStub.SendResult cont)
        {
            switch (method.MethodId)
            {
            case 1:
                ((IWatcherServiceNotifyImpl)impl).NotifyWatchingMaster((Byte[])(method.Args[0]), (String)(method.Args[1]));
                break;
            case 2:
                ((IWatcherServiceNotifyImpl)impl).NotifyInstanceSubjectiveDown((Byte[])(method.Args[0]), (String)(method.Args[1]));
                break;
            }
        }
    }
WatcherServiceNotifyDispatcher