Ejemplo n.º 1
0
        public static ENodeConfiguration UseCommandStore(this ENodeConfiguration enodeConfiguration, bool useMockCommandStore = false)
        {
            var configuration = enodeConfiguration.GetCommonConfiguration();

            if (useMockCommandStore)
            {
                configuration.SetDefault <ICommandStore, MockCommandStore>();
            }
            else
            {
                enodeConfiguration.UseSqlServerCommandStore();
            }
            return(enodeConfiguration);
        }