Skip to content

Commit

Permalink
#371 Improve reference management.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstone committed Sep 24, 2020
1 parent 81dc392 commit 8219e90
Show file tree
Hide file tree
Showing 239 changed files with 955 additions and 601 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class ExampleClass : IDisposable

public void Dispose()
{
Control.Dispose();
Control?.Dispose();
}

public void ExecuteActions(Action[] actions)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public ApplicationServiceExecutor()
/// Releases all resources consumed by the current <see cref="ApplicationServiceExecutor" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public ApplicationDependencyModule(IConfiguration applicationConfiguration)
/// <param name="applicationConfiguration">
/// Configuration information for the application.
/// </param>
protected override void Configure(ServiceCollection configurator, IConfiguration applicationConfiguration) => _ = configurator.AddControllers();
protected override void Configure(ServiceCollection configurator, IConfiguration applicationConfiguration) => _ = configurator
.AddOptions()
.AddControllers();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ protected override void ConfigureApplication(IApplicationBuilder application, IC
try
{
application = application
.UseAuthorization()
.UseRouting()
.UseEndpoints(endpoints =>
{
Expand Down Expand Up @@ -79,7 +78,7 @@ protected override void ConfigureApplication(IApplicationBuilder application, IC
/// Releases all resources consumed by the current <see cref="ApplicationWebExecutor" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected override void AddListeners(IMessageListeningProfile listeningProfile,
/// Releases all resources consumed by the current <see cref="ApplicationServiceExecutor" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public CreateDomainModelCommandHandler(ICommandMediator mediator)
/// Releases all resources consumed by the current <see cref="CreateDomainModelCommandHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public DeleteDomainModelCommandHandler(ICommandMediator mediator)
/// Releases all resources consumed by the current <see cref="DeleteDomainModelCommandHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public FindDomainModelByIdentifierCommandHandler(ICommandMediator mediator)
/// Releases all resources consumed by the current <see cref="FindDomainModelByIdentifierCommandHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public UpdateDomainModelCommandHandler(ICommandMediator mediator)
/// Releases all resources consumed by the current <see cref="UpdateDomainModelCommandHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public CreateDomainModelCommandHandler(ICommandMediator mediator)
/// Releases all resources consumed by the current <see cref="CreateDomainModelCommandHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public DeleteDomainModelCommandHandler(ICommandMediator mediator)
/// Releases all resources consumed by the current <see cref="DeleteDomainModelCommandHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public FindDomainModelByIdentifierCommandHandler(ICommandMediator mediator)
/// Releases all resources consumed by the current <see cref="FindDomainModelByIdentifierCommandHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public UpdateDomainModelCommandHandler(ICommandMediator mediator)
/// Releases all resources consumed by the current <see cref="UpdateDomainModelCommandHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public CreateDomainModelCommandHandler(ICommandMediator mediator)
/// Releases all resources consumed by the current <see cref="CreateDomainModelCommandHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public DeleteDomainModelCommandHandler(ICommandMediator mediator)
/// Releases all resources consumed by the current <see cref="DeleteDomainModelCommandHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public FindDomainModelByIdentifierCommandHandler(ICommandMediator mediator)
/// Releases all resources consumed by the current <see cref="FindDomainModelByIdentifierCommandHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public UpdateDomainModelCommandHandler(ICommandMediator mediator)
/// Releases all resources consumed by the current <see cref="UpdateDomainModelCommandHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected override void Configure(ObjectFactoryConfiguration<IDataAccessReposito
/// Releases all resources consumed by the current <see cref="DatabaseContextRepositoryFactory" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public DomainModelCreatedEventHandler(ICommandMediator mediator)
/// Releases all resources consumed by the current <see cref="DomainModelCreatedEventHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public DomainModelDeletedEventHandler(ICommandMediator mediator)
/// Releases all resources consumed by the current <see cref="DomainModelDeletedEventHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public DomainModelUpdatedEventHandler(ICommandMediator mediator)
/// Releases all resources consumed by the current <see cref="DomainModelUpdatedEventHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public DomainModelCreatedEventHandler(ICommandMediator mediator)
/// Releases all resources consumed by the current <see cref="DomainModelCreatedEventHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public DomainModelDeletedEventHandler(ICommandMediator mediator)
/// Releases all resources consumed by the current <see cref="DomainModelDeletedEventHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public DomainModelUpdatedEventHandler(ICommandMediator mediator)
/// Releases all resources consumed by the current <see cref="DomainModelUpdatedEventHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public DomainModelCreatedEventHandler(ICommandMediator mediator)
/// Releases all resources consumed by the current <see cref="DomainModelCreatedEventHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public DomainModelDeletedEventHandler(ICommandMediator mediator)
/// Releases all resources consumed by the current <see cref="DomainModelDeletedEventHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public DomainModelUpdatedEventHandler(ICommandMediator mediator)
/// Releases all resources consumed by the current <see cref="DomainModelUpdatedEventHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected override void AddListeners(IMessageListeningProfile listeningProfile,
/// Releases all resources consumed by the current <see cref="ApplicationServiceExecutor" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public DomainModelCreatedEventHandler(ICommandMediator mediator, DatabaseContext
/// Releases all resources consumed by the current <see cref="DomainModelCreatedEventHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public DomainModelDeletedEventHandler(ICommandMediator mediator, DatabaseContext
/// Releases all resources consumed by the current <see cref="DomainModelDeletedEventHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public DomainModelUpdatedEventHandler(ICommandMediator mediator, DatabaseContext
/// Releases all resources consumed by the current <see cref="DomainModelUpdatedEventHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public DomainModelCreatedEventHandler(ICommandMediator mediator, DatabaseContext
/// Releases all resources consumed by the current <see cref="DomainModelCreatedEventHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public DomainModelDeletedEventHandler(ICommandMediator mediator, DatabaseContext
/// Releases all resources consumed by the current <see cref="DomainModelDeletedEventHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public DomainModelUpdatedEventHandler(ICommandMediator mediator, DatabaseContext
/// Releases all resources consumed by the current <see cref="DomainModelUpdatedEventHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public DomainModelCreatedEventHandler(ICommandMediator mediator, DatabaseContext
/// Releases all resources consumed by the current <see cref="DomainModelCreatedEventHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public DomainModelDeletedEventHandler(ICommandMediator mediator, DatabaseContext
/// Releases all resources consumed by the current <see cref="DomainModelDeletedEventHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public DomainModelUpdatedEventHandler(ICommandMediator mediator, DatabaseContext
/// Releases all resources consumed by the current <see cref="DomainModelUpdatedEventHandler" />.
/// </summary>
/// <param name="disposing">
/// A value indicating whether or not managed resources should be released.
/// A value indicating whether or not disposal was invoked by user code.
/// </param>
protected override void Dispose(Boolean disposing) => base.Dispose(disposing);

Expand Down
Loading

0 comments on commit 8219e90

Please sign in to comment.