28 lines
962 B
C#
28 lines
962 B
C#
using Kreta.Core.Client.MessageInvoker;
|
|
|
|
namespace Kreta.Naplo.BusinessLogic.V2
|
|
{
|
|
/// <summary>
|
|
/// Versioned service
|
|
/// </summary>
|
|
class VersionedService : BusinessLogic.Service
|
|
{
|
|
/// <summary>
|
|
/// Get base url
|
|
/// </summary>
|
|
protected override string BaseUrl
|
|
{
|
|
get
|
|
{
|
|
return Infrastructure.Helpers.Http.CombineUrl(string.Format($"{this.Context.BaseUrl}/Naplo/V2", this.Context.InstituteCode), this.RelativeUrl);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="TeacherClientProxy"/> class.
|
|
/// </summary>
|
|
/// <param name="invoker">Message invoker</param>
|
|
/// <param name="relativeUrl">The relative URL.</param>
|
|
public VersionedService(IHttpMessageInvokerFactory invokerFactory, string relativeUrl) : base(invokerFactory, relativeUrl) { }
|
|
}
|
|
}
|