コード例 #1
0
        public static ExCommsServerCallbackProxy Get(IExecutorService executorService,
                                                     ExCommsServerCallbackTypes callbackType,
                                                     IExCommsServerCallback callbackInstance,
                                                     int timeoutInMilliseconds, WaitHandle canListen)
        {
            using (ILogMethod method = Log.LogMethod("ExCommsServerProxyFactory", "Get"))
            {
                ExCommsServerCallbackProxy result = default(ExCommsServerCallbackProxy);

                try
                {
                    result = new ExCommsServerCallbackProxy(executorService, callbackType, callbackInstance, timeoutInMilliseconds, canListen);
                }
                catch (Exception ex)
                {
                    method.Exception(ex);
                }

                return(result);
            }
        }
コード例 #2
0
 internal ExCommsServerCallbackProxy(IExecutorService executorService, ExCommsServerCallbackTypes callbackType,
                                     IExCommsServerCallback callbackInstance, int timeoutInMilliseconds, WaitHandle canListen)
     : base(executorService, callbackInstance, timeoutInMilliseconds, canListen)
 {
     _callbackType = callbackType;
 }