本文整理汇总了C#中IServices类的典型用法代码示例。如果您正苦于以下问题:C# IServices类的具体用法?C# IServices怎么用?C# IServices使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IServices类属于命名空间,在下文中一共展示了IServices类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ShapeProvider
public ShapeProvider(Func<MessageInfo,bool> match, IServices services)
{
if (match == null)
throw new ArgumentNullException("match");
_match = match;
_services = services;
}
示例2: PlayPanel
public PlayPanel(Transform content, IServices services)
{
go = content.gameObject;
levelsContent = getChild("Viewport/Content");
this.services = services;
createLevels();
}
示例3: UploadFileToS3
public static string UploadFileToS3(IServices services, string fileName, Stream file, string folderName)
{
string s3FilePath = string.Empty;
if (file != null)
{
byte[] bFile = null;
MemoryStream memoryStream = new MemoryStream();
try
{
file.CopyTo(memoryStream);
bFile = memoryStream.ToArray();
s3FilePath = services.Image.SaveImage(fileName, bFile, folderName);
}
catch (Exception ex)
{
Log.Error("FileHelper_UploadFileToS3_error: " + fileName, ex);
}
finally
{
memoryStream.Close();
memoryStream.Dispose();
}
}
file.Close();
file.Dispose();
return s3FilePath;
}
示例4: AccountController
//
// GET: /Account/Login
public AccountController(IServices services, ISettings settings, IComponents components, IUserStore<ApplicationUser, Guid> userStore)
: base(services, settings)
{
_userManager = new ApplicationUserManager(userStore, services, components);
Mapper.CreateMap<ApplicationUser, UserDto>();
}
示例5: ShopPanel
public ShopPanel(Transform content, IServices services)
{
go = content.gameObject;
this.services = services;
setReferences();
createElements();
}
示例6: Setup
public void Setup(IServices services, IMetaModel metaModel, ILocalizer localizer) {
this.services = services;
this.metaModel = metaModel;
this.localizer = localizer;
TypeResolver.Reset();
ListPropertyValues = GetListPropertyValues();
}
示例7: TopPanelComponent
public TopPanelComponent(IServices services)
{
this.services = services;
init();
showYPosition = go.transform.localPosition.y;
go.SetActive(false);
}
示例8: ShopElement
public ShopElement(Transform transform, IServices services, ShopModel model)
{
go = transform.gameObject;
this.services = services;
this.model = model;
setReferences();
setTexts();
}
示例9: GetbookingRateByBookDate
//public static bool IsSpecialistStandardHour(int specialistID, DateTime startTime, DateTime endTime, IServices service)
//{
// bool isStandardHour = false;
// isStandardHour = service.StandardHour.IsStandardHour(specialistID, startTime, endTime);
// return isStandardHour;
//}
/// <summary>
/// calculate fee for customer and speclist when book time or reschedule
/// </summary>
/// <param name="specialistId"></param>
/// <param name="IsSpecialist"></param>
/// <param name="startTime"></param>
/// <param name="endTime"></param>
/// <param name="service"></param>
/// <param name="specializationId"></param>
/// <returns></returns>
public static decimal GetbookingRateByBookDate(Guid bookingId, UserDto specialist, bool IsSpecialist, DateTime startTime, DateTime endTime, IServices services)
{
decimal rate = 0;
//TODO: will use function check standardhour when branch 226369 merged
bool isStandardHour = services.Users.IsStandardHour(specialist.Id, startTime, endTime);
return rate;
}
示例10: ShipPanel
public ShipPanel(Transform content, IServices services)
{
go = content.gameObject;
this.services = services;
shipContent = getChild("Viewport/Content");
infoContent = getChild("Panel/Text");
setData();
}
示例11: Load
public override void Load(IServices services)
{
System.Windows.Forms.Application.EnableVisualStyles();
System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false);
AddShortcut(ModifierKeys.Control, Key.OemPlus, () => m_functions.AlignByKey());
AddShortcut(ModifierKeys.Control | ModifierKeys.Shift, Key.OemPlus, () => m_functions.AlignByDialog());
base.Load(services);
}
示例12: IntegrationController
public IntegrationController(IUserStore<ApplicationUser,Guid> userStore, IAdminServices adminServices, IServices services, ISettings settings, IComponents components)
: base(services, settings)
{
//if(!(settings.Environment == Environment.Integration || settings.Environment == Environment.Debug))
// throw new SecurityException();
_adminServices = adminServices;
_userManager = new ApplicationUserManager(userStore, services, components);
}
示例13: Manager
public Manager(V1Instance v1, ISmtpAdapter smtpAdapter, IUserDirectoryReader ldapreader) {
_services = v1.Services;
_model = v1.Model;
_defaultRole = v1.DefaultRole;
_smtpAdapter = smtpAdapter;
_directoryReader = ldapreader;
}
示例14: Connect
/// <summary>
/// Create connection to V1 server.
/// </summary>
/// <param name="settings">Connection settings</param>
public void Connect(VersionOneSettings settings)
{
var url = settings.ApplicationUrl;
var accessToken = settings.AccessToken;
try
{
var connector = SDK.APIClient.V1Connector
.WithInstanceUrl(url)
.WithUserAgentHeader("VersionOne.Integration.JIRASync", Assembly.GetEntryAssembly().GetName().Version.ToString());
ICanSetProxyOrEndpointOrGetConnector connectorWithAuth;
connectorWithAuth = connector.WithAccessToken(accessToken);
if (settings.ProxySettings.Enabled)
connectorWithAuth.WithProxy(GetProxy(settings.ProxySettings));
services = new Services(connectorWithAuth.Build());
if (!services.LoggedIn.IsNull)
{
IsConnected = true;
ListPropertyValues = new Dictionary<string, IList<ListValue>>();
}
else
IsConnected = false;
}
catch (Exception)
{
IsConnected = false;
}
}
示例15: Login
public Login()
{
InitializeComponent();
IsSuccessLogin = false;
_services = new WinServices(typeof(User).Name);
}