예제 #1
0
 public SqlServerEnveloperPersistorTests()
 {
     ThePersistence
         = new SqlServerEnvelopePersistence(new SqlServerSettings
     {
         ConnectionString = Servers.SqlServerConnectionString
     }, new JasperOptions());
 }
 public SqlServerEnveloperPersistorTests()
 {
     ThePersistence
         = new SqlServerEnvelopePersistence(new SqlServerSettings
     {
         ConnectionString = Servers.SqlServerConnectionString
     }, new AdvancedSettings(null));
 }
        public SqlServerBackedListenerContext()
        {
            new SqlServerEnvelopeStorageAdmin(new SqlServerSettings{ConnectionString = Servers.SqlServerConnectionString}).RecreateAll();


            theSettings = new AdvancedSettings(null);

            mssqlSettings = new SqlServerSettings
            {
                ConnectionString = Servers.SqlServerConnectionString
            };

            ThePersistence = new SqlServerEnvelopePersistence(mssqlSettings, theSettings);


            thePipeline = Substitute.For<IHandlerPipeline>();
            theWorkerQueue = new DurableWorkerQueue(new LocalQueueSettings("temp"), thePipeline, theSettings, ThePersistence, TransportLogger.Empty());

        }
예제 #4
0
        public SqlServerBackedListenerContext()
        {
            new SqlServerEnvelopeStorageAdmin(new SqlServerSettings {
                ConnectionString = Servers.SqlServerConnectionString
            }).RecreateAll();

            theWorkerQueue = Substitute.For <IWorkerQueue>();

            theSettings = new JasperOptions();

            mssqlSettings = new SqlServerSettings
            {
                ConnectionString = Servers.SqlServerConnectionString
            };

            ThePersistence = new SqlServerEnvelopePersistence(mssqlSettings, new JasperOptions());


            theListener = new DurableListener(
                Substitute.For <IListeningAgent>(),
                theWorkerQueue,
                TransportLogger.Empty(), theSettings, ThePersistence);
        }
예제 #5
0
 public static void post_clear(SqlServerEnvelopePersistence persistence)
 {
     persistence.ClearAllStoredMessages();
 }