3 writes to connection
System.Workflow.Runtime (3)
Hosting\SqlWorkflowPersistenceService.cs (3)
93
this.
connection
= this.dbResourceAllocator.GetEnlistedConnection(
134
connection
= conn;
552
connection
= this.dbResourceAllocator.OpenNewConnection();
21 references to connection
System.Workflow.Runtime (21)
Hosting\SqlWorkflowPersistenceService.cs (21)
143
Debug.Assert(this.
connection
!= null, "No connection to dispose");
144
this.
connection
.Dispose();
202
WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "SqlWorkflowPersistenceService({0}): inserting instance: {1}, unlocking: {2} database: {3}", ownerId.ToString(), item.InstanceId.ToString(), item.Unlocked.ToString(),
connection
.Database);
239
WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "SqlWorkflowPersistenceService({0}): unlocking instance: {1}, database: {2}", ownerId.ToString(), instanceId.ToString(),
connection
.Database);
254
if ((null ==
connection
) || (ConnectionState.Open !=
connection
.State))
303
if ((null ==
connection
) || (ConnectionState.Open !=
connection
.State))
368
if ((null ==
connection
) || (ConnectionState.Open !=
connection
.State))
418
if ((null ==
connection
) || (ConnectionState.Open !=
connection
.State))
442
WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "SqlWorkflowPersistenceService({0}): retreiving instance: {1}, database: {2}", ownerId.ToString(), instanceStateId.ToString(),
connection
.Database);
488
if ((null ==
connection
) || (ConnectionState.Open !=
connection
.State))
548
if ((null !=
connection
) && (ConnectionState.Closed !=
connection
.State))
549
connection
.Close();
550
connection
.Dispose();
554
return
connection
;
564
DbCommand command = DbResourceAllocator.NewCommand(commandText, this.
connection
, this.localTransaction);