当前位置: 首页>>代码示例>>C#>>正文


C# IServices类代码示例

本文整理汇总了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;
 }
开发者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: 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

示例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;
            }
        }
开发者ID:versionone,项目名称:VersionOne.Integration.JIRA,代码行数:36,代码来源:V1Connector.cs

示例15: Login

        public Login()
        {
            InitializeComponent();

            IsSuccessLogin = false;
            _services = new WinServices(typeof(User).Name);
        }
开发者ID:mayurdo,项目名称:RWPL,代码行数:7,代码来源:Login.cs


注:本文中的IServices类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。