Exemple #1
0
        internal static IFFExecutor RegisterAndGet(IExecutorService executorService)
        {
            using (ILogMethod method = Log.LogMethod("FFExecutorFactory", "Method"))
            {
                try
                {
                    _executorHelper = new SingletonThreadHelper <IFFExecutor>(
                        new Lazy <IFFExecutor>(() => new FFExecutor_InMemory(executorService)));
                }
                catch (Exception ex)
                {
                    method.Exception(ex);
                }

                return(Instance);
            }
        }
        internal static IFFExecutor RegisterAndGet(IExecutorService executorService)
        {
            using (ILogMethod method = Log.LogMethod("FFExecutorFactory", "Method"))
            {
                try
                {
                    _executorHelper = new SingletonThreadHelper<IFFExecutor>(
                                       new Lazy<IFFExecutor>(() => new FFExecutor_InMemory(executorService)));
                }
                catch (Exception ex)
                {
                    method.Exception(ex);
                }

                return Instance;
            }
        }
 static ExecutionStep()
 {
     _monitorProcessorHelper = new SingletonThreadHelper <IExCommsMonitorProcessor>(
         new Lazy <IExCommsMonitorProcessor>(() => new ExCommsMonitorProcessor(ExCommsServerImpl.Current)));
 }
Exemple #4
0
 private void InitMonitorProcessorProxyHelper()
 {
     _monProcessorProxyHelper = new SingletonThreadHelper <IExMonServer4MonProcessor>(
         new Lazy <IExMonServer4MonProcessor>(() =>
                                              ExMonServer4MonProcessorProxyFactory.Get(this)));
 }
 static FreeformHandlerBase()
 {
     _monitorProcessorHelper = new SingletonThreadHelper<IExCommsMonitorProcessor>(
         new Lazy<IExCommsMonitorProcessor>(() => new ExCommsMonitorProcessor(ExCommsServerImpl.Current)));
 }
 static FFMsgTransmitter()
 {
     _monitorProcessorHelper = new SingletonThreadHelper <IExCommsMonitorProcessor>(
         new Lazy <IExCommsMonitorProcessor>(() => new ExCommsMonitorProcessor(ExCommsServerImpl.Current)));
 }
Exemple #7
0
 static FreeformHandlerBase()
 {
     _monitorProcessorHelper = new SingletonThreadHelper <IExCommsMonitorProcessor>(
         new Lazy <IExCommsMonitorProcessor>(() => new ExCommsMonitorProcessor(ExCommsServerImpl.Current)));
 }
 private void InitMonitorProcessorProxyHelper()
 {
     _monProcessorProxyHelper = new SingletonThreadHelper<IExMonServer4MonProcessor>(
                                     new Lazy<IExMonServer4MonProcessor>(() =>
                                         ExMonServer4MonProcessorProxyFactory.Get(this)));
 }
 static FFMsgTransmitter()
 {
     _monitorProcessorHelper = new SingletonThreadHelper<IExCommsMonitorProcessor>(
         new Lazy<IExCommsMonitorProcessor>(() => new ExCommsMonitorProcessor(ExCommsServerImpl.Current)));
 }