コード例 #1
0
        /// <summary>
        /// For local only
        /// </summary>
        //private UIH.XA.XSample.BusinessLogicExcutor.PatientManager TestPatientSource = new BusinessLogicExcutor.PatientManager();



        private byte[] SendSyncToPatientManager(string method, params object[] args)
        {
            CommandContext context = new CommandContext();

            context.iCommandId = BusinessLogicCommand;
            //context.sSender
            context.sReceiver             = BusinessLogicProxyName;
            context.bServiceAsyncDispatch = true;

            PatientRemoteObject rObject = new PatientRemoteObject();

            rObject.InvokeTag = method;
            rObject.Paramters = args;

            context.sSerializeObject = SerializeObj.Serialize(rObject);
            context.iWaitTime        = 30000;


            CLRCommunicationProxy proxy = _appContext.GetObject <ICommunicationProxy>(AppContextObjectName.DefaultCommunicationProxy) as CLRCommunicationProxy;

            ISyncResult result = proxy.SyncSendCommand(context);

            return(result.GetSerializedObject());
        }