qol: formatting
This commit is contained in:
@@ -90,7 +90,8 @@ namespace Disco.Services.Plugins.Features.DetailsProvider
|
||||
return user.UserDetails
|
||||
.Where(d => string.Equals(d.Scope, DetailsScope, StringComparison.Ordinal))
|
||||
.ToDictionary(d => d.Key, d => d.Value, StringComparer.OrdinalIgnoreCase);
|
||||
} else
|
||||
}
|
||||
else
|
||||
{
|
||||
return database.UserDetails
|
||||
.Where(d => d.UserId == user.UserId &&
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace Disco.Services.Plugins.Features.RepairProvider
|
||||
/// The repairer identifier. Used to link this provider to any <see cref="Models.Repository.RepairerName"/>. This identifier is used to automatically set the RepairerName when a job is submitted using this plugin.
|
||||
/// </summary>
|
||||
public abstract string ProviderId { get; }
|
||||
|
||||
|
||||
#region Job Submission
|
||||
|
||||
/// <summary>
|
||||
@@ -64,7 +64,7 @@ namespace Disco.Services.Plugins.Features.RepairProvider
|
||||
public virtual Tuple<Type, dynamic> JobDetails(DiscoDataContext Database, Controller controller, Job Job)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Web.Mvc;
|
||||
using Disco.Models.UI;
|
||||
using Disco.Models.UI;
|
||||
using Disco.Services.Plugins.Features.UIExtension.Results;
|
||||
using System;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace Disco.Services.Plugins.Features.UIExtension
|
||||
{
|
||||
@@ -19,7 +19,8 @@ namespace Disco.Services.Plugins.Features.UIExtension
|
||||
}
|
||||
public UIExtensionFeature()
|
||||
{
|
||||
plugin = new Lazy<WebHelper>(new Func<WebHelper>(() => {
|
||||
plugin = new Lazy<WebHelper>(new Func<WebHelper>(() =>
|
||||
{
|
||||
if (Context == null)
|
||||
throw new InvalidOperationException("The Context property is not initialized");
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Disco.Services.Plugins.Features.UIExtension
|
||||
public abstract class UIExtensionResult
|
||||
{
|
||||
public PluginFeatureManifest Source { get; private set; }
|
||||
|
||||
|
||||
public UIExtensionResult(PluginFeatureManifest Source)
|
||||
{
|
||||
this.Source = Source;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using System;
|
||||
using Disco.Models.UI;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using Disco.Models.UI;
|
||||
|
||||
namespace Disco.Services.Plugins.Features.UIExtension
|
||||
{
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using System;
|
||||
using Disco.Data.Repository;
|
||||
using Disco.Models.BI.Config;
|
||||
using Disco.Models.Repository;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web.Mvc;
|
||||
using Disco.Data.Repository;
|
||||
using Disco.Models.BI.Config;
|
||||
using Disco.Models.Repository;
|
||||
|
||||
namespace Disco.Services.Plugins.Features.WarrantyProvider
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user