init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,28 @@
|
|||
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) { }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue