예제 #1
0
 public World(IOwinServer server, ISupport support, INotify notifyChanges)
 {
 }
예제 #2
0
 public Notification(ISupport support)
 {
 }
예제 #3
0
 public SupportController(IOptions <MailingSettings> mailingSettings, ISupport support)
 {
     _mailingSettings = mailingSettings;
     _support         = support;
 }
예제 #4
0
 public MapTabela(ISupport funcoes)
 {
     _funcoes = funcoes;
 }
예제 #5
0
 public HomeController(IStringLocalizer <HomeController> localizer, ISupport support, IBlog blog)
 {
     _localizer = localizer;
     _support   = support;
     _blog      = blog;
 }
예제 #6
0
 /// <summary>
 ///     Method containing all code needed during the when phase.
 /// </summary>
 /// <param name="supporter">
 ///     Class containing support code for a test run.
 /// </param>
 /// <returns>
 ///     Instance of <see cref="ISupport" />.
 /// </returns>
 public ISupport When(ISupport supporter)
 {
     return(InitializeSupportClass(supporter));
 }
예제 #7
0
 /// <summary>
 /// Method containing all code needed during the when phase.
 /// </summary>
 /// <param name="supporter">
 /// Class containing support code for a test run.
 /// </param>
 /// <returns>
 /// Instance of <see cref="ISupport"/>.
 /// </returns>
 public ISupport Given(ISupport supporter)
 {
     return(this.InitializeSupportClass(supporter));
 }
예제 #8
0
파일: IOCTests.cs 프로젝트: yonglehou/BTDB
 public NotificationOverride(ISupport support)
 {
 }
예제 #9
0
 // Use this for initialization
 void Start()
 {
     support = GetComponent <ISupport>();
 }
 public MapProcedure(ISupport rorinas)
 {
     _rorinas = rorinas;
 }
예제 #11
0
 public static ISupport GetInstanceSupport()
 {
     return(_support ?? (_support = new SupportImpl()));
 }
예제 #12
0
        private void GetSupportedExts(string fileName, out string[] exts, out ISupport support)
        {
            exts = new string[0];
            support = null;

            FileInfo info = new FileInfo(fileName);
            string file = info.FullName;

            if (bufferedSupport.ContainsKey(file))
            {
                support = bufferedSupport[file];
                if (support != null)
                {
                    exts = support.GetSupportedFormat();
                    bufferedSupport.Add(file, support);
                    return;
                }
            }

            Assembly asm = Assembly.LoadFrom(file);
            if (asm == null) return ;
            foreach (Type t in asm.GetTypes())
            {
                if (t.IsClass && !t.IsAbstract)
                {
                    Type inter = t.GetInterface("ISupport");
                    if (inter == null) continue;
                    MethodInfo method = inter.GetMethod("GetSupportedFormat");
                    if (method == null) continue;
                    object o = Activator.CreateInstance(t);
                    if (o != null)
                    {
                        support = o as ISupport;
                        if (support != null)
                        {
                            exts = support.GetSupportedFormat();
                            bufferedSupport.Add(file, support);
                            return;
                        }
                    }
                }

            }

            return;
        }
예제 #13
0
 public SupportHelperAttribute(Type supportType)
 {
     this.support = Activator.CreateInstance(supportType) as ISupport;
 }
예제 #14
0
 public NotificationOverride(ISupport support)
 {
 }
예제 #15
0
 /// <summary>
 ///     Initializes the given support class.
 /// </summary>
 /// <param name="supporter">Class which contains code to support a test run.</param>
 /// <returns>Instance of <see cref="ISupport" /></returns>
 private ISupport InitializeSupportClass(ISupport supporter)
 {
     supporter.Support(this);
     return(supporter);
 }
예제 #16
0
파일: IOCTests.cs 프로젝트: yonglehou/BTDB
 public Notification(ISupport support)
 {
 }
예제 #17
0
 /// <summary>
 ///     Initializes the given support class.
 /// </summary>
 /// <param name="supporter">Class which contains code to support a test run.</param>
 /// <param name="supportData">Data used during support actions.</param>
 /// <returns>Instance of <see cref="ISupport" /></returns>
 private ISupport <T> InitializeSupportClass <T>(ISupport <T> supporter, T supportData)
 {
     supporter.Support(this, supportData);
     return(supporter);
 }
예제 #18
0
파일: IOCTests.cs 프로젝트: yonglehou/BTDB
 public World(IOwinServer server, ISupport support, INotify notifyChanges)
 {
 }
예제 #19
0
 public ISupport AssignToNextLevel(ISupport support)
 {
     _nextSupportLevel = support;
     return(_nextSupportLevel);
 }