本文整理汇总了C#中IServices类的典型用法代码示例。如果您正苦于以下问题:C# IServices类的具体用法?C# IServices怎么用?C# IServices使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IServices类属于命名空间,在下文中一共展示了IServices类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: ShapeProvider
public ShapeProvider(Func<MessageInfo,bool> match, IServices services)
{
if (match == null)
throw new ArgumentNullException("match");
_match = match;
_services = services;
}
开发者ID:flq,项目名称:MemBus,代码行数:7,代码来源:SubscriptionPipeline.cs
示例2: PlayPanel
public PlayPanel(Transform content, IServices services)
{
go = content.gameObject;
levelsContent = getChild("Viewport/Content");
this.services = services;
createLevels();
}
开发者ID:kicholen,项目名称:SpaceShooter,代码行数:7,代码来源:PlayPanel.cs
示例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;
}
开发者ID:nguyenminhthu,项目名称:TeleConsult,代码行数:27,代码来源:FileHelper.cs
示例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>();
}
开发者ID:nguyenminhthu,项目名称:TeleConsult,代码行数:9,代码来源:AccountController.cs
示例5: ShopPanel
public ShopPanel(Transform content, IServices services)
{
go = content.gameObject;
this.services = services;
setReferences();
createElements();
}
开发者ID:kicholen,项目名称:SpaceShooter,代码行数:7,代码来源:ShopPanel.cs
示例6: Setup
public void Setup(IServices services, IMetaModel metaModel, ILocalizer localizer) {
this.services = services;
this.metaModel = metaModel;
this.localizer = localizer;
TypeResolver.Reset();
ListPropertyValues = GetListPropertyValues();
}
开发者ID:dgruesso,项目名称:VersionOne.Integration.Bugzilla,代码行数:7,代码来源:QueryBuilder.cs
示例7: TopPanelComponent
public TopPanelComponent(IServices services)
{
this.services = services;
init();
showYPosition = go.transform.localPosition.y;
go.SetActive(false);
}
开发者ID:kicholen,项目名称:SpaceShooter,代码行数:7,代码来源:TopPanelComponent.cs
示例8: ShopElement
public ShopElement(Transform transform, IServices services, ShopModel model)
{
go = transform.gameObject;
this.services = services;
this.model = model;
setReferences();
setTexts();
}
开发者ID:kicholen,项目名称:SpaceShooter,代码行数:8,代码来源:ShopElement.cs
示例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;
}
开发者ID:nguyenminhthu,项目名称:TeleConsult,代码行数:24,代码来源:BookingHelper.cs
示例10: ShipPanel
public ShipPanel(Transform content, IServices services)
{
go = content.gameObject;
this.services = services;
shipContent = getChild("Viewport/Content");
infoContent = getChild("Panel/Text");
setData();
}
开发者ID:kicholen,项目名称:SpaceShooter,代码行数:8,代码来源:ShipPanel.cs
示例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);
}
开发者ID:NicholasBuse,项目名称:codealignment,代码行数:9,代码来源:Main.cs
示例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);
}
开发者ID:nguyenminhthu,项目名称:TeleConsult,代码行数:9,代码来源:IntegrationController.cs
示例13: SetUp
public void SetUp()
{
var logger = _repository.Stub<ILogger>();
_mockServices = _repository.StrictMock<IServices>();
_mockMetaModel = _repository.StrictMock<IMetaModel>();
_mockQueryBuilder = _repository.StrictMock<IQueryBuilder>();
_processor = new TestVersionOneProcessor(null, logger);
_processor.ConnectTest(_mockServices, _mockMetaModel, _mockQueryBuilder);
}
开发者ID:versionone,项目名称:VersionOne.Integration.TFS.ServerConnector,代码行数:10,代码来源:VersionOneProcessorTester.cs
示例14: ViewModelBase
protected ViewModelBase(IServices services)
{
Services = services;
Log = Services.Log;
if (!IsInDesignMode)
{
WireMessages();
}
}
开发者ID:MediaBrowser,项目名称:Emby.Mobile.ViewModels,代码行数:10,代码来源:ViewModelBase.cs
示例15: ServicesProvider
private ServicesProvider()
{
// Remove remoting version and change the standard IServices Implementation
_iServices = new OnlineServiceProvider();
/*
if (TechnicalSettings.UseOnlineMode)
_iServices = Remoting.GetInstance();
else
_iServices = new Standard();
*/
}
开发者ID:himmelreich-it,项目名称:opencbs,代码行数:11,代码来源:ServicesProvider.cs
示例16: RequiredFieldsValidator
internal RequiredFieldsValidator(IMetaModel metaModel, IServices services, IDataLayerInternal dataLayer) {
this.metaModel = metaModel;
this.services = services;
this.dataLayer = dataLayer;
logger = dataLayer.Logger;
requiredFieldsList.Add(Entity.TaskType, GetRequiredFields(Entity.TaskType));
requiredFieldsList.Add(Entity.DefectType, GetRequiredFields(Entity.DefectType));
requiredFieldsList.Add(Entity.StoryType, GetRequiredFields(Entity.StoryType));
requiredFieldsList.Add(Entity.TestType, GetRequiredFields(Entity.TestType));
}
开发者ID:cagatayalkan,项目名称:VersionOne.Client.VisualStudio,代码行数:12,代码来源:RequiredFieldsValidator.cs
示例17: CreateTransaction
public static void CreateTransaction(BookingDto booking, decimal amount, bool minimumCharge, IServices Services)
{
try
{
UserDto user = Services.Users.GetUserById(booking.Customer.Id);
if (user != null)
{
InvoiceDto consultationInvoice;
switch (user.PaymentMethod)
{
case PaymentMethod.CreditCard:
PaymentResult result = new PaymentResult();
if (amount != 0)
{
result = Services.Payment.Transaction(user.Id.ToString(), amount);
if (result.Success)
{
consultationInvoice = Services.Invoices.CreateConsultationInvoice(amount, booking.Id, minimumCharge, true, result.Transaction.Id);
}
else
{
Log.Error("Transaction fail. Message: " + result.ErrorMessage + " UserId: " + user.Id);
CreateUnsuccessInvoice(user, booking, Services, amount);
}
}
break;
case PaymentMethod.PrePayment:
user.PrePaymentAmount -= amount;
if (Services.Users.UpdateUserInfo(user))
{
consultationInvoice = Services.Invoices.CreateConsultationInvoice(amount, booking.Id, minimumCharge, true, null);
}
else
{
CreateUnsuccessInvoice(user, booking, Services, amount);
}
break;
default:
break;
}
}
}
catch (Exception e)
{
Log.Error("Create new transaction with UserId: " + booking.Customer.Id + " BookingId: " + booking.Id, e);
}
}
开发者ID:nguyenminhthu,项目名称:TeleConsult,代码行数:52,代码来源:PaymentHelper.cs
示例18: ConferenceController
private string VoiceInConference = "man"; // Default value
#endregion Fields
#region Constructors
public ConferenceController(IServices services)
{
Services = services;
// Get setting for voice and language in conference
var voiceConfig = Services.SystemConfig.GetByKey(ParamatricBusinessRules.VOICE_IN_CONFERENCE.ToString());
var languageConfig = Services.SystemConfig.GetByKey(ParamatricBusinessRules.LANGUAGE_IN_CONFERENCE.ToString());
if (voiceConfig != null && languageConfig != null)
{
VoiceInConference = voiceConfig.Value;
LanguageInConference = languageConfig.Value;
}
}
开发者ID:nguyenminhthu,项目名称:TeleConsult,代码行数:19,代码来源:ConferenceController.cs
示例19: Init
public void Init(IServices services)
{
services.EventService.AddListener<GameEndedEvent>(onGameEnded);
pool.CreateEntity()
.AddEventService(services.EventService)
.AddUIFactoryService(services.UIFactoryService)
.AddAnalyticsService(services.AnalyticsService)
.AddTranslationService(services.TranslationService)
.AddCanvas(services.ViewService.Canvas);
systems.Initialize();
services.Updateables.Add(this);
}
开发者ID:kicholen,项目名称:SpaceShooter,代码行数:13,代码来源:GameService.cs
示例20: Manager
public Manager(V1Instance v1, ISmtpAdapter smtpAdapter, IUserDirectoryReader ldapreader) {
_services = v1.Services;
_model = v1.Model;
_defaultRole = v1.DefaultRole;
_smtpAdapter = smtpAdapter;
_directoryReader = ldapreader;
}
开发者ID:raynard-delosreyes,项目名称:VersionOne.Provisioning.LDAP,代码行数:7,代码来源:Manager.cs
注:本文中的IServices类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论